|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.control.activity.task.thread.AbstractThreadTaskImpl
public abstract class AbstractThreadTaskImpl
Abstract class representing a thread task.
Field Summary | |
---|---|
protected EndOfThread |
endOfThreadItf
|
protected Logger |
logger
|
protected Scheduler |
schedulerItf
The scheduler to which the thread is bound. |
Fields inherited from interface org.objectweb.dream.control.activity.task.Task |
---|
EXECUTE_AGAIN, ITF_NAME, STOP_EXECUTING |
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
---|
STARTED, STOPPED |
Constructor Summary | |
---|---|
AbstractThreadTaskImpl()
|
Method Summary | |
---|---|
void |
bindFc(String clientItfName,
Object serverItf)
|
Object |
execute(Object hints)
The method that is executed. |
String |
getFcState()
|
void |
interrupted()
Call back method used by scheduler to notify a task that has been interrupted. |
protected abstract boolean |
isExecuting()
Called by execute(Object) method. |
String[] |
listFc()
|
Object |
lookupFc(String clientItfName)
|
void |
registered(Object controlItf)
Call back method to notify that the task as been correctly registered in the task manager. |
protected abstract void |
setExecuting(boolean b)
Called by execute(Object) method. |
void |
startFc()
|
void |
stopFc()
|
void |
unbindFc(String clientItfName)
|
void |
unregistered()
Call back method to notify that the task has been unregistered from the activity manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Scheduler schedulerItf
protected EndOfThread endOfThreadItf
protected Logger logger
Constructor Detail |
---|
public AbstractThreadTaskImpl()
Method Detail |
---|
protected abstract boolean isExecuting()
execute(Object)
method.
false
if the execute(Object)
method must
return.protected abstract void setExecuting(boolean b)
execute(Object)
method. Sets its execution state.
b
- false
if the execute(Object)
method must
return.public Object execute(Object hints) throws InterruptedException
Task
execute
in interface Task
hints
- execution paramters.
InterruptedException
- if this task is interrupted.Task.execute(Object)
public void interrupted()
Task
interrupted
in interface Task
Task.interrupted()
public void registered(Object controlItf)
Task
registered
in interface Task
controlItf
- An interface that can be used to control the execution of
the task. The runtime type of this interface depends on the
registration hints. Can be null
.Task.registered(Object)
public void unregistered()
Task
unregistered
in interface Task
Task.unregistered()
public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
bindFc
in interface BindingController
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
BindingController.bindFc(String, Object)
public void unbindFc(String clientItfName) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
unbindFc
in interface BindingController
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
BindingController.unbindFc(String)
public Object lookupFc(String clientItfName) throws NoSuchInterfaceException
lookupFc
in interface BindingController
NoSuchInterfaceException
BindingController.lookupFc(String)
public String[] listFc()
listFc
in interface BindingController
BindingController.listFc()
public String getFcState()
getFcState
in interface LifeCycleController
LifeCycleController.getFcState()
public void stopFc() throws IllegalLifeCycleException
stopFc
in interface LifeCycleController
IllegalLifeCycleException
LifeCycleController.stopFc()
public void startFc() throws IllegalLifeCycleException
startFc
in interface LifeCycleController
IllegalLifeCycleException
LifeCycleController.startFc()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |