public class TimerDataPoint extends DataPoint
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TimerDataPoint.TimerIndices
Indices used for storing
TimerDataPoint contents in a file. |
DataPoint.IndicesENCODING_CHAR_SET| Constructor and Description |
|---|
TimerDataPoint(InputStream is)
Constructs a
TimerDataPoint from the specified stream contents. |
TimerDataPoint(long lastUpdatedTimeStamp,
long msSpanned,
long count,
double rate,
double mean,
long minimum,
long maximum,
double standardDeviation)
Constructs a
TimerDataPoint using the specified values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object toCompare) |
long |
getCount()
Gets the number of durations encompassed by the timer.
|
int |
getExpectedFieldCount()
Gets the expected CSV field count for the data type.
|
long |
getMaximum()
Gets the largest of the timer durations.
|
double |
getMean()
Gets the arithmetic mean of timer durations.
|
long |
getMinimum()
Gets the smallest of the timer durations.
|
double |
getRate()
Gets the rate of the timer durations.
|
double |
getStandardDeviation()
Gets the arithmetic standard deviation of timer durations.
|
int |
hashCode() |
protected String[] |
prepareArrayFieldsForWriting(String[] fields)
Prepares the provided
String array with values to be written for
this DataPoint. |
void |
set(String[] fields)
Reads the
DataPoint contents from the specified String
array. |
void |
setCount(long toSet)
Sets the number of durations encompassed by the timer.
|
void |
setMaximum(long toSet)
Sets the largest of the timer durations.
|
void |
setMean(double toSet)
Sets the arithmetic mean of timer durations.
|
void |
setMinimum(long toSet)
Sets the smallest of the timer durations.
|
void |
setRate(double toSet)
Sets the rate of the timer durations.
|
void |
setStandardDeviation(double toSet)
Sets the arithmetic standard deviation of timer durations.
|
String |
toDebugString()
Gets a detailed representation of this object to facilitate debugging.
|
String |
toString() |
getLastUpdatedTimeStamp, getMsSpanned, read, setLastUpdatedTimeStamp, setMsSpanned, writepublic TimerDataPoint(long lastUpdatedTimeStamp,
long msSpanned,
long count,
double rate,
double mean,
long minimum,
long maximum,
double standardDeviation)
TimerDataPoint using the specified values.lastUpdatedTimeStamp - last updated time stampmsSpanned - milliseconds spannedcount - number of durations encompassed by timerrate - rate of durations encompassed by timermean - arithmetic mean of timer durationsminimum - smallest of timer durationsmaximum - largest of timer durationsstandardDeviation - arithmetic standard deviation of timer durationspublic TimerDataPoint(InputStream is) throws DataFormatException, IOException
TimerDataPoint from the specified stream contents.is - InputStream to read fromDataFormatException - if the expected content cannot be readIOException - if an error occurs while reading from the streampublic long getCount()
public long getMaximum()
public double getMean()
public long getMinimum()
public double getRate()
public double getStandardDeviation()
public int getExpectedFieldCount()
DataPointgetExpectedFieldCount in class DataPointprotected String[] prepareArrayFieldsForWriting(String[] fields)
DataPointString array with values to be written for
this DataPoint.prepareArrayFieldsForWriting in class DataPointfields - a String array that will be set with the field
values, in order, to be writtenpublic void set(String[] fields) throws DataFormatException
DataPointDataPoint contents from the specified String
array.set in class DataPointfields - String array to read fromDataFormatException - if the expected file content cannot be readpublic void setCount(long toSet)
toSet - number of durations encompassed by timerpublic void setMaximum(long toSet)
toSet - largest timer durationpublic void setMean(double toSet)
toSet - arithmetic mean of timer durationspublic void setMinimum(long toSet)
toSet - smallest timer durationpublic void setRate(double toSet)
toSet - rate of timer durationspublic void setStandardDeviation(double toSet)
toSet - arithmetic standard deviation of timer durationspublic String toDebugString()
DataPointtoDebugString in class DataPointCopyright © 2014. All Rights Reserved.