org.objectweb.perseus.distribution.lib
Class TaskPerformer

java.lang.Object
  extended byorg.objectweb.perseus.distribution.lib.TaskPerformer
All Implemented Interfaces:
java.lang.Runnable

public class TaskPerformer
extends java.lang.Object
implements java.lang.Runnable

This class is an implementation of Runnable that performs thread of tasks. It repeatedly gets a ready thread and performs its running task until a 'null' thread is returned meaning that it must exit. A call to start must be done before it can be ran (this is done when adding it to the scheduler)


Constructor Summary
TaskPerformer(java.lang.String name)
           
 
Method Summary
 void run()
           
 void start(TaskScheduler sched)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskPerformer

public TaskPerformer(java.lang.String name)
Method Detail

toString

public java.lang.String toString()

start

public void start(TaskScheduler sched)

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.