public class WbemcliUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WbemcliUtil.WmiQuery<T extends Enum<T>>
Helper class wrapping information required for a WMI query.
|
class |
WbemcliUtil.WmiResult<T extends Enum<T>>
Helper class wrapping an EnumMap containing the results of a query.
|
| Modifier and Type | Field and Description |
|---|---|
static 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(String namespace)
Obtains a locator to the WMI server and connects to the specified
namespace
|
static boolean |
hasNamespace(String namespace)
Determine if WMI has the requested namespace.
|
public static final WbemcliUtil INSTANCE
public static final String DEFAULT_NAMESPACE
public static boolean hasNamespace(String namespace)
namespace - The namespace to testpublic static Wbemcli.IWbemServices connectServer(String namespace)
namespace - The namespace to connect toCopyright © 2010–2018 oshi. All rights reserved.