org.ow2.petals.microkernel.api.container
Class ServiceUnitLifeCycle
java.lang.Object
org.ow2.petals.microkernel.api.container.ServiceUnitLifeCycle
- All Implemented Interfaces:
- javax.jbi.management.LifeCycleMBean
public class ServiceUnitLifeCycle
- extends 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
Fields inherited from interface javax.jbi.management.LifeCycleMBean |
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceUnitLifeCycle
public ServiceUnitLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceUnit serviceUnit,
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 String getTargetComponentName()
- Return the name of the targeted component.
- Returns:
- the name of the targeted component
getServiceUnitRootPath
public String getServiceUnitRootPath()
getSuName
public 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 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
getState
public String getState()
- Returns:
- the state
Copyright © 2005-2015 Linagora. All Rights Reserved.