class HTTPInstrumentData extends AbstractHTTPElementData implements InstrumentData
| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_registered |
private HTTPInstrumentSampleData[] |
m_sampleAry |
private java.util.Map |
m_sampleMap |
private java.util.List |
m_samples |
private int |
m_type
The type of the Instrument.
|
INSTRUMENT_TYPE_COUNTER, INSTRUMENT_TYPE_NONE, INSTRUMENT_TYPE_VALUE| Constructor and Description |
|---|
HTTPInstrumentData(HTTPInstrumentableData parent,
java.lang.String name)
Creates a new HTTPInstrumentData.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
createInstrumentSample(java.lang.String description,
long interval,
int sampleCount,
long leaseTime,
int sampleType)
Requests that a sample be created or that its lease be updated.
|
InstrumentSampleData[] |
getInstrumentSamples()
Returns an array of the Instrument Samples assigned to the Instrument.
|
int |
getType()
Returns the type of the Instrument.
|
boolean |
isRegistered()
Returns the registered flag of the remote object.
|
boolean |
update()
Causes the InstrumentData to update itself with the latest data from
the server.
|
protected void |
update(org.apache.avalon.framework.configuration.Configuration configuration,
boolean recurse)
Update the contents of the object using values from the Configuration object.
|
getName, getParent, isConfigured, lastNameToken, updategetConnection, getDescription, getStateVersion, urlEncodeenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getParent, isConfiguredgetDescription, getStateVersionprivate boolean m_registered
private int m_type
private java.util.List m_samples
private HTTPInstrumentSampleData[] m_sampleAry
private java.util.Map m_sampleMap
HTTPInstrumentData(HTTPInstrumentableData parent, java.lang.String name)
protected void update(org.apache.avalon.framework.configuration.Configuration configuration,
boolean recurse)
throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - Configuration object to load from.recurse - True if state should be ignored and we should drill down
using data in this configuration.org.apache.avalon.framework.configuration.ConfigurationException - If there are any problems.public boolean update()
public boolean isRegistered()
isRegistered in interface InstrumentDatapublic int getType()
getType in interface InstrumentDatapublic InstrumentSampleData[] getInstrumentSamples()
getInstrumentSamples in interface InstrumentDatapublic boolean createInstrumentSample(java.lang.String description,
long interval,
int sampleCount,
long leaseTime,
int sampleType)
createInstrumentSample in interface InstrumentDatadescription - Description to assign to the new sample.interval - Sample interval of the new sample.sampleCount - Number of samples in the new sample.leaseTime - Requested lease time. The server may not grant the full lease.sampleType - The type of sample to be created.