public class WmiPlugin extends AbstractPlugin
This class is designed to be used by the capabilities daemon to test whether a WMI service is running on the remote server and if the given class/object can be successfully retrieved from the service.
Constructor and Description |
---|
WmiPlugin() |
Modifier and Type | Method and Description |
---|---|
String |
getProtocolName()
Returns the name of the protocol that this plugin checks on the target
system for support.
|
boolean |
isProtocolSupported(InetAddress address)
Returns true if the protocol defined by this plugin is supported.
|
boolean |
isProtocolSupported(InetAddress address,
Map<String,Object> qualifiers)
Returns true if the protocol defined by this plugin is supported.
|
public String getProtocolName()
getProtocolName
in interface Plugin
getProtocolName
in class AbstractPlugin
public boolean isProtocolSupported(InetAddress address)
The WmiPlugin does not support undirected checks, we must have a map of parameters to determine how to issue a check to the target server.
isProtocolSupported
in interface Plugin
isProtocolSupported
in class AbstractPlugin
address
- The address to check for support.public boolean isProtocolSupported(InetAddress address, Map<String,Object> qualifiers)
The following parameters are used by this plugin:
WmiResult.RES_STATE_OK
or
WmiResult.RES_STATE_WARNING
.isProtocolSupported
in interface Plugin
isProtocolSupported
in class AbstractPlugin
address
- The address to check for support.qualifiers
- The map where qualification are set by the plugin.Copyright © 2017. All rights reserved.