|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.util.Instrumentation.Cron
public static class Instrumentation.Cron
Cron is a stopwatch that can be started/stopped several times.
This class is not thread safe, it does not need to be. It keeps track of the total time (first start to last stop) and the running time (total time minus the stopped intervals). Once a Cron is complete it must be added to the corresponding group/name in a Instrumentation instance.
Constructor Summary | |
---|---|
Instrumentation.Cron()
Creates new Cron, stopped, in zero. |
Method Summary | |
---|---|
long |
getEnd()
Return the end time of the cron. |
long |
getOwn()
Return the own time of the cron. |
long |
getStart()
Return the start time of the cron. |
long |
getTotal()
Return the total time of the cron. |
void |
start()
Start the cron. |
void |
stop()
Stops the cron. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Instrumentation.Cron()
Method Detail |
---|
public void start()
public void stop()
public long getStart()
public long getEnd()
public long getTotal()
public long getOwn()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |