org.ow2.petals.microkernel.api.container
Interface ServiceAssemblyLifeCycle

All Superinterfaces:
javax.jbi.management.LifeCycleMBean

public interface ServiceAssemblyLifeCycle
extends javax.jbi.management.LifeCycleMBean

The LifeCycle interface of a service assembly.

Author:
Christophe DENEUX - Linagora

Field Summary
static String COMPONENT_LOGGER_NAME
           
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Method Summary
 org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly getServiceAssembly()
           
 List<ServiceUnitLifeCycle> getServiceUnitLifeCycles()
           
 void init(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly serviceAssembly)
          Initialize the life-cycle.
 boolean isShutdownState()
           
 boolean isStartedState()
           
 boolean isStoppedState()
           
 boolean isUnknownState()
           
 void registerSU(ServiceUnitLifeCycle serviceUnitLifeCycle)
          Register a ServiceUnitLifeCycle into a synchronized map of the ServiceAssemblyLifeCycle
 void setForcedState(boolean forcedState)
           
 void unregisterSU(ServiceUnitLifeCycle serviceUnitLifeCycle)
          Unregister a ServiceUnitLifeCycle from a synchronized map of the ServiceAssemblyLifeCycle
 
Methods inherited from interface javax.jbi.management.LifeCycleMBean
getCurrentState, shutDown, start, stop
 

Field Detail

COMPONENT_LOGGER_NAME

static final String COMPONENT_LOGGER_NAME
See Also:
Constant Field Values
Method Detail

getServiceUnitLifeCycles

List<ServiceUnitLifeCycle> getServiceUnitLifeCycles()

getServiceAssembly

org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly getServiceAssembly()

setForcedState

void setForcedState(boolean forcedState)

init

void init(org.ow2.petals.jbi.descriptor.original.generated.ServiceAssembly serviceAssembly)
          throws javax.jbi.JBIException
Initialize the life-cycle. This is not the init() step of the life-cycle.

Parameters:
mbeanName - name of the MBean for this LifeCycle. In fact, the DeploymentServiceMBean name is used as there is no SALifeCycleMBean
log -
Throws:
javax.jbi.JBIException

registerSU

void registerSU(ServiceUnitLifeCycle serviceUnitLifeCycle)
                throws javax.jbi.JBIException
Register a ServiceUnitLifeCycle into a synchronized map of the ServiceAssemblyLifeCycle

Parameters:
suName - name of a service unit
serviceUnitLifeCycle - life cycle of the service unit
Throws:
javax.jbi.JBIException

unregisterSU

void unregisterSU(ServiceUnitLifeCycle serviceUnitLifeCycle)
Unregister a ServiceUnitLifeCycle from a synchronized map of the ServiceAssemblyLifeCycle

Parameters:
suName - name of a service unit

isShutdownState

boolean isShutdownState()

isStartedState

boolean isStartedState()

isStoppedState

boolean isStoppedState()

isUnknownState

boolean isUnknownState()


Copyright © 2005-2015 Linagora. All Rights Reserved.