|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.framework.ServiceUnitLifeCycle
public class ServiceUnitLifeCycle
| Field Summary |
|---|
| Fields inherited from interface org.apache.servicemix.jbi.framework.ServiceUnitMBean |
|---|
SHUTDOWN, STARTED, STOPPED |
| Constructor Summary | |
|---|---|
ServiceUnitLifeCycle(ServiceUnit serviceUnit,
String serviceAssembly,
Registry registry,
File rootDir)
|
|
| Method Summary | |
|---|---|
protected void |
checkComponentStarted(String task)
|
protected void |
checkComponentStartedOrStopped(String task)
|
protected void |
fireEvent(int type)
|
protected void |
firePropertyChanged(String name,
Object oldValue,
Object newValue)
|
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
protected ClassLoader |
getComponentClassLoader()
|
String |
getComponentName()
|
String |
getCurrentState()
|
String |
getDescription()
Get the Description of the item |
String |
getDescriptor()
|
String |
getKey()
|
String |
getName()
Get the name of the item |
Object |
getObjectToManage()
Get the Object to Manage |
MBeanOperationInfo[] |
getOperationInfos()
Get an array of MBeanOperationInfo |
String |
getServiceAssembly()
|
Services |
getServices()
|
protected javax.jbi.component.ServiceUnitManager |
getServiceUnitManager()
|
protected File |
getServiceUnitRootPath()
|
String |
getSubType()
Get the type of this mbean |
String |
getType()
Get the type of this mbean |
void |
init()
Initialize the service unit. |
boolean |
isShutDown()
|
boolean |
isStarted()
|
boolean |
isStopped()
|
void |
setPropertyChangeListener(PropertyChangeListener l)
Register for propertyChange events |
void |
shutDown()
Shut down the service unit. |
void |
start()
Start the service unit. |
void |
stop()
Stop the service unit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceUnitLifeCycle(ServiceUnit serviceUnit,
String serviceAssembly,
Registry registry,
File rootDir)
| Method Detail |
|---|
public void init()
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
public void start()
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
public void stop()
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
public void shutDown()
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentExceptionpublic String getCurrentState()
getCurrentState in interface ServiceUnitMBeanpublic boolean isShutDown()
public boolean isStopped()
public boolean isStarted()
public String getName()
MBeanInfoProvider
getName in interface ServiceUnitMBeangetName in interface MBeanInfoProviderpublic String getDescription()
MBeanInfoProvider
getDescription in interface ServiceUnitMBeangetDescription in interface MBeanInfoProviderpublic String getComponentName()
getComponentName in interface ServiceUnitMBeanpublic String getServiceAssembly()
getServiceAssembly in interface ServiceUnitMBeanpublic String getDescriptor()
getDescriptor in interface ServiceUnitMBeanpublic Services getServices()
protected void checkComponentStarted(String task)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected void checkComponentStartedOrStopped(String task)
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentExceptionprotected File getServiceUnitRootPath()
protected javax.jbi.component.ServiceUnitManager getServiceUnitManager()
protected ClassLoader getComponentClassLoader()
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
MBeanInfoProvider
getAttributeInfos in interface MBeanInfoProviderJMException
public MBeanOperationInfo[] getOperationInfos()
throws JMException
MBeanInfoProvider
getOperationInfos in interface MBeanInfoProviderJMExceptionpublic Object getObjectToManage()
MBeanInfoProvider
getObjectToManage in interface MBeanInfoProviderpublic String getType()
MBeanInfoProvider
getType in interface MBeanInfoProviderpublic String getSubType()
MBeanInfoProvider
getSubType in interface MBeanInfoProviderpublic void setPropertyChangeListener(PropertyChangeListener l)
MBeanInfoProvider
setPropertyChangeListener in interface MBeanInfoProvider
protected void firePropertyChanged(String name,
Object oldValue,
Object newValue)
public String getKey()
protected void fireEvent(int type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||