org.apache.excalibur.instrument.client.http
Class HTTPInstrumentableData

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.excalibur.instrument.client.http.AbstractHTTPData
          extended by org.apache.excalibur.instrument.client.http.AbstractHTTPElementData
              extended by 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


Field Summary
private  HTTPInstrumentableData[] m_instrumentableAry
           
private  java.util.Map m_instrumentableMap
           
private  java.util.List m_instrumentables
           
private  HTTPInstrumentData[] m_instrumentAry
           
private  java.util.Map m_instrumentMap
           
private  java.util.List m_instruments
           
private  boolean m_registered
           
 
Constructor Summary
HTTPInstrumentableData(AbstractHTTPData parent, java.lang.String name)
          Creates a new HTTPInstrumentableData.
 
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.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

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
Constructor Detail

HTTPInstrumentableData

HTTPInstrumentableData(AbstractHTTPData parent,
                       java.lang.String name)
Creates a new HTTPInstrumentableData.

Method Detail

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.