Class FtpPlugin
-
Field Summary
Fields inherited from class ecmwf.common.plugin.PluginThread
_params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallerBack(boolean reset) Caller back.getAttribute(String attributeName) Gets the attribute.getInfo()Gets the info.Gets the MBean info.Gets the plugin name.intgetPort()Gets the port.Gets the version.Invoke.Get instance of current class.voidrefuseConnection(Socket socket, int connectionsCount) Refuse connection.voidstartConnection(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, stopMethods inherited from class ecmwf.common.plugin.PluginThread
getCaller, getParam, getPluginContainer, getRef, handle, handle, setAttribute, setCaller, setPluginContainer, subscribe, unSubscribeMethods 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:
newInstancein 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:
getPluginNamein classPluginThread- Returns:
- the plugin name
-
getPort
public int getPort()Gets the port. Gets the port.- Specified by:
getPortin classServerPlugin- Returns:
- the port
-
getVersion
Gets the version. Gets the version.- Specified by:
getVersionin classPluginThread- Returns:
- the version
-
getInfo
Gets the info. Gets the info.- Overrides:
getInfoin classServerPlugin- Returns:
- the info
-
callerBack
public void callerBack(boolean reset) Caller back. Caller back. Caller back.- Overrides:
callerBackin classServerPlugin- Parameters:
reset- the reset
-
refuseConnection
Refuse connection. Refuse connection.- Specified by:
refuseConnectionin 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:
startConnectionin 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:
getAttributein interfaceMBeanService- Overrides:
getAttributein 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:
invokein interfaceMBeanService- Overrides:
invokein 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:
getMBeanInfoin interfaceMBeanService- Overrides:
getMBeanInfoin classServerPlugin- Returns:
- the MBean info
-