Class Win32ProcessorToCacheMemory
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.compounded.Win32ProcessorToCacheMemory
Immutable representation of a
Win32Processor and its associated
1:N relationship with Win32CacheMemory in a Windows system.
Each instance represents a single processor identified by deviceId,
and maintains a one-to-many mapping with its corresponding cache memory objects
(such as L1, L2, and L3 caches).
This class is purely a convenience class designed to eliminate the
need for using Win32AssociatedProcessorMemory when fetching a
relation between Win32Processor and Win32CacheMemory as it stores
all instances of cache memories for a particular processor.
Usage example
Win32ProcessorToCacheMemory cpuInfo = Win32ProcessorToCacheMemory.builder()
.deviceId("CPU0")
.processor(processor)
.cacheMemoryList(cacheList)
.build();
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable List<Win32CacheMemory> A list ofWin32CacheMemoryentities associated with thedeviceId.(package private) @Nullable StringThe unique identifier for theWin32Processorinstance.(package private) @Nullable Win32ProcessorTheWin32Processorentity associated with thedeviceId. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deviceId
The unique identifier for theWin32Processorinstance.Corresponds to the processor’s
DeviceID, such as"CPU0"or"CPU1". -
processor
TheWin32Processorentity associated with thedeviceId.Represents the physical or logical processor containing one or more cache memory units.
-
cacheMemoryList
A list ofWin32CacheMemoryentities associated with thedeviceId.Represents the processor’s cache hierarchy (such as L1, L2, and L3 cache levels) linked to the specified
processor.
-
-
Constructor Details
-
Win32ProcessorToCacheMemory
public Win32ProcessorToCacheMemory()
-
-
Method Details
-
toString
-