Class OhmHardware
java.lang.Object
oshi.driver.common.windows.wmi.OhmHardware
Constants, property enum, and WHERE clause builder for Open Hardware Monitor WMI Hardware data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHW Identifier Property. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildHardwareWmiClassNameWithWhere(String typeToQuery, String typeName) Builds the WMI class name with WHERE clause for hardware identifier queries.queryHwIdentifier(WmiQueryExecutor h, String typeToQuery, String typeName) Queries the hardware identifiers for a monitored type.
-
Field Details
-
OHM_NAMESPACE
-
HARDWARE
-
-
Constructor Details
-
OhmHardware
protected OhmHardware()Constructor.
-
-
Method Details
-
buildHardwareWmiClassNameWithWhere
Builds the WMI class name with WHERE clause for hardware identifier queries.- Parameters:
typeToQuery- which type to filter based ontypeName- the name of the type- Returns:
- the WMI class name with WHERE clause
-
queryHwIdentifier
public static WmiResult<OhmHardware.IdentifierProperty> queryHwIdentifier(WmiQueryExecutor h, String typeToQuery, String typeName) Queries the hardware identifiers for a monitored type.- Parameters:
h- An instantiatedWmiQueryExecutor. User should have already initialized COM.typeToQuery- which type to filter based ontypeName- the name of the type- Returns:
- WmiResult of hardware identifier properties.
-