org.fusesource.hawtdispatch
Class Metrics

java.lang.Object
  extended by org.fusesource.hawtdispatch.Metrics

public class Metrics
extends Object

Author:
Hiram Chirino

Field Summary
 long dequeued
          The number of runnable tasks that have been removed from the queue and executed.
 long enqueued
          The number of runnable tasks queued.
 long maxRunTimeNS
          The long amount of time a runnable task spent executing in nanoseconds.
 long maxWaitTimeNS
          The longest amount of time at runnable task spent waiting in the queue.
 DispatchQueue queue
          The dispatch queue associated with the metrics collected.
 long totalRunTimeNS
          The sum of all the time spent executing tasks in nanoseconds.
 long totalWaitTimeNS
          The sum of all the time that tasks spent waiting in the queue in nanoseconds.
 
Constructor Summary
Metrics()
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

queue

public DispatchQueue queue
The dispatch queue associated with the metrics collected.


enqueued

public long enqueued
The number of runnable tasks queued.


dequeued

public long dequeued
The number of runnable tasks that have been removed from the queue and executed.


maxWaitTimeNS

public long maxWaitTimeNS
The longest amount of time at runnable task spent waiting in the queue.


maxRunTimeNS

public long maxRunTimeNS
The long amount of time a runnable task spent executing in nanoseconds.


totalRunTimeNS

public long totalRunTimeNS
The sum of all the time spent executing tasks in nanoseconds.


totalWaitTimeNS

public long totalWaitTimeNS
The sum of all the time that tasks spent waiting in the queue in nanoseconds.

Constructor Detail

Metrics

public Metrics()
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.