org.sapia.ubik.taskman
Class MultithreadedTaskManager

java.lang.Object
  extended by org.sapia.ubik.taskman.MultithreadedTaskManager
All Implemented Interfaces:
TaskManager

public class MultithreadedTaskManager
extends java.lang.Object
implements TaskManager

This class implements a TaskManager that creates a thread for each task added to it.

Author:
yduchesne

Constructor Summary
MultithreadedTaskManager()
           
 
Method Summary
 void addTask(TaskContext ctx, Task task)
          Creates an instance of this class.
 void shutdown()
          Shuts down this instance (task processing halts).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultithreadedTaskManager

public MultithreadedTaskManager()
Method Detail

addTask

public void addTask(TaskContext ctx,
                    Task task)
Description copied from interface: TaskManager
Creates an instance of this class.

Specified by:
addTask in interface TaskManager
Parameters:
ctx - the TaskContext that provides information about the task to execute.
task - the Task to execute.

shutdown

public void shutdown()
Description copied from interface: TaskManager
Shuts down this instance (task processing halts).

Specified by:
shutdown in interface TaskManager


Copyright © 2010 Sapia OSS. All Rights Reserved.