|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.container.lifecycle.AbstractLifeCycle
org.ow2.petals.container.lifecycle.ServiceAssemblyLifeCycle
public class ServiceAssemblyLifeCycle
This class manage the life cycle of deployed service assemblies
| Field Summary |
|---|
| Fields inherited from class org.ow2.petals.container.lifecycle.AbstractLifeCycle |
|---|
activitySynchronizer, forcedState, initialized, log, name |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
ServiceAssemblyLifeCycle()
|
|
| Method Summary | |
|---|---|
void |
doInit()
Do nothing |
void |
doShutdown()
|
void |
doStart()
|
void |
doStop()
|
org.objectweb.fractal.api.Component |
getComponent()
Accessor to the fractal component |
protected java.lang.String |
getJBIArtifactType()
|
org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly |
getServiceAssembly()
|
java.util.List<ServiceUnitLifeCycle> |
getServiceUnitLifeCycles()
|
void |
init(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly serviceAssembly)
Initialize the life-cycle. |
void |
registerSU(ServiceUnitLifeCycle serviceUnitLifeCycle)
Register a ServiceUnitLifeCycle into a synchronized map of the ServiceAssemblyLifeCycle |
void |
setServiceAssembly(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly serviceAssembly)
|
void |
setState(java.lang.String state)
Set the State reference of the current state. |
protected void |
startComponentLifeCycle()
|
protected void |
stopComponentLifeCycle()
Stop of the petals component |
void |
unregisterSU(ServiceUnitLifeCycle serviceUnitLifeCycle)
Unregister a ServiceUnitLifeCycle from a synchronized map of the ServiceAssemblyLifeCycle |
| Methods inherited from class org.ow2.petals.container.lifecycle.AbstractLifeCycle |
|---|
getCurrentState, isShutdownState, isStartedState, isStoppedState, isUnknownState, setForcedState, shutDown, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceAssemblyLifeCycle()
| Method Detail |
|---|
public org.objectweb.fractal.api.Component getComponent()
public void init(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly serviceAssembly)
throws javax.jbi.JBIException
mbeanName - name of the MBean for this LifeCycle. In fact, the
DeploymentServiceMBean name is used as there is no
SALifeCycleMBeanlog -
javax.jbi.JBIException
public void doInit()
throws javax.jbi.JBIException
doInit in class AbstractLifeCyclejavax.jbi.JBIException
public void doShutdown()
throws javax.jbi.JBIException
doShutdown in class AbstractLifeCyclejavax.jbi.JBIException
public void doStart()
throws javax.jbi.JBIException
doStart in class AbstractLifeCyclejavax.jbi.JBIException
public void doStop()
throws javax.jbi.JBIException
doStop in class AbstractLifeCyclejavax.jbi.JBIExceptionpublic org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly getServiceAssembly()
public void setServiceAssembly(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly serviceAssembly)
serviceAssembly - the serviceAssembly to setpublic java.util.List<ServiceUnitLifeCycle> getServiceUnitLifeCycles()
public void registerSU(ServiceUnitLifeCycle serviceUnitLifeCycle)
throws javax.jbi.JBIException
suName - name of a service unitserviceUnitLifeCycle - life cycle of the service unit
javax.jbi.JBIExceptionpublic void unregisterSU(ServiceUnitLifeCycle serviceUnitLifeCycle)
suName - name of a service unit
public void setState(java.lang.String state)
throws javax.jbi.JBIException
AbstractLifeCycleState reference of the current state. An
LifeCycleStateEventAbstract is thrown.
setState in class AbstractLifeCyclejavax.jbi.JBIExceptionprotected void startComponentLifeCycle()
org.ow2.petals.kernel.api.server.PetalsException
javax.jbi.JBIException
protected void stopComponentLifeCycle()
throws javax.jbi.JBIException
javax.jbi.JBIExceptionprotected java.lang.String getJBIArtifactType()
getJBIArtifactType in class AbstractLifeCycle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||