public class WbemcliUtil
extends java.lang.Object
Modifier and Type | Class | 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 | Description |
---|---|---|
static java.lang.String |
DEFAULT_NAMESPACE |
The default namespace for most WMI queries.
|
static WbemcliUtil |
INSTANCE |
Instance to generate the WmiQuery class.
|
Constructor | Description |
---|---|
WbemcliUtil() |
Modifier and Type | Method | 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