Class PluginContainer
java.lang.Object
ecmwf.common.plugin.PluginContainer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classThe 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.voidhandle(PluginEvent<?>[] events) Handle.Invoke.voidLoad plugins.voidnotify(PluginEvent<?>[] events) Notify.voidnotifyCallerBack(boolean reset) Notify caller back.voidNotify caller gone.booleansetAttribute(String name, Object value) Sets the attribute.booleanstartPlugin(String ref) Start plugin.voidStart plugins.booleanstopPlugin(String ref) Stop plugin.voidStop plugins.voidUnregister 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:
getMonitorManagerin 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:
getAttributein 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:
getMBeanInfoin interfaceMBeanService- Returns:
- the MBean info
-
getPluginStatusUpdateDate
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException Invoke. Invoke.- Specified by:
invokein 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:
setAttributein interfaceMBeanService- Parameters:
name- the namevalue- the value- Returns:
- true, if successful
-
unregisterPlugins
public void unregisterPlugins()Unregister plugins. -
startPlugins
public void startPlugins()Start plugins.
-