public class NsclientPlugin extends AbstractPlugin
This class is designed to be used by the capabilities daemon to test whether a NSClient service is running on the remote server and if the given command can be successfully executed against the service.
| Constructor and Description |
|---|
NsclientPlugin() |
| 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 PlugingetProtocolName in class AbstractPluginpublic boolean isProtocolSupported(InetAddress address)
The NsclientPlugin 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 PluginisProtocolSupported in class AbstractPluginaddress - The address to check for support.public boolean isProtocolSupported(InetAddress address, Map<String,Object> qualifiers)
The following parameters are used by this plugin:
NsclientPacket.RES_STATE_OK or
NsclientPacket.RES_STATE_WARNING.isProtocolSupported in interface PluginisProtocolSupported in class AbstractPluginaddress - The address to check for support.qualifiers - The map where qualification are set by the plugin.Copyright © 2015. All rights reserved.