abstract class AbstractHTTPInstrumentSampleElementData extends AbstractHTTPElementData implements InstrumentSampleElementData
| Modifier and Type | Field and Description |
|---|---|
private long |
m_interval
The sample interval.
|
private long |
m_leaseExpirationTime
The UNIX time when the lease expires.
|
private int |
m_size
The size of the sample history.
|
private long |
m_time
The UNIX time of the beginning of the sample.
|
private int |
m_type
The type of the Instrument Sample.
|
private int |
m_value
The sample value.
|
INSTRUMENT_SAMPLE_TYPE_COUNTER, INSTRUMENT_SAMPLE_TYPE_MAXIMUM, INSTRUMENT_SAMPLE_TYPE_MEAN, INSTRUMENT_SAMPLE_TYPE_MINIMUM| Constructor and Description |
|---|
AbstractHTTPInstrumentSampleElementData(HTTPInstrumentManagerConnection connection,
AbstractHTTPData parent,
java.lang.String name)
Creates a new AbstractHTTPInstrumentSampleElementData.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getInstrumentType()
Returns the Type of the Instrument which can use the sample.
|
long |
getInterval()
Returns the sample interval.
|
long |
getLeaseExpirationTime()
Obtain the UNIX time when the lease expires.
|
int |
getSize()
Returns the number of samples in the sample history.
|
long |
getTime()
Obtain the UNIX time of the beginning of the sample.
|
int |
getType()
Returns the type of the Instrument Sample.
|
int |
getValue()
Obtain the value of the sample.
|
protected void |
update(org.apache.avalon.framework.configuration.Configuration configuration)
Update the contents of the object using values from the Configuration object.
|
getName, getParent, isConfigured, lastNameTokengetConnection, getDescription, getStateVersion, urlEncodeenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getParent, isConfiguredgetDescription, getStateVersion, updateprivate long m_interval
private int m_size
private int m_type
private int m_value
private long m_time
private long m_leaseExpirationTime
AbstractHTTPInstrumentSampleElementData(HTTPInstrumentManagerConnection connection, AbstractHTTPData parent, java.lang.String name)
connection - The connection used to communicate with the server.parent - The parent data element.name - The name of the data element.protected void update(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
update in class AbstractHTTPElementDataconfiguration - Configuration object to load from.org.apache.avalon.framework.configuration.ConfigurationException - If there are any problems.public long getInterval()
getInterval in interface InstrumentSampleElementDatapublic int getSize()
getSize in interface InstrumentSampleElementDatapublic int getType()
getType in interface InstrumentSampleElementDatapublic int getValue()
getValue in interface InstrumentSampleElementDatapublic long getTime()
getTime in interface InstrumentSampleElementDatapublic long getLeaseExpirationTime()
getLeaseExpirationTime in interface InstrumentSampleElementDatapublic int getInstrumentType()
Should be one of the following: InstrumentData.PROFILE_POINT_TYPE_COUNTER or InstrumentData.PROFILE_POINT_TYPE_VALUE
getInstrumentType in interface InstrumentSampleElementData