Class Win32Processor
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.processor.Win32Processor
Immutable representation of a CPU device on a Windows system.
Fields correspond to properties retrieved from the Win32_Processor WMI class.
Usage examples
// Build a new Processor instance
Win32Processor cpu = Win32Processor.builder()
.name("Intel Core i9-13900K")
.numberOfCores(24)
.threadCount(32)
.maxClockSpeed(5300)
.build();
// Create a modified copy using the builder
Win32Processor updated = cpu.toBuilder()
.threadCount(64)
.build();
See Win32CacheMemory for related cache information.
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable IntegerWidth of the processor address bus in bits.(package private) @Nullable IntegerProcessor architecture used by the platform.(package private) @Nullable StringShort textual description of the processor.(package private) @Nullable StringUnique identifier of the processor on the system.(package private) @Nullable IntegerExternal clock frequency of the processor in megahertz.(package private) @Nullable IntegerProcessor family type.(package private) @Nullable IntegerSize of the Level 2 cache in kilobytes.(package private) @Nullable IntegerSize of the Level 3 cache in kilobytes.(package private) @Nullable StringName of the processor manufacturer.(package private) @Nullable IntegerMaximum speed of the processor in megahertz under normal operating conditions.(package private) @Nullable StringProcessor name: Typically includes manufacturer, brand, and model information.(package private) @Nullable IntegerNumber of physical cores on the processor.(package private) @Nullable IntegerNumber of enabled processor cores.(package private) @Nullable IntegerNumber of logical processors on the system.(package private) @Nullable StringProcessor identifier string, which may include family, model, and stepping information.(package private) @Nullable StringType of socket or slot used by the processor.(package private) @Nullable StringStepping information for the processor revision.(package private) @Nullable IntegerNumber of hardware threads across all cores.(package private) @Nullable StringVersion of the processor as reported by the manufacturer.(package private) @Nullable BooleanIndicates whether virtualization technology is enabled in firmware. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deviceId
Unique identifier of the processor on the system. -
name
Processor name: Typically includes manufacturer, brand, and model information. -
numberOfCores
Number of physical cores on the processor. -
numberOfEnabledCores
Number of enabled processor cores. -
threadCount
Number of hardware threads across all cores. -
numberOfLogicalProcessors
Number of logical processors on the system. -
manufacturer
Name of the processor manufacturer. -
addressWidth
Width of the processor address bus in bits. For a 32-bit CPU the value is 32 and for a 64-bit CPU, the value is 64 -
l2CacheSize
Size of the Level 2 cache in kilobytes. -
l3CacheSize
Size of the Level 3 cache in kilobytes. -
maxClockSpeed
Maximum speed of the processor in megahertz under normal operating conditions. -
extClock
External clock frequency of the processor in megahertz. -
socketDesignation
Type of socket or slot used by the processor. -
version
Version of the processor as reported by the manufacturer. -
caption
Short textual description of the processor. -
family
Processor family type. Indicates the manufacturer and generation of the processor. -
stepping
Stepping information for the processor revision. -
virtualizationFirmwareEnabled
@SerializedName("VirtualizationFirmwareEnabled") @Nullable @Nullable Boolean virtualizationFirmwareEnabledIndicates whether virtualization technology is enabled in firmware. -
processorId
Processor identifier string, which may include family, model, and stepping information. -
architecture
Processor architecture used by the platform.Possible Values:
- x86 (0)
- MIPS (1)
- Alpha (2)
- PowerPC (3)
- ARM (5)
- ia64 (6)
- x64 (9)
- ARM64 (12)
-
-
Constructor Details
-
Win32Processor
public Win32Processor()
-
-
Method Details
-
isVirtualizationEnabled
-
toString
-