|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle
public class ServiceAssemblyLifeCycle
ComponentConnector is used internally for message routing
| Field Summary |
|---|
| Fields inherited from interface org.apache.servicemix.jbi.framework.ServiceAssemblyMBean |
|---|
SHUTDOWN, STARTED, STOPPED |
| Constructor Summary | |
|---|---|
ServiceAssemblyLifeCycle(ServiceAssembly sa,
ServiceAssemblyEnvironment env,
Registry registry)
Construct a LifeCycle |
|
| Method Summary | |
|---|---|
protected void |
fireEvent(int type)
|
protected void |
firePropertyChanged(String name,
Object oldValue,
Object newValue)
|
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
protected Element |
getComponentFailure(Exception exception,
String task,
String component)
|
String |
getCurrentState()
|
ServiceUnitLifeCycle[] |
getDeployedSUs()
|
String |
getDescription()
Get the Description of the item |
String |
getDescriptor()
|
protected Element |
getElement(Document doc,
String name)
|
ServiceAssemblyEnvironment |
getEnvironment()
|
protected String |
getLinkType(QName svc,
String ep)
|
String |
getName()
Get the name of the item |
Object |
getObjectToManage()
Get the Object to Manage |
MBeanOperationInfo[] |
getOperationInfos()
Get an array of MBeanOperationInfo |
ServiceAssembly |
getServiceAssembly()
|
ObjectName[] |
getServiceUnits()
|
String |
getSubType()
Get the type of this mbean |
String |
getType()
Get the type of this mbean |
protected Document |
parse(String result)
|
void |
restore()
Restore this service assembly to its state at shutdown. |
void |
setPropertyChangeListener(PropertyChangeListener l)
Register for propertyChange events |
protected void |
setServiceUnits(ServiceUnitLifeCycle[] serviceUnits)
|
String |
shutDown()
Shutdown the service assembly and puts it in SHUTDOWN state. |
String |
shutDown(boolean writeState)
|
String |
start()
Start a Service Assembly and put it in the STARTED state. |
String |
start(boolean writeState)
|
protected void |
startConnections()
|
String |
stop()
Stops the service assembly and puts it in STOPPED state. |
String |
stop(boolean writeState,
boolean forceInit)
|
protected void |
stopConnections()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceAssemblyLifeCycle(ServiceAssembly sa,
ServiceAssemblyEnvironment env,
Registry registry)
sa - stateFile - | Method Detail |
|---|
protected void setServiceUnits(ServiceUnitLifeCycle[] serviceUnits)
public String start()
throws Exception
start in interface ServiceAssemblyMBeanException
public String start(boolean writeState)
throws Exception
Exception
public String stop()
throws Exception
stop in interface ServiceAssemblyMBeanException
public String stop(boolean writeState,
boolean forceInit)
throws Exception
Exception
public String shutDown()
throws Exception
shutDown in interface ServiceAssemblyMBeanException
public String shutDown(boolean writeState)
throws Exception
Exceptionpublic String getCurrentState()
getCurrentState in interface ServiceAssemblyMBeanpublic String getName()
MBeanInfoProvider
getName in interface ServiceAssemblyMBeangetName in interface MBeanInfoProviderpublic String getDescription()
MBeanInfoProvider
getDescription in interface ServiceAssemblyMBeangetDescription in interface MBeanInfoProviderpublic ServiceAssembly getServiceAssembly()
public String getDescriptor()
getDescriptor in interface ServiceAssemblyMBeanpublic String toString()
toString in class Object
public void restore()
throws Exception
Exceptionpublic ServiceUnitLifeCycle[] getDeployedSUs()
protected void startConnections()
throws javax.jbi.JBIException
javax.jbi.JBIException
protected String getLinkType(QName svc,
String ep)
protected void stopConnections()
protected Element getComponentFailure(Exception exception,
String task,
String component)
protected Document parse(String result)
throws ParserConfigurationException,
SAXException,
IOException
ParserConfigurationException
SAXException
IOException
protected Element getElement(Document doc,
String name)
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 ObjectName[] getServiceUnits()
getServiceUnits in interface ServiceAssemblyMBeanpublic ServiceAssemblyEnvironment getEnvironment()
protected void fireEvent(int type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||