|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.instrument.client.http.AbstractHTTPData
org.apache.excalibur.instrument.client.http.AbstractHTTPElementData
org.apache.excalibur.instrument.client.http.AbstractHTTPInstrumentSampleElementData
abstract class AbstractHTTPInstrumentSampleElementData
Field Summary | |
---|---|
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. |
Fields inherited from interface org.apache.excalibur.instrument.client.InstrumentSampleElementData |
---|
INSTRUMENT_SAMPLE_TYPE_COUNTER, INSTRUMENT_SAMPLE_TYPE_MAXIMUM, INSTRUMENT_SAMPLE_TYPE_MEAN, INSTRUMENT_SAMPLE_TYPE_MINIMUM |
Constructor Summary | |
---|---|
AbstractHTTPInstrumentSampleElementData(HTTPInstrumentManagerConnection connection,
AbstractHTTPData parent,
java.lang.String name)
Creates a new AbstractHTTPInstrumentSampleElementData. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.excalibur.instrument.client.http.AbstractHTTPElementData |
---|
getName, getParent, isConfigured, lastNameToken |
Methods inherited from class org.apache.excalibur.instrument.client.http.AbstractHTTPData |
---|
getConnection, getDescription, getStateVersion, urlEncode |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.excalibur.instrument.client.ElementData |
---|
getName, getParent, isConfigured |
Methods inherited from interface org.apache.excalibur.instrument.client.Data |
---|
getDescription, getStateVersion, update |
Field Detail |
---|
private long m_interval
private int m_size
private int m_type
private int m_value
private long m_time
private long m_leaseExpirationTime
Constructor Detail |
---|
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.Method Detail |
---|
protected void update(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
update
in class AbstractHTTPElementData
configuration
- Configuration object to load from.
org.apache.avalon.framework.configuration.ConfigurationException
- If there are any problems.public long getInterval()
getInterval
in interface InstrumentSampleElementData
public int getSize()
getSize
in interface InstrumentSampleElementData
public int getType()
getType
in interface InstrumentSampleElementData
public int getValue()
getValue
in interface InstrumentSampleElementData
public long getTime()
getTime
in interface InstrumentSampleElementData
public long getLeaseExpirationTime()
getLeaseExpirationTime
in interface InstrumentSampleElementData
public int getInstrumentType()
Should be one of the following: InstrumentData.PROFILE_POINT_TYPE_COUNTER or InstrumentData.PROFILE_POINT_TYPE_VALUE
getInstrumentType
in interface InstrumentSampleElementData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |