com.panorama.startup.impl
Class TaskExecutor

java.lang.Object
  |
  +--com.panorama.startup.impl.TaskExecutor
All Implemented Interfaces:
java.lang.Runnable

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

A service that executes a series of Tasks. Tasks have an ordering based on pre- and post-requisites.

Author:
Howard Lewis Ship

Constructor Summary
TaskExecutor()
           
 
Method Summary
 void run()
          Orders the tasks into an execution order, and executes each in turn.
 void setErrorHandler(org.apache.hivemind.ErrorHandler handler)
           
 void setLog(org.apache.commons.logging.Log log)
           
 void setMessages(org.apache.hivemind.Messages messages)
           
 void setTasks(java.util.List list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskExecutor

public TaskExecutor()
Method Detail

run

public void run()
Orders the tasks into an execution order, and executes each in turn. Logs the elapsed time, number of tasks, and the number of failures (if any).

Specified by:
run in interface java.lang.Runnable

setErrorHandler

public void setErrorHandler(org.apache.hivemind.ErrorHandler handler)

setLog

public void setLog(org.apache.commons.logging.Log log)

setMessages

public void setMessages(org.apache.hivemind.Messages messages)

setTasks

public void setTasks(java.util.List list)