|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleCoordinatorMixin
Provides an abstract implementation of the LifeCycleCoordinator
interface.
Requirements
Component interface.
| Field Summary | |
|---|---|
Component |
_this_weaveableC
The weaveableC field required by this mixin. |
List |
fcActive
The components that are currently active. |
| Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
|---|
STARTED, STOPPED |
| Method Summary | |
|---|---|
boolean |
fcActivated(LifeCycleCoordinator component)
Notifies this component that the given component is about to become active. |
void |
fcInactivated(LifeCycleCoordinator component)
Notifies this component that the given component has become inactive. |
void |
setFcState(boolean started)
Sets the lifecycle state of this component and of all its direct and indirect sub components that have a LifeCycleCoordinator interface. |
void |
stopFc(LifeCycleCoordinator[] components)
Stops the given components simultaneously. |
| 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 |
|---|
setFcStarted, setFcStopped, setFcStopping |
| Methods inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
|---|
getFcState, startFc, stopFc |
| Field Detail |
public List fcActive
public Component _this_weaveableC
Component interface of the component to
which this controller object belongs.
| Method Detail |
public void setFcState(boolean started)
throws IllegalLifeCycleException
LifeCycleCoordinator interface.
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 boolean fcActivated(LifeCycleCoordinator component)
LifeCycleCoordinatorsetFcStopping method has been called.setFcStopped method has not been called yet.
fcActivated in interface LifeCycleCoordinatorcomponent - the LifeCycleCoordinator interface of a component
that is about to become active.
public void fcInactivated(LifeCycleCoordinator component)
LifeCycleCoordinatorsetFcStopping method has been called.setFcStopped method has not been called yet.
fcInactivated in interface LifeCycleCoordinatorcomponent - the LifeCycleCoordinator interface of a component
that has become inactive.
public void stopFc(LifeCycleCoordinator[] components)
throws IllegalLifeCycleException
fcActivated and fcInactivated callback
methods), and then sets the state of the components to STOPPED.
components - the LifeCycleCoordinator interface of the
components to be stopped.
IllegalLifeCycleException - if a problem occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||