org.apache.excalibur.instrument.client.http
Class HTTPInstrumentableData
java.lang.Object
org.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.HTTPInstrumentableData
- All Implemented Interfaces:
- org.apache.avalon.framework.logger.LogEnabled, Data, ElementData, InstrumentableData
class HTTPInstrumentableData
- extends AbstractHTTPElementData
- implements InstrumentableData
Method Summary |
InstrumentableData[] |
getInstrumentables()
Gets a thread-safe snapshot of the child instrumentable list. |
InstrumentData[] |
getInstruments()
Gets a thread-safe snapshot of the instrument list. |
boolean |
isRegistered()
Returns the registered flag of the remote object. |
boolean |
update()
Causes the InstrumentableData 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.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 |
m_registered
private boolean m_registered
m_instrumentables
private java.util.List m_instrumentables
m_instrumentableAry
private HTTPInstrumentableData[] m_instrumentableAry
m_instrumentableMap
private java.util.Map m_instrumentableMap
m_instruments
private java.util.List m_instruments
m_instrumentAry
private HTTPInstrumentData[] m_instrumentAry
m_instrumentMap
private java.util.Map m_instrumentMap
HTTPInstrumentableData
HTTPInstrumentableData(AbstractHTTPData parent,
java.lang.String name)
- Creates a new HTTPInstrumentableData.
update
protected void update(org.apache.avalon.framework.configuration.Configuration configuration,
boolean recurse)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Update the contents of the object using values from the Configuration object.
- Parameters:
configuration
- Configuration object to load from.recurse
- True if state should be ignored and we should drill down
using data in this configuration.
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- If there are any problems.
update
public boolean update()
- Causes the InstrumentableData to update itself with the latest data from
the server.
- Specified by:
update
in interface Data
- Returns:
- true if successful.
isRegistered
public boolean isRegistered()
- Returns the registered flag of the remote object.
- Specified by:
isRegistered
in interface InstrumentableData
- Returns:
- The registered flag of the remote object.
getInstrumentables
public InstrumentableData[] getInstrumentables()
- Gets a thread-safe snapshot of the child instrumentable list.
- Specified by:
getInstrumentables
in interface InstrumentableData
- Returns:
- A thread-safe snapshot of the child instrumentable list.
getInstruments
public InstrumentData[] getInstruments()
- Gets a thread-safe snapshot of the instrument list.
- Specified by:
getInstruments
in interface InstrumentableData
- Returns:
- A thread-safe snapshot of the instrument list.