org.objectledge.threads
Class Task

java.lang.Object
  extended by org.objectledge.threads.Task
All Implemented Interfaces:
Valve
Direct Known Subclasses:
AbstractScheduler.RunnerTask, AbstractScheduler.SchedulerTask, DefaultCacheFactory.DelayedUpdateTask, EventWhiteboardFactory.DispatcherTask, MailSystem.DeliverMailTask, MuninNode.AcceptTask, MuninNode.ProcessorTask, StatisticsWriter.StatisticsWriterTask, WorkerPool.SchedulingTask

public abstract class Task
extends Object
implements Valve

A task executed by ThreadPool's threads.

Version:
$Id: Task.java,v 1.2 2004/01/30 14:39:53 fil Exp $
Author:
Rafal Krzewski

Constructor Summary
Task()
           
 
Method Summary
 String getName()
          Returns the name of the task.
 void terminate(Thread thread)
          Terminates execution of the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectledge.pipeline.Valve
process
 

Constructor Detail

Task

public Task()
Method Detail

getName

public String getName()
Returns the name of the task.

Returns:
name of the task, or null if anonymous.

terminate

public void terminate(Thread thread)
Terminates execution of the task.

Parameters:
thread - the thread that is executing the task.


Copyright © 2003-2006 objectledge.org. All Rights Reserved.