org.apache.oozie.util
Class Instrumentation.Timer

java.lang.Object
  extended by org.apache.oozie.util.Instrumentation.Timer
All Implemented Interfaces:
Instrumentation.Element<Instrumentation.Timer>
Enclosing class:
Instrumentation

public static class Instrumentation.Timer
extends Object
implements Instrumentation.Element<Instrumentation.Timer>

Timer Instrumentation element.


Method Summary
 long getOwn()
          Return the own accumulated computing time by the timer.
 long getOwnAvg()
          Returns the own average time.
 long getOwnMax()
          Returns the own maximum time.
 long getOwnMin()
          Returns the own minimum time.
 long getOwnSquareSum()
          Return the sum of the square own times.
 double getOwnStdDev()
          Returns the own time standard deviation.
 long getTicks()
          Return the number of times a cron was added to the timer.
 long getTotal()
          Return the total accumulated computing time by the timer.
 long getTotalAvg()
          Returns the total average time.
 long getTotalMax()
          Returns the total maximum time.
 long getTotalMin()
          Returns the total minimum time.
 long getTotalSquareSum()
          Return the sum of the square total times.
 double getTotalStdDev()
          Returns the total time standard deviation.
 Instrumentation.Timer getValue()
          Return the timer snapshot.
 String toString()
          Return the String representation of the timer value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Return the String representation of the timer value.

Overrides:
toString in class Object
Returns:
the String representation of the timer value.

getValue

public Instrumentation.Timer getValue()
Return the timer snapshot.

Specified by:
getValue in interface Instrumentation.Element<Instrumentation.Timer>
Returns:
the timer snapshot.

getOwn

public long getOwn()
Return the own accumulated computing time by the timer.

Returns:
own accumulated computing time by the timer.

getTotal

public long getTotal()
Return the total accumulated computing time by the timer.

Returns:
total accumulated computing time by the timer.

getTicks

public long getTicks()
Return the number of times a cron was added to the timer.

Returns:
the number of times a cron was added to the timer.

getOwnSquareSum

public long getOwnSquareSum()
Return the sum of the square own times.

It can be used to calculate the standard deviation.

Returns:
the sum of the square own timer.

getTotalSquareSum

public long getTotalSquareSum()
Return the sum of the square total times.

It can be used to calculate the standard deviation.

Returns:
the sum of the square own timer.

getOwnMin

public long getOwnMin()
Returns the own minimum time.

Returns:
the own minimum time.

getOwnMax

public long getOwnMax()
Returns the own maximum time.

Returns:
the own maximum time.

getTotalMin

public long getTotalMin()
Returns the total minimum time.

Returns:
the total minimum time.

getTotalMax

public long getTotalMax()
Returns the total maximum time.

Returns:
the total maximum time.

getOwnAvg

public long getOwnAvg()
Returns the own average time.

Returns:
the own average time.

getTotalAvg

public long getTotalAvg()
Returns the total average time.

Returns:
the total average time.

getTotalStdDev

public double getTotalStdDev()
Returns the total time standard deviation.

Returns:
the total time standard deviation.

getOwnStdDev

public double getOwnStdDev()
Returns the own time standard deviation.

Returns:
the own time standard deviation.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.