org.xmlBlaster.contrib.jmx
Class MX4JAdaptor
java.lang.Object
org.xmlBlaster.contrib.GlobalInfo
org.xmlBlaster.contrib.jmx.MX4JAdaptor
- All Implemented Interfaces:
- I_Info, I_Plugin
public class MX4JAdaptor
- extends GlobalInfo
MX4JAdaptor
- Author:
- Michele Laghi
Field Summary |
private mx4j.tools.adaptor.http.HttpAdaptor |
adaptor
|
private static java.lang.String |
ADMIN_ROLE
|
private java.lang.String |
authMethod
|
private static java.lang.String |
INITIATOR_ROLE
|
private static java.util.logging.Logger |
log
|
private javax.management.ObjectName |
name
|
private java.util.Map |
roles
|
private static java.lang.String |
USER_ROLE
|
Methods inherited from class org.xmlBlaster.contrib.GlobalInfo |
dump, get, getBoolean, getGlobal, getInt, getKeys, getLong, getObject, getObjectKeys, getOriginalGlobal, getRaw, getStrippedString, getType, getVersion, init, loadPlugin, put, putObject, putRaw, replaceAllEntries, setStrippedHostname |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static java.util.logging.Logger log
USER_ROLE
private static final java.lang.String USER_ROLE
- See Also:
- Constant Field Values
ADMIN_ROLE
private static final java.lang.String ADMIN_ROLE
- See Also:
- Constant Field Values
INITIATOR_ROLE
private static final java.lang.String INITIATOR_ROLE
- See Also:
- Constant Field Values
name
private javax.management.ObjectName name
roles
private java.util.Map roles
authMethod
private java.lang.String authMethod
adaptor
private mx4j.tools.adaptor.http.HttpAdaptor adaptor
MX4JAdaptor
public MX4JAdaptor()
instantiateAdaptor
private final mx4j.tools.adaptor.http.HttpAdaptor instantiateAdaptor(Global global)
throws java.lang.Exception
- Throws:
java.lang.Exception
stopAdaptor
private final void stopAdaptor()
throws java.lang.Exception
- Throws:
java.lang.Exception
doInit
protected void doInit(Global global,
PluginInfo pluginInfo)
throws XmlBlasterException
- Specified by:
doInit
in class GlobalInfo
- Parameters:
global
- The global passed by the RunLevelManager, this is not the object owned by the plugin. It is the original global.
- Throws:
XmlBlasterException
- See Also:
GlobalInfo.doInit(org.xmlBlaster.util.Global, org.xmlBlaster.util.plugin.PluginInfo)
shutdown
public void shutdown()
throws XmlBlasterException
- Description copied from interface:
I_Plugin
- Cleans up the resource.
- Specified by:
shutdown
in interface I_Plugin
- Overrides:
shutdown
in class GlobalInfo
- Throws:
XmlBlasterException
- if an exception occurs. The exception is
handled by the RunLevelManager depending on how the plugin has been
configured with the action:
<action do='STOP' onShutdownRunlevel='2' sequence='5'
onFail='resource.configuration.pluginFailed'>
If onFail is defined to something, the RunLevelManager will stop.- See Also:
I_Plugin.shutdown()
Copyright © 1999-2014 The xmlBlaster.org contributers.