org.objectweb.dream.control.activity.manager
Interface ThreadPoolManager

All Known Implementing Classes:
ThreadPoolPerTaskSchedulerManagerImpl

public interface ThreadPoolManager

Interface used to control the multi threaded execution of a task.


Field Summary
static String ITF_NAME
          Defualt name of this interface.
 
Method Summary
 void addThread(Task task)
          Adds a thread to the given task.
 int getNbActiveThreads(Task task)
          Returns the number of currently active threads for the given task.
 

Field Detail

ITF_NAME

static final String ITF_NAME
Defualt name of this interface.

See Also:
Constant Field Values
Method Detail

getNbActiveThreads

int getNbActiveThreads(Task task)
                       throws IllegalTaskException
Returns the number of currently active threads for the given task.

Parameters:
task - a task;
Returns:
the number of currently active threads for the given task.
Throws:
IllegalTaskException - if the given task is unknown

addThread

void addThread(Task task)
               throws ThreadPoolOverflowException,
                      IllegalTaskException
Adds a thread to the given task.

Parameters:
task - a task
Throws:
ThreadPoolOverflowException - if the thread can't be allocated (pool full for instance).
IllegalTaskException - if the given task is unknown


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