Class HttpPlugin
java.lang.Object
ecmwf.common.technical.ThreadService.ConfigurableRunnable
ecmwf.common.plugin.PluginThread
ecmwf.ecpds.master.plugin.http.HttpPlugin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The Class AccessRestrictionFilter.static class
The Class SessionRule. -
Field Summary
Fields inherited from class ecmwf.common.plugin.PluginThread
_params
-
Constructor Summary
ConstructorsConstructorDescriptionHttpPlugin
(String ref, Map<String, String> params) Instantiates a new http plugin. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attributeName) Gets the attribute.Gets the MBean info.Gets the plugin name.Gets the version.void
handle
(PluginEvent<?> event) Handle.Invoke.void
registerEventHandler
(EventHandler eventHandler) Register event handler.boolean
start()
Start.void
stop()
Stop.void
waitForMasterConnection
(boolean initialiseEventHandler) Initialise event handler.Methods inherited from class ecmwf.common.plugin.PluginThread
callerBack, callerGone, configurableRun, getCaller, getParam, getPluginContainer, getRef, 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
-
HttpPlugin
-
-
Method Details
-
getPluginName
Gets the plugin name. Gets the plugin name.- Specified by:
getPluginName
in classPluginThread
- Returns:
- the plugin name
-
getVersion
Gets the version. Gets the version.- Specified by:
getVersion
in classPluginThread
- Returns:
- the version
-
start
public boolean start()Start. Start.- Specified by:
start
in classPluginThread
- Returns:
- true, if successful
-
registerEventHandler
Register event handler. Register event handler.- Specified by:
registerEventHandler
in interfaceHandlerReceiver
- Parameters:
eventHandler
- the event handler
-
waitForMasterConnection
Initialise event handler.- Parameters:
initialiseEventHandler
- the initialise event handler- Throws:
RemoteException
- the remote exception
-
stop
-
getAttribute
Gets the attribute. Gets the attribute. Gets the attribute.- Specified by:
getAttribute
in interfaceMBeanService
- Overrides:
getAttribute
in classPluginThread
- Parameters:
attributeName
- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException
- the attribute not found exceptionMBeanException
- the MBean exception
-
getMBeanInfo
Gets the MBean info. Gets the MBean info. Gets the MBean info.- Specified by:
getMBeanInfo
in interfaceMBeanService
- Overrides:
getMBeanInfo
in classPluginThread
- Returns:
- the MBean info
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException Invoke. Invoke. Invoke.- Specified by:
invoke
in interfaceMBeanService
- Overrides:
invoke
in classPluginThread
- Parameters:
operationName
- the operation nameparams
- the paramssignature
- the signature- Returns:
- the object
- Throws:
NoSuchMethodException
- the no such method exceptionMBeanException
- the MBean exception
-
handle
Handle. Handle.- Overrides:
handle
in classPluginThread
- Parameters:
event
- the event
-