org.quattor.pan.tasks
Class Task<T extends TaskResult>

java.lang.Object
  extended by java.util.concurrent.FutureTask<T>
      extended by org.quattor.pan.tasks.Task<T>
All Implemented Interfaces:
Runnable, Future<T>, RunnableFuture<T>
Direct Known Subclasses:
BuildTask, CompileTask, Valid1Task, Valid2Task, WriteAnnotationTask, WriteDepTask, WriteXmlTask

public abstract class Task<T extends TaskResult>
extends FutureTask<T>

Superclass of all Task objects that requires all subclasses to define the its executor type (queue).

Author:
loomis

Field Summary
 String info
           
 TaskResult.ResultType resultType
           
 
Constructor Summary
Task(TaskResult.ResultType executorType, String info, Callable<T> callable)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.util.concurrent.FutureTask
cancel, done, get, get, isCancelled, isDone, run, runAndReset, set, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resultType

public final TaskResult.ResultType resultType

info

public final String info
Constructor Detail

Task

public Task(TaskResult.ResultType executorType,
            String info,
            Callable<T> callable)
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Quattor. All Rights Reserved.