Package oshi.driver.windows.wmi
Class Win32Processor
- java.lang.Object
-
- oshi.driver.windows.wmi.Win32Processor
-
@ThreadSafe public final class Win32Processor extends java.lang.Object
Utility to query WMI classWin32_Processor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Win32Processor.BitnessProperty
Processor bitness propertystatic class
Win32Processor.ProcessorIdProperty
Processor ID propertystatic class
Win32Processor.VoltProperty
Processor voltage properties.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
WIN32_PROCESSOR
-
Constructor Summary
Constructors Modifier Constructor Description private
Win32Processor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.BitnessProperty>
queryBitness()
Returns address width.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.ProcessorIdProperty>
queryProcessorId()
Returns processor ID.static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.VoltProperty>
queryVoltage()
Returns processor voltage.
-
-
-
Field Detail
-
WIN32_PROCESSOR
private static final java.lang.String WIN32_PROCESSOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
queryVoltage
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.VoltProperty> queryVoltage()
Returns processor voltage.- Returns:
- Current voltage of the processor. If the eighth bit is set, bits 0-6 contain the voltage multiplied by 10. If the eighth bit is not set, then the bit setting in VoltageCaps represents the voltage value.
-
queryProcessorId
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.ProcessorIdProperty> queryProcessorId()
Returns processor ID.- Returns:
- Processor information that describes the processor features. For an x86 class CPU, the field format depends on the processor support of the CPUID instruction. If the instruction is supported, the property contains 2 (two) DWORD formatted values. The first is an offset of 08h-0Bh, which is the EAX value that a CPUID instruction returns with input EAX set to 1. The second is an offset of 0Ch-0Fh, which is the EDX value that the instruction returns. Only the first two bytes of the property are significant and contain the contents of the DX register at CPU reset—all others are set to 0 (zero), and the contents are in DWORD format.
-
queryBitness
public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<Win32Processor.BitnessProperty> queryBitness()
Returns address width.- Returns:
- On a 32-bit operating system, the value is 32 and on a 64-bit operating system it is 64.
-
-