org.apache.examples.panorama.startup.impl
Class TaskExecutor

java.lang.Object
  extended by org.apache.examples.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 setErrorLog(org.apache.hivemind.ErrorLog errorLog)
           
 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

setLog

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

setErrorLog

public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)

setMessages

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

setTasks

public void setTasks(java.util.List list)