|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.management.BaseLifeCycle
public abstract class BaseLifeCycle
A BasicLifeCycle implementation
| Field Summary | |
|---|---|
protected String |
currentState
|
static String |
INITIALIZED
|
protected PropertyChangeListener |
listener
|
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
BaseLifeCycle()
|
|
| Method Summary | |
|---|---|
protected void |
firePropertyChanged(String name,
Object oldValue,
Object newValue)
|
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
String |
getCurrentState()
Get the current state of this managed compononent. |
String |
getName()
Get the name of the item |
Object |
getObjectToManage()
Get the Object to Manage |
MBeanOperationInfo[] |
getOperationInfos()
Get an array of MBeanOperationInfo |
String |
getSubType()
Get the type of this mbean |
String |
getType()
Get the type of the item |
protected void |
init()
set state to initialized |
boolean |
isInitialized()
|
boolean |
isShutDown()
|
boolean |
isStarted()
|
boolean |
isStopped()
|
boolean |
isUnknown()
|
protected void |
setCurrentState(String newValue)
Set the current state |
void |
setPropertyChangeListener(PropertyChangeListener l)
Register for propertyChange events |
void |
shutDown()
Shut down the item. |
void |
start()
Start the item. |
void |
stop()
Stop the item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.servicemix.jbi.management.MBeanInfoProvider |
|---|
getDescription |
| Field Detail |
|---|
public static final String INITIALIZED
protected String currentState
protected PropertyChangeListener listener
| Constructor Detail |
|---|
public BaseLifeCycle()
| Method Detail |
|---|
public String getName()
getName in interface MBeanInfoProviderpublic String getType()
getType in interface MBeanInfoProviderpublic String getSubType()
MBeanInfoProvider
getSubType in interface MBeanInfoProvider
protected void init()
throws javax.jbi.JBIException
javax.jbi.JBIException
public void start()
throws javax.jbi.JBIException
start in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIException - if the item fails to start.
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIException - if the item fails to stop.
public void shutDown()
throws javax.jbi.JBIException
shutDown in interface javax.jbi.management.LifeCycleMBeanjavax.jbi.JBIException - if the item fails to shut down.public String getCurrentState()
getCurrentState in interface javax.jbi.management.LifeCycleMBeanprotected void setCurrentState(String newValue)
newValue - public boolean isStarted()
public boolean isStopped()
public boolean isShutDown()
public boolean isInitialized()
public boolean isUnknown()
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
getAttributeInfos in interface MBeanInfoProviderJMException
public MBeanOperationInfo[] getOperationInfos()
throws JMException
getOperationInfos in interface MBeanInfoProviderJMExceptionpublic Object getObjectToManage()
getObjectToManage in interface MBeanInfoProviderpublic void setPropertyChangeListener(PropertyChangeListener l)
setPropertyChangeListener in interface MBeanInfoProviderl -
protected void firePropertyChanged(String name,
Object oldValue,
Object newValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||