Package com.sun.jna.platform.win32.COM
Klasse WbemcliUtil.WmiQuery<T extends Enum<T>>
java.lang.Object
com.sun.jna.platform.win32.COM.WbemcliUtil.WmiQuery<T>
- Umschließende Klasse:
WbemcliUtil
Helper class wrapping information required for a WMI query.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungexecute()
Query WMI for values, with no timeout.execute
(int timeout) Query WMI for values, with a specified timeout.void
setNameSpace
(String nameSpace) void
setWmiClassName
(String wmiClassName)
-
Konstruktordetails
-
WmiQuery
Instantiate a WmiQuery.- Parameter:
nameSpace
- The WMI namespace to use.wmiClassName
- The WMI class to use. Optionally include a WQL WHERE clause with filters results to properties matching the input.propertyEnum
- An enum for type mapping.
-
WmiQuery
Instantiate a WMI Query in the default namespace- Parameter:
wmiClassName
- The WMI Class to use. May include a WHERE clause with filtering conditions.propertyEnum
- An Enum that contains the properties to query
-
-
Methodendetails
-
getPropertyEnum
- Gibt zurück:
- The enum containing the properties
-
getNameSpace
- Gibt zurück:
- The namespace
-
setNameSpace
- Parameter:
nameSpace
- The namespace to set
-
getWmiClassName
- Gibt zurück:
- The class name
-
setWmiClassName
- Parameter:
wmiClassName
- The classname to set
-
execute
Query WMI for values, with no timeout.- Gibt zurück:
- a WmiResult object containing the query results, wrapping an EnumMap
-
execute
Query WMI for values, with a specified timeout.- Parameter:
timeout
- Number of milliseconds to wait for results before timing out. IfWbemcli.WBEM_INFINITE
(-1), will always wait for results. If a timeout occurs, throws aTimeoutException
.- Gibt zurück:
- a WmiResult object containing the query results, wrapping an EnumMap
- Löst aus:
TimeoutException
- if the query times out before completion
-