| java.lang.Object com.versant.core.metric.MetricSnapshotPacket
Method Summary | |
public void | dump(Metric[] all, int sampleNo, PrintStream out) Dump raw sample data to out (for debugging). | public int[][] | getBuf() Get the snapshot data. | public Date[] | getDates() Get the Date of each snapshot. | public int[] | getIds() Get the unique ID of each snapshot. | public Date | getMostRecentDate() Get the Date of the most recent sample. | public int | getMostRecentID() Get the ID of the most recent sample. | public int | getMostRecentSample(BaseMetric m) Get the most recent raw int sample in this packet for the metric. | public double | getMostRecentValue(Metric m, int calc) Get the most recent sample in this packet for the metric using the
supplied calculation method. | public double | getMostRecentValue(Metric m) Get the most recent sample in this packet for the metric using its
default calculation method. | public int | getSample(int sampleNo, int metricIndex) Get the value of sampleNo for the given metricIndex. | public double | getSeconds(int firstSampleNo, int lastSampleNo) Get the time in seconds between the two samples. | public int | getSize() Get the number of snapshots. |
MetricSnapshotPacket | public MetricSnapshotPacket(Date[] dates, int[] ids, int[][] buf)(Code) | | |
dump | public void dump(Metric[] all, int sampleNo, PrintStream out)(Code) | | Dump raw sample data to out (for debugging).
|
getDates | public Date[] getDates()(Code) | | Get the Date of each snapshot.
|
getIds | public int[] getIds()(Code) | | Get the unique ID of each snapshot.
|
getMostRecentDate | public Date getMostRecentDate()(Code) | | Get the Date of the most recent sample.
|
getMostRecentID | public int getMostRecentID()(Code) | | Get the ID of the most recent sample.
|
getSample | public int getSample(int sampleNo, int metricIndex)(Code) | | Get the value of sampleNo for the given metricIndex. If sampleNo is
before the first sample then return the first sample. If sampleNo is
after the last sample then return the last sample.
|
getSeconds | public double getSeconds(int firstSampleNo, int lastSampleNo)(Code) | | Get the time in seconds between the two samples. The sampleNo's are
adjusted to fit in range.
|
getSize | public int getSize()(Code) | | Get the number of snapshots.
|
|
|