Class PluginContainer
java.lang.Object
ecmwf.common.plugin.PluginContainer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal class
The Class PluginActionThread. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attributeName) Gets the attribute.Gets the MBean info.getMonitorManager
(String name) Gets the monitor manager.Gets the plugin infos.getPluginStatus
(String ref) Gets the plugin status.Gets the plugin status update date.void
handle
(PluginEvent<?>[] events) Handle.Invoke.void
Load plugins.void
notify
(PluginEvent<?>[] events) Notify.void
notifyCallerBack
(boolean reset) Notify caller back.void
Notify caller gone.boolean
setAttribute
(String name, Object value) Sets the attribute.boolean
startPlugin
(String ref) Start plugin.void
Start plugins.boolean
stopPlugin
(String ref) Stop plugin.void
Stop plugins.void
Unregister plugins.
-
Constructor Details
-
PluginContainer
Instantiates a new plugin container.- Parameters:
caller
- the caller
-
-
Method Details
-
getPluginInfos
-
getMonitorManager
Gets the monitor manager. Gets the monitor manager.- Specified by:
getMonitorManager
in interfaceMonitorCallback
- Parameters:
name
- the name- Returns:
- the monitor manager
- Throws:
MonitorException
- the monitor exception
-
getPluginStatus
-
loadPlugins
public void loadPlugins()Load plugins. -
notifyCallerBack
public void notifyCallerBack(boolean reset) Notify caller back.- Parameters:
reset
- the reset
-
notifyCallerGone
public void notifyCallerGone()Notify caller gone. -
startPlugin
Start plugin.- Parameters:
ref
- the ref- Returns:
- true, if successful
-
stopPlugin
Stop plugin.- Parameters:
ref
- the ref- Returns:
- true, if successful
-
stopPlugins
public void stopPlugins()Stop plugins. -
notify
-
handle
-
getAttribute
Gets the attribute. Gets the attribute.- Specified by:
getAttribute
in interfaceMBeanService
- 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.- Specified by:
getMBeanInfo
in interfaceMBeanService
- Returns:
- the MBean info
-
getPluginStatusUpdateDate
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException Invoke. Invoke.- Specified by:
invoke
in interfaceMBeanService
- Parameters:
operationName
- the operation nameparams
- the paramssignature
- the signature- Returns:
- the object
- Throws:
NoSuchMethodException
- the no such method exceptionMBeanException
- the MBean exception
-
setAttribute
Sets the attribute. Sets the attribute.- Specified by:
setAttribute
in interfaceMBeanService
- Parameters:
name
- the namevalue
- the value- Returns:
- true, if successful
-
unregisterPlugins
public void unregisterPlugins()Unregister plugins. -
startPlugins
public void startPlugins()Start plugins.
-