class HTTPInstrumentSampleSnapshotData extends AbstractHTTPInstrumentSampleElementData implements InstrumentSampleSnapshotData
| Modifier and Type | Field and Description |
|---|---|
private int[] |
m_samples
Array of values which make up the sample.
|
INSTRUMENT_SAMPLE_TYPE_COUNTER, INSTRUMENT_SAMPLE_TYPE_MAXIMUM, INSTRUMENT_SAMPLE_TYPE_MEAN, INSTRUMENT_SAMPLE_TYPE_MINIMUM| Constructor and Description |
|---|
HTTPInstrumentSampleSnapshotData(HTTPInstrumentManagerConnection connection,
java.lang.String name)
Creates a new HTTPInstrumentSampleSnapshotData.
|
| Modifier and Type | Method and Description |
|---|---|
Data |
getParent()
Returns the parent data object.
|
int[] |
getSamples()
Returns an array of the individual values which make up the sample.
|
boolean |
update()
Causes the InstrumentSampleSnapshotData to update itself with the latest
data from the server.
|
protected void |
update(org.apache.avalon.framework.configuration.Configuration configuration)
Update the contents of the object using values from the Configuration object.
|
getInstrumentType, getInterval, getLeaseExpirationTime, getSize, getTime, getType, getValuegetName, isConfigured, lastNameTokengetConnection, getDescription, getStateVersion, urlEncodeenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstrumentType, getInterval, getLeaseExpirationTime, getSize, getTime, getType, getValuegetName, isConfiguredgetDescription, getStateVersionHTTPInstrumentSampleSnapshotData(HTTPInstrumentManagerConnection connection, java.lang.String name)
connection - The connection used to communicate with the server.name - The name of the data element.public Data getParent()
getParent in interface ElementDatagetParent in class AbstractHTTPElementDataprotected void update(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
update in class AbstractHTTPInstrumentSampleElementDataconfiguration - Configuration object to load from.org.apache.avalon.framework.configuration.ConfigurationException - If there are any problems.public boolean update()
public int[] getSamples()
getSamples in interface InstrumentSampleSnapshotData