org.ow2.petals.microkernel.api.container
Class ServiceUnitLifeCycle

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
ServiceUnitLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceUnit serviceUnit, String serviceUnitRootPath, AdminService adminService)
           
 
Method Summary
 String getCurrentState()
           
 org.ow2.petals.jbi.descriptor.original.generated.Jbi getServiceUnitDescriptor()
           
 javax.jbi.component.ServiceUnitManager getServiceUnitManager()
          Returns the ServiceUnitManager associated with the service unit's target component
 String getServiceUnitRootPath()
           
 String getState()
           
 String getSuName()
           
 String getTargetComponentName()
          Return the name of the targeted component.
 void init()
           
 void shutDown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceUnitLifeCycle

public ServiceUnitLifeCycle(org.ow2.petals.jbi.descriptor.original.generated.ServiceUnit serviceUnit,
                            String serviceUnitRootPath,
                            AdminService adminService)
Method Detail

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.