rabbit.nio.statistics
Class TotalTimeSpent

java.lang.Object
  extended by rabbit.nio.statistics.TotalTimeSpent

public class TotalTimeSpent
extends Object

Information about total time spent on a group of tasks.

Author:
Robert Olofsson

Constructor Summary
TotalTimeSpent()
           
 
Method Summary
 long getFailures()
          Get the number of failed jobs
 long getSuccessful()
          Get the number of successfully completed jobs
 long getTotalMillis()
          Get the total time spent doing this kind of task
 void update(CompletionEntry ce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TotalTimeSpent

public TotalTimeSpent()
Method Detail

update

public void update(CompletionEntry ce)

getSuccessful

public long getSuccessful()
Get the number of successfully completed jobs


getFailures

public long getFailures()
Get the number of failed jobs


getTotalMillis

public long getTotalMillis()
Get the total time spent doing this kind of task