Class SshPlugin
java.lang.Object
ecmwf.common.technical.ThreadService.ConfigurableRunnable
ecmwf.common.plugin.PluginThread
ecmwf.ecpds.mover.plugin.ssh.SshPlugin
- All Implemented Interfaces:
MBeanService, Runnable
The Class SshPlugin.
-
Field Summary
Fields inherited from class PluginThread
_params -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attributeName) Gets the attribute.Gets the port(s) this plugin is actually listening on, read directly from the plugin's own live state (as opposed to re-deriving it from configuration by plugin ref/name, which is fragile and breaks whenever a plugin's configuration section name differs from what a caller assumes).Gets the MBean info.Gets the plugin name.Gets the version.booleanstart()Start.voidstop()Stop.Methods inherited from class PluginThread
callerBack, callerGone, configurableRun, getCaller, getParam, getPluginContainer, getRef, handle, handle, invoke, setAttribute, setCaller, setPluginContainer, subscribe, unSubscribeMethods inherited from class ThreadService.ConfigurableRunnable
execute, execute, execute, getContextClassLoader, getPriority, getThreadName, interrupt, interrupted, isAlive, isStarted, join, join, run, setContextClassLoader, setForceCookie, setInheritCookie, setPriority, setThreadNameAndCookie
-
Constructor Details
-
SshPlugin
-
-
Method Details
-
getPluginName
Gets the plugin name.- Specified by:
getPluginNamein classPluginThread- Returns:
- the plugin name
-
getVersion
Gets the version.- Specified by:
getVersionin classPluginThread- Returns:
- the version
-
getListeningPorts
Gets the port(s) this plugin is actually listening on, read directly from the plugin's own live state (as opposed to re-deriving it from configuration by plugin ref/name, which is fragile and breaks whenever a plugin's configuration section name differs from what a caller assumes). Subclasses that open one or more network listeners should override this to return their actual bound port(s); the default returns an empty list, meaning "no listening port to report" (e.g. a plugin with no network listener of its own). Returns this plugin's own listening port, read directly from this plugin's own configuration - only while actually started (the server field is only non-null once running).- Overrides:
getListeningPortsin classPluginThread- Returns:
- the listening port(s), or an empty list if none/not applicable
-
start
public boolean start()Start.- Specified by:
startin classPluginThread- Returns:
- true, if successful
-
stop
-
getAttribute
Gets the attribute.- Specified by:
getAttributein interfaceMBeanService- Overrides:
getAttributein classPluginThread- Parameters:
attributeName- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException- the attribute not found exceptionMBeanException- the MBean exception
-
getMBeanInfo
Gets the MBean info.- Specified by:
getMBeanInfoin interfaceMBeanService- Overrides:
getMBeanInfoin classPluginThread- Returns:
- the MBean info
-