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 TypeMethodDescriptionvoid
byeReq()
Bye req.void
customizeSocket
(Socket socket) Customize socket.void
Ecpds req.Gets the plugin name.int
getPort()
Gets the port.Gets the version.void
Host req.Get instance of current class.parseCommand
(String command) Parses the command.void
putReq()
Puts the req.void
Size req.void
Source req.void
Target req.void
Ticket req.void
versionReq
(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, wait
Methods inherited from class ecmwf.common.plugin.ServerPlugin
addConnection, callerBack, callerGone, configurableRun, getAttribute, getHeader, getInetAddress, getInfo, getMBeanInfo, getRemoteHost, getRemoteIP, getServerPluginDescriptor, getSocket, invoke, isAvailable, 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
-
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:
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
-
customizeSocket
Customize socket. Customize socket.- Overrides:
customizeSocket
in 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:
parseCommand
in classSimplePlugin
- Parameters:
command
- the command- Returns:
- the string
-
ticketReq
-