|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.listeners.lifecycle.LifecycleController
public class LifecycleController
LifecycleController is an MBean implementation that
Field Summary | |
---|---|
static java.lang.String |
DESTROY_ACTION
|
static java.lang.String |
INIT_ACTION
|
static java.lang.String |
LIFECYCLESTATE_ATTRIB
|
static java.lang.String |
START_ACTION
|
static java.lang.String |
STARTTIME_ATTRIB
|
static java.lang.String |
STOP_ACTION
|
static java.lang.String |
XML_ATTRIB
|
Constructor Summary | |
---|---|
LifecycleController(ManagedLifecycle f_lifecycle,
ConfigTree f_configtree)
Constructor using lifecycle and config tree. |
Method Summary | |
---|---|
void |
destroy()
Calls destroy on the lifecycle. |
java.lang.String |
getAttribute(java.lang.String name)
Gets the attribute value. |
javax.management.AttributeList |
getAttributes(java.lang.String[] arg0)
Gets the list of attributes. |
java.lang.String |
getListenerXMLAsHtml()
Gets the configtree XML as escaped HTML. |
javax.management.MBeanInfo |
getMBeanInfo()
This creates the MBeanInfo object provided. |
void |
initialise()
Calls initialise on the lifecycle. |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] arg1,
java.lang.String[] arg2)
Invoke calls the four operations provided by the LifecycleController - initialise, start, stop, destroy. |
protected void |
registerMBean()
Register this MBean with JBoss. |
void |
setAttribute(javax.management.Attribute arg0)
This method is here to implement the DynamicMBean interface in full, but it is not used because all of the attributes provided are read-only. |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList arg0)
This method is here to implement the DynamicMBean interface in full, but it is not used because all of the attributes provided are read-only. |
void |
setConfigTree(ConfigTree f_ct)
ConfigTree mutator. |
void |
setLifecycle(ManagedLifecycle f_aml)
Lifecycle mutator. |
protected void |
setStartTime(long f_startTime)
StartTime mutator. |
void |
start()
Calls start on the lifecycle. |
void |
stop()
Calls stop on the lifecycle. |
protected void |
unsetStartTime()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LIFECYCLESTATE_ATTRIB
public static final java.lang.String STARTTIME_ATTRIB
public static final java.lang.String XML_ATTRIB
public static final java.lang.String INIT_ACTION
public static final java.lang.String START_ACTION
public static final java.lang.String STOP_ACTION
public static final java.lang.String DESTROY_ACTION
Constructor Detail |
---|
public LifecycleController(ManagedLifecycle f_lifecycle, ConfigTree f_configtree)
f_lifecycle
- lifecyclef_configtree
- config treeMethod Detail |
---|
protected void setStartTime(long f_startTime)
f_startTime
- start timeprotected void unsetStartTime()
public void setLifecycle(ManagedLifecycle f_aml)
f_aml
- lifecyclepublic java.lang.String getListenerXMLAsHtml()
public void setConfigTree(ConfigTree f_ct)
f_ct
- config treepublic void destroy() throws ManagedLifecycleException
ManagedLifecycleException
public void initialise() throws ManagedLifecycleException
ManagedLifecycleException
public void start() throws ManagedLifecycleException
ManagedLifecycleException
public void stop() throws ManagedLifecycleException
ManagedLifecycleException
protected void registerMBean()
public javax.management.AttributeList getAttributes(java.lang.String[] arg0)
getAttributes
in interface javax.management.DynamicMBean
public java.lang.String getAttribute(java.lang.String name) throws javax.management.AttributeNotFoundException
getAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
public javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo
in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String method, java.lang.Object[] arg1, java.lang.String[] arg2) throws javax.management.ReflectionException
invoke
in interface javax.management.DynamicMBean
javax.management.ReflectionException
public void setAttribute(javax.management.Attribute arg0) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException
setAttribute
in interface javax.management.DynamicMBean
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
public javax.management.AttributeList setAttributes(javax.management.AttributeList arg0)
setAttributes
in interface javax.management.DynamicMBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |