public class WbemcliUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WbemcliUtil.WmiQuery<T extends java.lang.Enum<T>>
Helper class wrapping information required for a WMI query.
|
class |
WbemcliUtil.WmiResult<T extends java.lang.Enum<T>>
Helper class wrapping an EnumMap containing the results of a query.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_NAMESPACE
The default namespace for most WMI queries.
|
static WbemcliUtil |
INSTANCE
Instance to generate the WmiQuery class.
|
Constructor and Description |
---|
WbemcliUtil() |
Modifier and Type | Method and Description |
---|---|
static Wbemcli.IWbemServices |
connectServer(java.lang.String namespace)
Obtains a locator to the WMI server and connects to the specified
namespace
|
static boolean |
hasNamespace(java.lang.String namespace)
Determine if WMI has the requested namespace.
|
public static final WbemcliUtil INSTANCE
public static final java.lang.String DEFAULT_NAMESPACE
public static boolean hasNamespace(java.lang.String namespace)
namespace
- The namespace to testpublic static Wbemcli.IWbemServices connectServer(java.lang.String namespace)
namespace
- The namespace to connect to