Class Win32ProcessorJNA
java.lang.Object
oshi.driver.common.windows.wmi.Win32Processor
oshi.driver.windows.wmi.Win32ProcessorJNA
@ThreadSafe
public final class Win32ProcessorJNA
extends oshi.driver.common.windows.wmi.Win32Processor
Utility to query WMI class
Win32_Processor using JNA.-
Nested Class Summary
Nested classes/interfaces inherited from class oshi.driver.common.windows.wmi.Win32Processor
oshi.driver.common.windows.wmi.Win32Processor.BitnessProperty, oshi.driver.common.windows.wmi.Win32Processor.ProcessorIdProperty, oshi.driver.common.windows.wmi.Win32Processor.VoltProperty -
Field Summary
Fields inherited from class oshi.driver.common.windows.wmi.Win32Processor
WIN32_PROCESSOR -
Method Summary
Modifier and TypeMethodDescriptionstatic WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.Win32Processor.BitnessProperty> Returns address width.static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.Win32Processor.ProcessorIdProperty> Returns processor ID.static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.Win32Processor.VoltProperty> Returns processor voltage.
-
Method Details
-
queryVoltage
public static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.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 WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.Win32Processor.ProcessorIdProperty> queryProcessorId()Returns processor ID.- Returns:
- Processor information that describes the processor features.
-
queryBitness
public static WbemcliUtil.WmiResult<oshi.driver.common.windows.wmi.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.
-