|
||||||||||
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.HTTPInstrumentData
class HTTPInstrumentData
Field Summary | |
---|---|
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. |
Fields inherited from interface org.apache.excalibur.instrument.client.InstrumentData |
---|
INSTRUMENT_TYPE_COUNTER, INSTRUMENT_TYPE_NONE, INSTRUMENT_TYPE_VALUE |
Constructor Summary | |
---|---|
HTTPInstrumentData(HTTPInstrumentableData parent,
java.lang.String name)
Creates a new HTTPInstrumentData. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.excalibur.instrument.client.http.AbstractHTTPElementData |
---|
getName, getParent, isConfigured, lastNameToken, update |
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 |
Field Detail |
---|
private boolean m_registered
private int m_type
private java.util.List m_samples
private HTTPInstrumentSampleData[] m_sampleAry
private java.util.Map m_sampleMap
Constructor Detail |
---|
HTTPInstrumentData(HTTPInstrumentableData parent, java.lang.String name)
Method Detail |
---|
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()
update
in interface Data
public boolean isRegistered()
isRegistered
in interface InstrumentData
public int getType()
getType
in interface InstrumentData
public InstrumentSampleData[] getInstrumentSamples()
getInstrumentSamples
in interface InstrumentData
public boolean createInstrumentSample(java.lang.String description, long interval, int sampleCount, long leaseTime, int sampleType)
createInstrumentSample
in interface InstrumentData
description
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |