org.ow2.petals.container.lifecycle
Class ServiceUnitLifeCycle
java.lang.Object
org.ow2.petals.container.lifecycle.ServiceUnitLifeCycle
- All Implemented Interfaces:
- javax.jbi.management.LifeCycleMBean
public class ServiceUnitLifeCycle
- extends java.lang.Object
- implements javax.jbi.management.LifeCycleMBean
This class manage the life cycle of deployed service units
- Author:
- Olivier Fabre - EBM Websourcing, Frederic Gardes - eBM Websourcing
|
Field Summary |
protected java.lang.String |
state
|
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
|
Constructor Summary |
ServiceUnitLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceUnit serviceUnit,
java.lang.String serviceUnitRootPath,
AdminService adminService)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
state
protected java.lang.String state
ServiceUnitLifeCycle
public ServiceUnitLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceUnit serviceUnit,
java.lang.String serviceUnitRootPath,
AdminService adminService)
getServiceUnitManager
public javax.jbi.component.ServiceUnitManager getServiceUnitManager()
- Returns the ServiceUnitManager associated with the service unit's target
component
- Returns:
- null if there's no Service Unit Manager
getTargetComponentName
public java.lang.String getTargetComponentName()
- Return the name of the targeted component.
- Returns:
- the name of the targeted component
getServiceUnitRootPath
public java.lang.String getServiceUnitRootPath()
getSuName
public java.lang.String getSuName()
getServiceUnitDescriptor
public org.ow2.petals.jbi.descriptor.original.generated.Jbi getServiceUnitDescriptor()
init
public void init()
throws javax.jbi.management.DeploymentException
- Throws:
javax.jbi.management.DeploymentException
getCurrentState
public java.lang.String getCurrentState()
- Specified by:
getCurrentState in interface javax.jbi.management.LifeCycleMBean
shutDown
public void shutDown()
throws javax.jbi.JBIException
- Specified by:
shutDown in interface javax.jbi.management.LifeCycleMBean
- Throws:
javax.jbi.JBIException
start
public void start()
throws javax.jbi.JBIException
- Specified by:
start in interface javax.jbi.management.LifeCycleMBean
- Throws:
javax.jbi.JBIException
stop
public void stop()
throws javax.jbi.JBIException
- Specified by:
stop in interface javax.jbi.management.LifeCycleMBean
- Throws:
javax.jbi.JBIException
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.