Package com.sun.jna.platform.win32.COM
Class WbemcliUtil
- java.lang.Object
- 
- com.sun.jna.platform.win32.COM.WbemcliUtil
 
- 
 public class WbemcliUtil extends java.lang.ObjectUtility class providing access to Windows Management Interface (WMI) via COM.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classWbemcliUtil.WmiQuery<T extends java.lang.Enum<T>>Helper class wrapping information required for a WMI query.classWbemcliUtil.WmiResult<T extends java.lang.Enum<T>>Helper class wrapping an EnumMap containing the results of a query.
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringDEFAULT_NAMESPACEThe default namespace for most WMI queries.static WbemcliUtilINSTANCEInstance to generate the WmiQuery class.
 - 
Constructor SummaryConstructors Constructor Description WbemcliUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Wbemcli.IWbemServicesconnectServer(java.lang.String namespace)Obtains a locator to the WMI server and connects to the specified namespacestatic booleanhasNamespace(java.lang.String namespace)Determine if WMI has the requested namespace.
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final WbemcliUtil INSTANCE Instance to generate the WmiQuery class.
 - 
DEFAULT_NAMESPACEpublic static final java.lang.String DEFAULT_NAMESPACE The default namespace for most WMI queries.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
hasNamespacepublic static boolean hasNamespace(java.lang.String namespace) Determine if WMI has the requested namespace. Some namespaces only exist on newer versions of Windows.- Parameters:
- namespace- The namespace to test
- Returns:
- true if the namespace exists, false otherwise
 
 - 
connectServerpublic static Wbemcli.IWbemServices connectServer(java.lang.String namespace) Obtains a locator to the WMI server and connects to the specified namespace- Parameters:
- namespace- The namespace to connect to
- Returns:
- A service representing the connected namespace, which can be queried. This service may be re-used for multiple queries and should be released by the user
 
 
- 
 
-