Class FtpPlugin
-
Field Summary
Fields inherited from class ecmwf.common.plugin.PluginThread
_params
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
callerBack
(boolean reset) Caller back.getAttribute
(String attributeName) Gets the attribute.getInfo()
Gets the info.Gets the MBean info.Gets the plugin name.int
getPort()
Gets the port.Gets the version.Invoke.Get instance of current class.void
refuseConnection
(Socket socket, int connectionsCount) Refuse connection.void
startConnection
(Socket socket) Start connection.Methods inherited from class ecmwf.common.plugin.ServerPlugin
addConnection, callerGone, configurableRun, customizeSocket, getHeader, getInetAddress, getRemoteHost, getRemoteIP, getServerPluginDescriptor, getSocket, isAvailable, releaseConnection, setCloseOnExit, start, stop
Methods inherited from class ecmwf.common.plugin.PluginThread
getCaller, getParam, getPluginContainer, getRef, handle, handle, setAttribute, setCaller, setPluginContainer, subscribe, unSubscribe
Methods inherited from class ecmwf.common.technical.ThreadService.ConfigurableRunnable
execute, execute, getContextClassLoader, getPriority, getThreadName, interrupt, interrupted, isAlive, isStarted, join, join, run, setContextClassLoader, setForceCookie, setInheritCookie, setPriority, setThreadNameAndCookie
-
Constructor Details
-
FtpPlugin
Instantiates a new ftp plugin.- Parameters:
ref
- the refparams
- the paramssocket
- the socket- Throws:
IOException
- Signals that an I/O exception has occurred.
-
FtpPlugin
-
-
Method Details
-
newInstance
public ThreadService.ConfigurableRunnable newInstance(String ref, Map<String, String> params, Socket socket) throws IOExceptionGet instance of current class. Get instance of current class.- Specified by:
newInstance
in classServerPlugin
- Parameters:
ref
- the refparams
- the paramssocket
- the socket- Returns:
- the configurable runnable
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getPluginName
Gets the plugin name. Gets the plugin name.- Specified by:
getPluginName
in classPluginThread
- Returns:
- the plugin name
-
getPort
public int getPort()Gets the port. Gets the port.- Specified by:
getPort
in classServerPlugin
- Returns:
- the port
-
getVersion
Gets the version. Gets the version.- Specified by:
getVersion
in classPluginThread
- Returns:
- the version
-
getInfo
Gets the info. Gets the info.- Overrides:
getInfo
in classServerPlugin
- Returns:
- the info
-
callerBack
public void callerBack(boolean reset) Caller back. Caller back. Caller back.- Overrides:
callerBack
in classServerPlugin
- Parameters:
reset
- the reset
-
refuseConnection
Refuse connection. Refuse connection.- Specified by:
refuseConnection
in classServerPlugin
- Parameters:
socket
- the socketconnectionsCount
- the connections count- Throws:
IOException
- Signals that an I/O exception has occurred.
-
startConnection
Start connection. Start connection.- Specified by:
startConnection
in classServerPlugin
- Parameters:
socket
- the socket- Throws:
IOException
- Signals that an I/O exception has occurred.
-
getAttribute
Gets the attribute. Gets the attribute. Gets the attribute. Gets the attribute.- Specified by:
getAttribute
in interfaceMBeanService
- Overrides:
getAttribute
in classServerPlugin
- Parameters:
attributeName
- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException
- the attribute not found exceptionMBeanException
- the MBean exception
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException Invoke. Invoke. Invoke. Invoke.- Specified by:
invoke
in interfaceMBeanService
- Overrides:
invoke
in classServerPlugin
- Parameters:
operationName
- the operation nameparams
- the paramssignature
- the signature- Returns:
- the object
- Throws:
NoSuchMethodException
- the no such method exceptionMBeanException
- the MBean exception
-
getMBeanInfo
Gets the MBean info. Gets the MBean info. Gets the MBean info. Gets the MBean info.- Specified by:
getMBeanInfo
in interfaceMBeanService
- Overrides:
getMBeanInfo
in classServerPlugin
- Returns:
- the MBean info
-