|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.capsd.AbstractPlugin
org.opennms.netmgt.capsd.plugins.NsclientPlugin
public class NsclientPlugin
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 Summary | |
|---|---|
NsclientPlugin()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NsclientPlugin()
| Method Detail |
|---|
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.
UnsupportedOperationException - This is always thrown by this plugin.
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||