|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.util.TimingVoodoo
public final class TimingVoodoo
This helper class is full of "voodoo" functions related to synchronizing timed data between the agent and the server. We call them "voodoo" because they deal mostly with rounding down and guestimating percentages.
| Constructor Summary | |
|---|---|
TimingVoodoo()
|
|
| Method Summary | |
|---|---|
static long |
closestTime(long approxTime,
long interval)
Given the approximate time associated with a data point and the interval at which that data point is being collected, compute the exact data point to which the data point corresponds. |
static long |
roundDownTime(long approxTime,
long interval)
Given the approximate time associated with a data point and the interval at which that data point is being collected, compute the exact data point to which the data point corresponds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimingVoodoo()
| Method Detail |
|---|
public static long roundDownTime(long approxTime,
long interval)
approxTime - the approximate time to which the data point correspondsinterval - the collection interval
public static long closestTime(long approxTime,
long interval)
approxTime - the approximate time to which the data point correspondsinterval - the collection interval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||