|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.performance.StatCollection
public class StatCollection
| Field Summary | |
|---|---|
static byte |
AVG_STAT
|
static byte |
JITTER_STAT
|
static byte |
MAX_STAT
|
static byte |
MIN_STAT
|
static byte |
TIME_AVG_STAT
Average value over time of collection. |
| Constructor Summary | |
|---|---|
StatCollection()
|
|
| Method Summary | |
|---|---|
void |
addMetricValue(String metric,
double value)
----------------------------------------------------------------- |
double |
getLastSample(String metric)
---------------------------------------------------------------------- |
Enumeration |
getMetrics()
----------------------------------------------------------------- |
double |
getMetricStat(String metric,
int numSamples,
byte type)
----------------------------------------------------------------- |
double |
getMetricStat(String metric,
long startPeriod,
long endPeriod,
byte type)
----------------------------------------------------------------- byte MIN_STAT, MAX_STAT, AVG_STAT, |
Vector |
getSamples(String metric,
int samples)
----------------------------------------------------------------- |
static void |
main(String[] args)
===================================================================== |
void |
setMaxSamples(int maxSamples)
----------------------------------------------------------------- Maximum number of samples to store for each metric. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte AVG_STAT
public static final byte MAX_STAT
public static final byte MIN_STAT
public static final byte JITTER_STAT
public static final byte TIME_AVG_STAT
| Constructor Detail |
|---|
public StatCollection()
| Method Detail |
|---|
public void setMaxSamples(int maxSamples)
public void addMetricValue(String metric,
double value)
public Enumeration getMetrics()
public Vector getSamples(String metric,
int samples)
public double getMetricStat(String metric,
int numSamples,
byte type)
throws IllegalArgumentException
metric - The metric name.numSamples - calculate over these # of latest samplestype - The type of metric.
IllegalArgumentException - invalid metric type or numSamples
beyond the amount of data available.
public double getMetricStat(String metric,
long startPeriod,
long endPeriod,
byte type)
throws IllegalArgumentException
IllegalArgumentException, - invalid type or metric name.
IllegalArgumentExceptionpublic double getLastSample(String metric)
IllegalArgumentException - the metric is not found.public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||