org.apache.droids.monitor
Class SimpleWorkMonitor<T extends Task>

java.lang.Object
  extended by org.apache.droids.monitor.SimpleWorkMonitor<T>
All Implemented Interfaces:
WorkMonitor<T>

public class SimpleWorkMonitor<T extends Task>
extends java.lang.Object
implements WorkMonitor<T>

A simple


Constructor Summary
SimpleWorkMonitor()
           
 
Method Summary
 void afterExecute(T task, Worker<T> worker, java.lang.Exception ex)
           
 void beforeExecute(T task, Worker<T> worker)
           
 java.util.Collection<WorkBean<T>> getRunningTasks()
           
 WorkBean<T> getWorkBean(T task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleWorkMonitor

public SimpleWorkMonitor()
Method Detail

beforeExecute

public void beforeExecute(T task,
                          Worker<T> worker)
Specified by:
beforeExecute in interface WorkMonitor<T extends Task>

afterExecute

public void afterExecute(T task,
                         Worker<T> worker,
                         java.lang.Exception ex)
Specified by:
afterExecute in interface WorkMonitor<T extends Task>

getRunningTasks

public java.util.Collection<WorkBean<T>> getRunningTasks()

getWorkBean

public WorkBean<T> getWorkBean(T task)


Copyright © 2007-2009. All Rights Reserved.