|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.control.lifecycle.ThreadCounterMixin
Life cycle mixin to be used with interceptor generated by
LifeCycleInterceptorGenerator
.
Requirements
UseComponentMixin
mixin.SimpleLifeCycleControllerMixin
lifecycle controller implementation.LifeCycleInterceptorGenerator
interceptor generator.
Field Summary | |
Component |
_this_weaveableC
The weaveableC field required by this mixin. |
int |
_this_weaveableFcState
the weaveableFcState field reqired by this mixin. |
Logger |
_this_weaveableLCCLogger
The weaveableLCCLogger field required by this mixin. |
protected LifeCycleCoordinator |
fcCoordinator
|
protected Thread[] |
fcExecutingThreads
The array of currently executing threads. |
protected int[] |
fcInvocationCounters
The array of the invocation counter for each threads. |
protected int |
fcNbExcutingThread
The number of currently executing thread |
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
STARTED, STOPPED |
Constructor Summary | |
ThreadCounterMixin()
|
Method Summary | |
abstract boolean |
_super_checkInactivity()
The checkInactivity method overriden by this mixin. |
abstract void |
_super_initFcController(InitializationContext ic)
The Controller.initFcController(org.objectweb.fractal.julia.InitializationContext) method
overriden by this mixin. |
abstract boolean |
_super_setFcStarted()
The LifeCycleCoordinator.setFcStarted() method overriden by this
mixin. |
abstract boolean |
_super_setFcStopped()
The LifeCycleCoordinator.setFcStopped() method overriden by this
mixin. |
abstract LifeCycleCoordinator |
_this_getFcCoordinator()
The getFcCoordinator method overriden by this mixin. |
abstract boolean |
_this_isInactivated(LifeCycleCoordinator coordinator)
The isInactivated method used by this mixin. |
int |
addCurrentThread(String s)
Registers the current thread has an executing thread. |
boolean |
checkInactivity()
Returns true If the component is stopping, and no more
thread is executing it and super implementation returns true . |
void |
initFcController(InitializationContext ic)
|
int |
registerCurrentThread()
Registers the current thread. |
void |
removeCurrentThread(String s,
int i)
Unregister the current thread. |
boolean |
setFcStarted()
|
boolean |
setFcStopped()
|
void |
setFcStopping(LifeCycleCoordinator coordinator)
|
void |
unregisterCurrentThread(int i)
Unregisters current thread. |
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 |
Methods inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
getFcState, startFc, stopFc |
Field Detail |
protected Thread[] fcExecutingThreads
protected int[] fcInvocationCounters
protected int fcNbExcutingThread
protected LifeCycleCoordinator fcCoordinator
public Component _this_weaveableC
weaveableC
field required by this mixin. This field is
supposed to reference the Component
interface of the component to
which this controller object belongs.
public int _this_weaveableFcState
weaveableFcState
field reqired by this mixin. This field
is supposed to reference the current state of the component lifecycle.
SimpleLifeCycleControllerMixin.weaveableFcState
public Logger _this_weaveableLCCLogger
Logger
of this controller.
Constructor Detail |
public ThreadCounterMixin()
Method Detail |
public void initFcController(InitializationContext ic) throws InstantiationException
InstantiationException
Controller.initFcController(InitializationContext)
public boolean setFcStarted() throws IllegalLifeCycleException
setFcStarted
in interface LifeCycleCoordinator
IllegalLifeCycleException
LifeCycleCoordinator.setFcStarted()
public void setFcStopping(LifeCycleCoordinator coordinator) throws IllegalLifeCycleException
setFcStopping
in interface LifeCycleCoordinator
IllegalLifeCycleException
LifeCycleCoordinator.setFcStopping(LifeCycleCoordinator)
public boolean setFcStopped() throws IllegalLifeCycleException
setFcStopped
in interface LifeCycleCoordinator
IllegalLifeCycleException
LifeCycleCoordinator.setFcStopped()
public int addCurrentThread(String s)
s
- not used.
removeCurrentThread(String, int)
to executing thread.public void removeCurrentThread(String s, int i)
s
- not used.i
- the index of the current thread in the array of executing threads.public int registerCurrentThread()
public void unregisterCurrentThread(int i)
i
- the index of the current thread in the array of executing threads.public boolean checkInactivity()
true
If the component is stopping, and no more
thread is executing it and super implementation returns true
.
true
If the component is inactivepublic abstract boolean _super_setFcStarted() throws IllegalLifeCycleException
LifeCycleCoordinator.setFcStarted()
method overriden by this
mixin.
IllegalLifeCycleException
LifeCycleCoordinator.setFcStarted()
public abstract boolean _super_setFcStopped() throws IllegalLifeCycleException
LifeCycleCoordinator.setFcStopped()
method overriden by this
mixin.
IllegalLifeCycleException
LifeCycleCoordinator.setFcStopped()
public abstract boolean _super_checkInactivity()
checkInactivity
method overriden by this mixin. This
method is supposed to work as this
SimpleLifeCycleControllerMixin.checkInactivity()
method.
SimpleLifeCycleControllerMixin.checkInactivity()
public abstract LifeCycleCoordinator _this_getFcCoordinator()
getFcCoordinator
method overriden by this mixin. This
method is supposed to work as this
SimpleLifeCycleControllerMixin.getFcCoordinator()
method.
SimpleLifeCycleControllerMixin.getFcCoordinator()
public abstract boolean _this_isInactivated(LifeCycleCoordinator coordinator)
isInactivated
method used by this mixin. This method is
supposed to work as this
SimpleLifeCycleControllerMixin.isInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator)
method.
SimpleLifeCycleControllerMixin.isInactivated(org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator)
public abstract void _super_initFcController(InitializationContext ic) throws InstantiationException
Controller.initFcController(org.objectweb.fractal.julia.InitializationContext)
method
overriden by this mixin.
InstantiationException
Controller.initFcController(InitializationContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |