|
||||||||||
| 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.ComponentLifeCycle
public class ComponentLifeCycle
Implementation of the ComponentLifeCycle mbean
| Field Summary | |
|---|---|
protected ServiceEndpoint |
address
|
protected AdminService |
adminService
JBI-Management Component :: Admin Service |
protected ComponentLifeCycleThread |
componentLifeCycleThread
The component life cycle thread. |
protected javax.naming.InitialContext |
initialContext
|
protected java.lang.String |
installationRootPath
|
protected JNDIService |
jndiService
Communication component :: JNDIService |
| 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 | |
|---|---|
ComponentLifeCycle()
Creates a new instance of ComponentLifeCycle |
|
| Method Summary | |
|---|---|
void |
doInit()
|
void |
doShutdown()
|
void |
doStart()
|
void |
doStop()
|
javax.management.ObjectName |
getExtensionMBeanName()
|
protected java.lang.String |
getJBIArtifactType()
|
java.util.logging.Logger |
getLogger()
Get the logger |
java.lang.String |
getName()
|
void |
init(ComponentContext componentContext,
ComponentLifeCycleThread componentLifeCycleThread,
Context context)
Initialization of ComponentLifeCycleMBean |
protected void |
setState(java.lang.String state)
Set the State reference of the current state. |
protected void |
startComponentLifeCycle()
Initialization of the petals component |
protected void |
stopComponentLifeCycle()
Stop of the Fractal component, means shutdown the life cycle. |
| 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 |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState, shutDown, start, stop |
| Field Detail |
|---|
protected JNDIService jndiService
protected AdminService adminService
protected ComponentLifeCycleThread componentLifeCycleThread
protected java.lang.String installationRootPath
protected ServiceEndpoint address
protected javax.naming.InitialContext initialContext
| Constructor Detail |
|---|
public ComponentLifeCycle()
ComponentLifeCycle
| Method Detail |
|---|
public void init(ComponentContext componentContext,
ComponentLifeCycleThread componentLifeCycleThread,
Context context)
throws org.ow2.petals.kernel.api.server.PetalsException,
javax.jbi.JBIException
ComponentLifeCycleInterface
init in interface ComponentLifeCycleInterfacecomponentContext - the component ContextcomponentLifeCycleThread - the thread of the component life cyclecontext - the context
org.ow2.petals.kernel.api.server.PetalsException - occurs when it is impossible to init the component life cycle
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.JBIException
public javax.management.ObjectName getExtensionMBeanName()
throws javax.jbi.JBIException
getExtensionMBeanName in interface javax.jbi.management.ComponentLifeCycleMBeanjavax.jbi.JBIExceptionComponentLifeCycleMBean.getExtensionMBeanName()public java.lang.String getName()
public java.util.logging.Logger getLogger()
protected 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.JBIExceptionprotected void stopComponentLifeCycle()
protected java.lang.String getJBIArtifactType()
getJBIArtifactType in class AbstractLifeCycle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||