|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.component.body.ComponentActivity
This class defines the activity of active objects that are components. It allows the definition of a non functional activity (for managing a component in a stopped state), and the encapsulation of a (possibly user-defined) functional activity that runs when the lifecycle of the component is started.
Constructor Summary | |
ComponentActivity()
|
|
ComponentActivity(Active activity,
java.lang.Object reifiedObject)
|
Method Summary | |
void |
endActivity(Body body)
Finalized the active object after the activity has been stopped. |
void |
initActivity(Body body)
Initializes the activity of the active object. |
void |
runActivity(Body body)
Runs the activity as defined in @see ComponentRunActive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentActivity()
public ComponentActivity(Active activity, java.lang.Object reifiedObject)
Method Detail |
public void runActivity(Body body)
Runs the activity as defined in @see ComponentRunActive. The default behaviour is to serve non-functional requests in FIFO order, until the component is started. Then the functional activity (as defined in @see InitActive, @see RunActive and @see EndActive) begins.
When redefining the @see RunActive#runActivity(Body) method, the @see Body#isActive() returns true as long as the lifecycle of the component is @see LifeCycleController#STARTED. When the lifecycle of the component is @see LifeCycleController#STOPPED, @see Body#isActive() returns false.
runActivity
in interface RunActive
body
- the body of the active object being startedpublic void initActivity(Body body)
InitActive
initActivity
in interface InitActive
body
- the body of the active object being initializedpublic void endActivity(Body body)
EndActive
endActivity
in interface EndActive
body
- the body of the active object being finalized.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |