org.khelekore.rnio.statistics
Class TotalTimeSpent

java.lang.Object
  extended by org.khelekore.rnio.statistics.TotalTimeSpent

public class TotalTimeSpent
extends Object

Information about total time spent on a group of tasks.

This class is not thread safe.

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)
          Update this information with data from the newly completed task.
 
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)
Update this information with data from the newly completed task.


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