|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.listeners.lifecycle.LifecycleController
public class LifecycleController
LifecycleController is an MBean implementation that
| Field Summary | |
|---|---|
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(ManagedLifecycleAdapter f_lifecycle)
Constructor using lifecycle and config tree. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.String name)
Gets the attribute value. |
protected java.util.SortedSet<java.lang.String> |
getAttributeNames()
Get the list of attribute names |
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. |
protected javax.management.ObjectName |
getObjectName()
|
protected java.util.List<javax.management.MBeanOperationInfo> |
getOperations()
Get the list of operations |
java.lang.Object |
invoke(java.lang.String method,
java.lang.Object[] arg1,
java.lang.String[] arg2)
Invoke calls the operations provided by the LifecycleController If one of the operation methods fails, we throw the exception, and if an unknown operation is called, we throw an exception. |
protected java.lang.Object |
invokeOperation(java.lang.String method,
java.lang.Object[] arg1,
java.lang.Object[] arg2)
Invoke the operations on the controller |
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 |
setLifecycle(ManagedLifecycleAdapter 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 |
unregisterMBean()
Unregister this MBean with JBoss. |
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 START_ACTION
public static final java.lang.String STOP_ACTION
| Constructor Detail |
|---|
public LifecycleController(ManagedLifecycleAdapter f_lifecycle)
f_lifecycle - lifecyclef_configtree - config tree| Method Detail |
|---|
protected void setStartTime(long f_startTime)
f_startTime - start timeprotected void unsetStartTime()
public void setLifecycle(ManagedLifecycleAdapter f_aml)
f_aml - lifecyclepublic java.lang.String getListenerXMLAsHtml()
public void start()
throws ManagedLifecycleException
ManagedLifecycleException
public void stop()
throws ManagedLifecycleException
ManagedLifecycleExceptionprotected void registerMBean()
protected void unregisterMBean()
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.DynamicMBeanjavax.management.AttributeNotFoundExceptionpublic javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo in interface javax.management.DynamicMBeanprotected java.util.SortedSet<java.lang.String> getAttributeNames()
protected java.util.List<javax.management.MBeanOperationInfo> getOperations()
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.DynamicMBeanjavax.management.ReflectionException
protected java.lang.Object invokeOperation(java.lang.String method,
java.lang.Object[] arg1,
java.lang.Object[] arg2)
throws javax.management.ReflectionException
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.DynamicMBeanjavax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionExceptionpublic javax.management.AttributeList setAttributes(javax.management.AttributeList arg0)
setAttributes in interface javax.management.DynamicMBeanprotected javax.management.ObjectName getObjectName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||