Class OhmHardware

java.lang.Object
oshi.driver.common.windows.wmi.OhmHardware

@ThreadSafe public class OhmHardware extends Object
Constants, property enum, and WHERE clause builder for Open Hardware Monitor WMI Hardware data.
  • Field Details

  • Constructor Details

    • OhmHardware

      protected OhmHardware()
      Constructor.
  • Method Details

    • buildHardwareWmiClassNameWithWhere

      public static String buildHardwareWmiClassNameWithWhere(String typeToQuery, String typeName)
      Builds the WMI class name with WHERE clause for hardware identifier queries.
      Parameters:
      typeToQuery - which type to filter based on
      typeName - 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 instantiated WmiQueryExecutor. User should have already initialized COM.
      typeToQuery - which type to filter based on
      typeName - the name of the type
      Returns:
      WmiResult of hardware identifier properties.