|
OpenNMS API 1.2.3 | |||||||||
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.AbstractTcpPlugin
org.opennms.netmgt.capsd.FtpPlugin
This class is designed to be used by the capabilities daemon to test for the existance of an FTP server on remote interfaces. The class implements the Plugin interface that allows it to be used along with other plugins by the daemon.
Field Summary | |
private static int |
DEFAULT_PORT
The default port on which the host is checked to see if it supports FTP. |
private static int |
DEFAULT_RETRY
Default number of retries for FTP requests. |
private static int |
DEFAULT_TIMEOUT
Default timeout (in milliseconds) for FTP requests. |
private static org.apache.regexp.RE |
MULTILINE_RESULT
The regular expression test used to determine if the reply is a multi line reply. |
private static java.lang.String |
PROTOCOL_NAME
The capability name of the plugin. |
Fields inherited from class org.opennms.netmgt.capsd.AbstractTcpPlugin |
m_defaultPort, m_defaultRetry, m_defaultTimeout, m_pluginName, m_protocolName |
Constructor Summary | |
FtpPlugin()
|
Method Summary | |
protected boolean |
checkProtocol(java.net.Socket socket,
ConnectionConfig config)
|
Methods inherited from class org.opennms.netmgt.capsd.AbstractTcpPlugin |
checkConnection, closeSocket, createConnectionConfig, getConnectionConfigList, getKeyedInteger, getKeyedIntegerArray, getPluginName, getProtocolName, isProtocolSupported, isProtocolSupported, populateConnectionConfig, preconnectCheck, saveConfig, saveKeyedInteger, setPluginName, wrapSocket |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final int DEFAULT_PORT
The default port on which the host is checked to see if it supports FTP.
private static final int DEFAULT_RETRY
private static final int DEFAULT_TIMEOUT
private static final org.apache.regexp.RE MULTILINE_RESULT
private static final java.lang.String PROTOCOL_NAME
The capability name of the plugin.
Constructor Detail |
public FtpPlugin()
Method Detail |
protected boolean checkProtocol(java.net.Socket socket, ConnectionConfig config) throws java.io.IOException
checkProtocol
in class AbstractTcpPlugin
socket
- config
-
java.io.IOException
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |