|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.control.lifecycle.SimpleLifeCycleControllerMixin
Basic Dream life cycle controller. Component with this simple lifecycle
implementation can't be stopped alone (ie :stopFc()
throws a
IllegalLifeCycleException
is the component is not already in the stop
state.
Requirements
UseComponentMixin
mixin.BasicLifeCycleCoordinatorMixin
lifecycle coordinator implementation.
Field Summary | |
Component |
_this_weaveableC
The weaveableC field required by this mixin. |
Logger |
_this_weaveableLCCLogger
The weaveableLCCLogger field required by this mixin. |
int |
weaveableFcState
The lifecycle state of the component. |
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
STARTED, STOPPED |
Constructor Summary | |
SimpleLifeCycleControllerMixin()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator |
fcActivated, fcInactivated |
Field Detail |
public int weaveableFcState
public Component _this_weaveableC
Component
interface of the component to
which this controller object belongs.
public Logger _this_weaveableLCCLogger
Logger
of this controller.
Constructor Detail |
public SimpleLifeCycleControllerMixin()
Method Detail |
public void initFcController(InitializationContext ic) throws InstantiationException
InstantiationException
Controller.initFcController(InitializationContext)
public String getFcState()
getFcState
in interface LifeCycleController
LifeCycleController.getFcState()
public void startFc() throws IllegalLifeCycleException
startFc
in interface LifeCycleController
IllegalLifeCycleException
LifeCycleController.startFc()
public void stopFc() throws IllegalLifeCycleException
IllegalLifeCycleException
if the component is in the
LifeCycleController.STARTED
state.
stopFc
in interface LifeCycleController
IllegalLifeCycleException
LifeCycleController.stopFc()
public boolean setFcStarted() throws IllegalLifeCycleException
setFcStarted
in interface LifeCycleCoordinator
IllegalLifeCycleException
LifeCycleCoordinator.setFcStarted()
public void setFcStopping(LifeCycleCoordinator coordinator) throws IllegalLifeCycleException
LifeCycleCoordinator.fcInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator)
.
setFcStopping
in interface LifeCycleCoordinator
IllegalLifeCycleException
LifeCycleCoordinator.setFcStopping(LifeCycleCoordinator)
public boolean setFcStopped() throws IllegalLifeCycleException
setFcStopped
in interface LifeCycleCoordinator
IllegalLifeCycleException
LifeCycleCoordinator.setFcStopped()
public boolean checkInactivity()
true
if the component is inactive. This
implementation always returns true
. Other mixins can
ovverride this method.
true
if the component is inactive.public boolean isInactivated(LifeCycleCoordinator coordinator)
checkInactivity()
returns true
, calls
LifeCycleCoordinator.fcInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator)
with the given
coordinator
and returns true
.
coordinator
- the coordinator passed to
LifeCycleCoordinator.fcInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator)
checkInactivity()
public LifeCycleCoordinator getFcCoordinator()
LifeCycleCoordinator
interface of this component.
LifeCycleCoordinator
interface of the component to
which this controller object belongs.public abstract void _this_setFcState(boolean started) throws IllegalLifeCycleException
setFcState
method.
started
- true to set the lifecycle state of the components
to STARTED
, or false to set this
state to STOPPED
.
IllegalLifeCycleException
- if a problem occurs.public abstract void _super_initFcController(InitializationContext ic) throws InstantiationException
initFcController
method overriden by this mixin.
ic
- information about the component to which this controller object
belongs.
InstantiationException
- if the initialization fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |