org.opennms.bb.dp.capsd.plugin
Interface CapsdPlugin

All Known Implementing Classes:
TestForDnsServer, TestForSmtpServer, TestForHttpServer, TestForFtpServer

public interface CapsdPlugin

The CapsdPlugin interface is the basic interface that a plugin for the capabilites daemon must support. The interface allows the daemon to determine what protocols can be verified by the plugin and has the required methods to verify protocol support for nodes/protocol pairs.

Version:
$Revision: 1.4 $
Author:
Brian Weaver, OpenNMS

Method Summary
 String getCapabilityName()
          Returns the db-name of the capability(s) it is checking
 boolean isProtocolSupported(InetAddress address)
          Returns true if the default (first) protocol is supported by the address
 boolean isProtocolSupported(InetAddress address, String capName)
          Returns true if the specified protocol is supported by the class
 

Method Detail

getCapabilityName

public String getCapabilityName()
Returns the db-name of the capability(s) it is checking
Returns:
the db-name of the capability(s) it is checking

isProtocolSupported

public boolean isProtocolSupported(InetAddress address)
Returns true if the default (first) protocol is supported by the address
Returns:
true if the default (first) protocol is supported by the address

isProtocolSupported

public boolean isProtocolSupported(InetAddress address,
                                   String capName)
                            throws UnsupportedProtocolException
Returns true if the specified protocol is supported by the class
Returns:
true if the specified protocol is supported by the class