aokell.lib.control.lifecycle
Interface LifeCycleControllerItf

All Superinterfaces:
LifeCycleController
All Known Subinterfaces:
CompositeType, FlatType, LifeCycleType, ParametricCompositeTemplateType, ParametricCompositeType, ParametricFlatTemplateType, ParametricFlatType, ParametricPrimitiveTemplateType, ParametricPrimitiveType, PrimitiveType
All Known Implementing Classes:
AbstractLifeCycleControllerImpl, CompositeLifeCycleControllerImpl, NonCompositeLifeCycleControllerImpl

public interface LifeCycleControllerItf
extends LifeCycleController

This interface extends the Fractal LifeCycleController interface with a method to test whether the component is started or not.

Author:
Lionel Seinturier , Romain Rouvoy

Field Summary
static String NAME
          NAME of the lifecycle controller.
static InterfaceType TYPE
          TYPE of the lifecycle controller.
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Method Summary
 boolean isFcStarted()
           
 boolean setFcStarted()
           
 boolean setFcStopped()
           
 
Methods inherited from interface org.objectweb.fractal.api.control.LifeCycleController
getFcState, startFc, stopFc
 

Field Detail

NAME

static final String NAME
NAME of the lifecycle controller.

See Also:
Constant Field Values

TYPE

static final InterfaceType TYPE
TYPE of the lifecycle controller.

Method Detail

isFcStarted

boolean isFcStarted()
Returns:
true if the component is started

setFcStarted

boolean setFcStarted()
                     throws IllegalLifeCycleException
Returns:
true if the component is in the STOPPED state before the call.
Throws:
IllegalLifeCycleException

setFcStopped

boolean setFcStopped()
                     throws IllegalLifeCycleException
Returns:
true if the component is in the STARTED state before the call.
Throws:
IllegalLifeCycleException