Class OhmSensor


  • @ThreadSafe
    public final class OhmSensor
    extends java.lang.Object
    Utility to query Open Hardware Monitor WMI data for Sensors
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OhmSensor.ValueProperty
      Sensor value property
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String SENSOR  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OhmSensor()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<OhmSensor.ValueProperty> querySensorValue​(WmiQueryHandler h, java.lang.String identifier, java.lang.String sensorType)
      Queries the sensor value of an hardware identifier and sensor type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OhmSensor

        private OhmSensor()
    • Method Detail

      • querySensorValue

        public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<OhmSensor.ValueProperty> querySensorValue​(WmiQueryHandler h,
                                                                                                                     java.lang.String identifier,
                                                                                                                     java.lang.String sensorType)
        Queries the sensor value of an hardware identifier and sensor type.
        Parameters:
        h - An instantiated WmiQueryHandler. User should have already initialized COM.
        identifier - The identifier whose value to query.
        sensorType - The type of sensor to query.
        Returns:
        The sensor value.