Class OhmSensor
java.lang.Object
oshi.driver.common.windows.wmi.OhmSensor
Constants, property enum, and WHERE clause builder for Open Hardware Monitor WMI Sensor data.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildSensorWmiClassNameWithWhere(String identifier, String sensorType) Builds the WMI class name with WHERE clause for sensor value queries.static WmiResult<OhmSensor.ValueProperty> querySensorValue(WmiQueryExecutor h, String identifier, String sensorType) Queries the sensor value of a hardware identifier and sensor type.
-
Field Details
-
OHM_NAMESPACE
-
SENSOR
-
-
Constructor Details
-
OhmSensor
protected OhmSensor()Constructor.
-
-
Method Details
-
buildSensorWmiClassNameWithWhere
Builds the WMI class name with WHERE clause for sensor value queries.- Parameters:
identifier- The identifier whose value to querysensorType- The type of sensor to query- Returns:
- the WMI class name with WHERE clause
-
querySensorValue
public static WmiResult<OhmSensor.ValueProperty> querySensorValue(WmiQueryExecutor h, String identifier, String sensorType) Queries the sensor value of a hardware identifier and sensor type.- Parameters:
h- An instantiatedWmiQueryExecutor. User should have already initialized COM.identifier- The identifier whose value to query.sensorType- The type of sensor to query.- Returns:
- The sensor value.
-