Class Win32_AssociatedProcessorMemory
java.lang.Object
com.ferrumx.system.associatedclasses.Win32_AssociatedProcessorMemory
This class serves as a relationship between
Win32_Processor
and
Win32_CacheMemory
. This class will fetch the CacheMemory IDs (L1, L2
and L3 ID) of a CPU based on the CPU ID given by Win32_Processor. The cache
ID's extracted from this class will then be used in Win32_CacheMemory to
retrieve cache related information- Author:
- Egg-03
-
Method Summary
Modifier and TypeMethodDescriptiongetCacheID
(String cpuID) Fetches a list of cache IDs for a particular CPU
-
Method Details
-
getCacheID
public static List<String> getCacheID(String cpuID) throws IOException, IndexOutOfBoundsException, ShellException, InterruptedException Fetches a list of cache IDs for a particular CPU- Parameters:
cpuID
- The DeviceID property returned byWin32_Processor
- Returns:
- a
List
of cacheIDs - Throws:
IOException
- re-throws the exception thrown byCIM_ML.getPropertiesAndTheirValues(String, String)
when there are I/O Errors during streaming of data from and to Powershell and other generated filesIndexOutOfBoundsException
- re-throws the exception thrown byCIM_ML.getPropertiesAndTheirValues(String, String)
when there is a parsing error of data fetched from Windows PowershellShellException
- if any internal command used in the powershell throws errorsInterruptedException
- if the thread waiting for the process to exit, gets interrupted. When catching this exception, you may re-throw it's interrupted status by using Thread.currentThread().interrupt();
-