org.objectweb.dream.control.activity.task.thread
Class ThreadTaskImpl

java.lang.Object
  extended by org.objectweb.dream.control.activity.task.thread.AbstractThreadTaskImpl
      extended by org.objectweb.dream.control.activity.task.thread.ThreadTaskImpl
All Implemented Interfaces:
Runnable, Task, BindingController, LifeCycleController

public class ThreadTaskImpl
extends AbstractThreadTaskImpl
implements Runnable

Basic implementation of a Dream thread.

See Also:
AbstractThreadTaskImpl

Field Summary
protected  boolean executing
           
protected  Thread thread
           
 
Fields inherited from class org.objectweb.dream.control.activity.task.thread.AbstractThreadTaskImpl
endOfThreadItf, logger, schedulerItf
 
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
ThreadTaskImpl()
           
 
Method Summary
protected  boolean isExecuting()
          Called by AbstractThreadTaskImpl.execute(Object)method.
 void run()
           
protected  void setExecuting(boolean b)
          Called by AbstractThreadTaskImpl.execute(Object)method.
 void startFc()
           
 void stopFc()
           
 
Methods inherited from class org.objectweb.dream.control.activity.task.thread.AbstractThreadTaskImpl
bindFc, execute, getFcState, interrupted, listFc, lookupFc, registered, unbindFc, unregistered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thread

protected Thread thread

executing

protected boolean executing
Constructor Detail

ThreadTaskImpl

public ThreadTaskImpl()
Method Detail

isExecuting

protected boolean isExecuting()
Description copied from class: AbstractThreadTaskImpl
Called by AbstractThreadTaskImpl.execute(Object)method.

Specified by:
isExecuting in class AbstractThreadTaskImpl
Returns:
false if the AbstractThreadTaskImpl.execute(Object)method must return.
See Also:
AbstractThreadTaskImpl.isExecuting()

setExecuting

protected void setExecuting(boolean b)
Description copied from class: AbstractThreadTaskImpl
Called by AbstractThreadTaskImpl.execute(Object)method. Sets its execution state.

Specified by:
setExecuting in class AbstractThreadTaskImpl
Parameters:
b - false if the AbstractThreadTaskImpl.execute(Object)method must return.
See Also:
AbstractThreadTaskImpl.setExecuting(boolean)

run

public void run()
Specified by:
run in interface Runnable
See Also:
Runnable.run()

startFc

public void startFc()
             throws IllegalLifeCycleException
Specified by:
startFc in interface LifeCycleController
Overrides:
startFc in class AbstractThreadTaskImpl
Throws:
IllegalLifeCycleException
See Also:
LifeCycleController.startFc()

stopFc

public void stopFc()
            throws IllegalLifeCycleException
Specified by:
stopFc in interface LifeCycleController
Overrides:
stopFc in class AbstractThreadTaskImpl
Throws:
IllegalLifeCycleException
See Also:
LifeCycleController.stopFc()


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.