Class ECproxyPlugin
java.lang.Object
ecmwf.common.technical.ThreadService.ConfigurableRunnable
ecmwf.common.plugin.PluginThread
ecmwf.common.plugin.ServerPlugin
ecmwf.common.plugin.SimplePlugin
ecmwf.ecpds.mover.plugin.ecproxy.ECproxyPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from class ecmwf.common.plugin.SimplePlugin
SimplePlugin.ParameterException -
Field Summary
Fields inherited from class ecmwf.common.plugin.PluginThread
_params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbyeReq()Bye req.voidcustomizeSocket(Socket socket) Customize socket.voidEcpds req.Gets the plugin name.intgetPort()Gets the port.Gets the version.voidHost req.Get instance of current class.parseCommand(String command) Parses the command.voidputReq()Puts the req.voidSize req.voidSource req.voidTarget req.voidTicket req.voidversionReq(String[] parameters) Version req.Methods inherited from class ecmwf.common.plugin.SimplePlugin
error, getInputStream, getOpts, getOpts, getOutputStream, getParameter, getParameter, invoke, optsReq, print, println, readLine, refuseConnection, releaseConnection, send, send, setLoop, setSeparators, startConnection, waitMethods inherited from class ecmwf.common.plugin.ServerPlugin
addConnection, callerBack, callerGone, configurableRun, getAttribute, getHeader, getInetAddress, getInfo, getMBeanInfo, getRemoteHost, getRemoteIP, getServerPluginDescriptor, getSocket, invoke, isAvailable, 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
-
ECproxyPlugin
Instantiates a new e cproxy plugin.- Parameters:
name- the nameparams- the paramssocket- the socket- Throws:
IOException- Signals that an I/O exception has occurred.
-
ECproxyPlugin
-
-
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
-
customizeSocket
Customize socket. Customize socket.- Overrides:
customizeSocketin classServerPlugin- Parameters:
socket- the socket- Throws:
IOException- Signals that an I/O exception has occurred.
-
versionReq
Version req.- Parameters:
parameters- the parameters- Throws:
SimplePlugin.ParameterException- the parameter exception
-
ecpdsReq
Ecpds req.- Parameters:
parameters- the parameters- Throws:
SimplePlugin.ParameterException- the parameter exception
-
hostReq
Host req.- Parameters:
parameters- the parameters- Throws:
SimplePlugin.ParameterException- the parameter exception
-
targetReq
Target req.- Parameters:
parameters- the parameters- Throws:
IOException- Signals that an I/O exception has occurred.SimplePlugin.ParameterException- the parameter exception
-
sourceReq
Source req.- Parameters:
parameters- the parameters- Throws:
IOException- Signals that an I/O exception has occurred.SimplePlugin.ParameterException- the parameter exception
-
sizeReq
Size req.- Parameters:
parameters- the parameters- Throws:
IOException- Signals that an I/O exception has occurred.SimplePlugin.ParameterException- the parameter exception
-
byeReq
Bye req.- Throws:
SimplePlugin.ParameterException- the parameter exception
-
putReq
public void putReq()Puts the req. -
parseCommand
Parses the command. Parses the command.- Overrides:
parseCommandin classSimplePlugin- Parameters:
command- the command- Returns:
- the string
-
ticketReq
-