public class WmiUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WmiUtil.ValueType
Enum for WMI queries for proper parsing from the returned VARIANT
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAMESPACE |
| Constructor and Description |
|---|
WmiUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Float |
selectFloatFrom(String namespace,
String wmiClass,
String property,
String whereClause)
Get a single Float value from WMI
|
static Map<String,List<Float>> |
selectFloatsFrom(String namespace,
String wmiClass,
String properties,
String whereClause)
Get multiple Float values from WMI
|
static Long |
selectLongFrom(String namespace,
String wmiClass,
String property,
String whereClause)
Get a single Long value from WMI
|
static Map<String,List<Long>> |
selectLongsFrom(String namespace,
String wmiClass,
String properties,
String whereClause)
Get multiple Long values from WMI
|
static Map<String,List<Object>> |
selectObjectsFrom(String namespace,
String wmiClass,
String properties,
String whereClause,
WmiUtil.ValueType[] propertyTypes)
Get multiple individually typed values from WMI
|
static String |
selectStringFrom(String namespace,
String wmiClass,
String property,
String whereClause)
Get a single String value from WMI
|
static Map<String,List<String>> |
selectStringsFrom(String namespace,
String wmiClass,
String properties,
String whereClause)
Get multiple String values from WMI
|
public static final String DEFAULT_NAMESPACE
public static Long selectLongFrom(String namespace, String wmiClass, String property, String whereClause)
namespace - The namespace or null to use the defaultwmiClass - The class to queryproperty - The property whose value to returnwhereClause - A WQL where clause matching properties and keywordspublic static Map<String,List<Long>> selectLongsFrom(String namespace, String wmiClass, String properties, String whereClause)
namespace - The namespace or null to use the defaultwmiClass - The class to queryproperties - A comma delimited list of properties whose value to returnwhereClause - A WQL where clause matching properties and keywordspublic static Float selectFloatFrom(String namespace, String wmiClass, String property, String whereClause)
namespace - The namespace or null to use the defaultwmiClass - The class to queryproperty - The property whose value to returnwhereClause - A WQL where clause matching properties and keywordspublic static Map<String,List<Float>> selectFloatsFrom(String namespace, String wmiClass, String properties, String whereClause)
namespace - The namespace or null to use the defaultwmiClass - The class to queryproperties - A comma delimited list of properties whose value to returnwhereClause - A WQL where clause matching properties and keywordspublic static String selectStringFrom(String namespace, String wmiClass, String property, String whereClause)
namespace - The namespace or null to use the defaultwmiClass - The class to queryproperty - The property whose value to returnwhereClause - A WQL where clause matching properties and keywordspublic static Map<String,List<String>> selectStringsFrom(String namespace, String wmiClass, String properties, String whereClause)
namespace - The namespace or null to use the defaultwmiClass - The class to queryproperties - A comma delimited list of properties whose value to returnwhereClause - A WQL where clause matching properties and keywordspublic static Map<String,List<Object>> selectObjectsFrom(String namespace, String wmiClass, String properties, String whereClause, WmiUtil.ValueType[] propertyTypes)
namespace - The namespace or null to use the defaultwmiClass - The class to queryproperties - A comma delimited list of properties whose value to returnwhereClause - A WQL where clause matching properties and keywordspropertyTypes - An array of types corresponding to the propertiesCopyright © 2010–2016 com.github.dblock. All rights reserved.