|
Keel 2.1RC2 | ||||||||||
| 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.manager.InstrumentableProxy
A InstrumentableProxy makes it easy for the InstrumentManager to manage Instrumentables and their Instruments.
Not Synchronized.
| Field Summary | |
private InstrumentableDescriptorLocal[] |
m_childInstrumentableDescriptorArrayOptimized array of the child InstrumentableDescriptorLocals. |
private java.util.HashMap |
m_childInstrumentableProxiesMap of the Child InstrumentableProxies owned by this InstrumentableProxy. |
private InstrumentableProxy[] |
m_childInstrumentableProxyArrayOptimized array of the child InstrumentableProxies. |
private boolean |
m_configuredConfigured flag. |
private java.lang.String |
m_descriptionThe description of the Instrumentable. |
private InstrumentableDescriptorLocalImpl |
m_descriptorThe Descriptor for the Instrumentable. |
private InstrumentDescriptorLocal[] |
m_instrumentDescriptorArrayOptimized array of the InstrumentDescriptorLocals. |
private DefaultInstrumentManager |
m_instrumentManagerInstrumentManager which owns the proxy. |
private java.util.HashMap |
m_instrumentProxiesMap of the InstrumentProxies owned by this InstrumentableProxy. |
private InstrumentProxy[] |
m_instrumentProxyArrayOptimized array of the InstrumentProxies. |
private java.lang.String |
m_nameThe name used to identify a Instrumentable. |
private InstrumentableProxy |
m_parentInstrumentableProxyThe parent Instrumentable proxy or null if this is a top level Instrumentable. |
private boolean |
m_registeredRegistered flag. |
private int |
m_stateVersionState Version. |
| Fields inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|
| Constructor Summary | |
(package private) |
InstrumentableProxy(DefaultInstrumentManager instrumentManager, InstrumentableProxy parentInstrumentableProxy, java.lang.String name, java.lang.String description)Creates a new InstrumentableProxy. |
| Method Summary | |
(package private) void |
addChildInstrumentableProxy(InstrumentableProxy childInstrumentableProxy)Adds a child InstrumentableProxy to the Instrumentable. |
(package private) void |
addInstrumentProxy(InstrumentProxy instrumentProxy)Adds a InstrumentProxy to the Instrumentable. |
void |
configure(Configuration configuration)Configures the Instrumentable. |
(package private) InstrumentableDescriptorLocal[] |
getChildInstrumentableDescriptors()Returns an array of Descriptors for the child Instrumentables in this Instrumentable. |
(package private) InstrumentableProxy[] |
getChildInstrumentableProxies()Returns an array of Proxies to the child Instrumentables in this Instrumentable. |
(package private) InstrumentableProxy |
getChildInstrumentableProxy(java.lang.String childInstrumentableName)Returns a child InstrumentableProxy based on its name or the name of any of its children. |
(package private) java.lang.String |
getDescription()Gets the description of the Instrumentable. |
(package private) InstrumentableDescriptorLocal |
getDescriptor()Returns a Descriptor for the Instrumentable. |
(package private) InstrumentDescriptorLocal[] |
getInstrumentDescriptors()Returns an array of Descriptors for the Instruments in the Instrumentable. |
(package private) DefaultInstrumentManager |
getInstrumentManager()Returns instrumentManager which owns the proxy. |
(package private) InstrumentProxy[] |
getInstrumentProxies()Returns an array of Proxies to the Instruments in the Instrumentable. |
(package private) InstrumentProxy |
getInstrumentProxy(java.lang.String instrumentName)Returns a InstrumentProxy based on its name or the name of any of its children. |
(package private) java.lang.String |
getName()Gets the name for the Instrumentable. |
(package private) InstrumentableProxy |
getParentInstrumentableProxy()Returns the parent InstrumentableProxy or null if this is a top level proxy. |
(package private) int |
getStateVersion()Returns the stateVersion of the instrumentable. |
(package private) boolean |
isConfigured()Returns true if the instrumentable was configured in the instrumentables section of the configuration. |
(package private) boolean |
isRegistered()Returns true if the Instrumentable was registered with the Instrument Manager. |
(package private) void |
loadState(Configuration state)Loads the state into the Instrumentable. |
(package private) Configuration |
saveState()Saves the current state into a Configuration. |
(package private) void |
setDescription(java.lang.String description)Sets the description for the instrumentable object. |
(package private) void |
setRegistered()Called by the InstrumentManager whenever an Instrumentable assigned to this proxy is registered. |
protected void |
stateChanged()Called whenever the state of the instrumentable is changed. |
private InstrumentableDescriptorLocal[] |
updateChildInstrumentableDescriptorArray()Updates the cached array of child InstrumentableDescriptorLocals taking synchronization into account. |
private InstrumentableProxy[] |
updateChildInstrumentableProxyArray()Updates the cached array of child InstrumentableProxies taking synchronization into account. |
private InstrumentDescriptorLocal[] |
updateInstrumentDescriptorArray()Updates the cached array of InstrumentDescriptorLocals taking synchronization into account. |
private InstrumentProxy[] |
updateInstrumentProxyArray()Updates the cached array of InstrumentProxies taking synchronization into account. |
| 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 |
| Field Detail |
private DefaultInstrumentManager m_instrumentManager
private InstrumentableProxy m_parentInstrumentableProxy
private boolean m_configured
private boolean m_registered
private java.lang.String m_name
private java.lang.String m_description
private InstrumentableDescriptorLocalImpl m_descriptor
private java.util.HashMap m_childInstrumentableProxies
private InstrumentableProxy[] m_childInstrumentableProxyArray
private InstrumentableDescriptorLocal[] m_childInstrumentableDescriptorArray
private java.util.HashMap m_instrumentProxies
private InstrumentProxy[] m_instrumentProxyArray
private InstrumentDescriptorLocal[] m_instrumentDescriptorArray
private int m_stateVersion
| Constructor Detail |
InstrumentableProxy(DefaultInstrumentManager instrumentManager,
InstrumentableProxy parentInstrumentableProxy,
java.lang.String name,
java.lang.String description)
instrumentManager - InstrumentManager which owns the proxy.parentInstrumentableProxy - The parent Instrumentable proxy or null if this is a top level Instrumentable.name - The name used to identify a Instrumentable.description - The description of the the Instrumentable.| Method Detail |
public void configure(Configuration configuration)
throws ConfigurationException
configure in interface Configurableconfiguration - Instrumentable configuration element from the ProfilerManager's configuration.ConfigurationException - If there are any configuration problems.DefaultInstrumentManager getInstrumentManager()
InstrumentableProxy getParentInstrumentableProxy()
boolean isConfigured()
boolean isRegistered()
void setRegistered()
java.lang.String getName()
void setDescription(java.lang.String description)
description - The description of the Instrumentable.java.lang.String getDescription()
InstrumentableDescriptorLocal getDescriptor()
void addChildInstrumentableProxy(InstrumentableProxy childInstrumentableProxy)
This method should never be called for child Instrumentables which have already been added.
childInstrumentableProxy - Child InstrumentableProxy to be added.InstrumentableProxy getChildInstrumentableProxy(java.lang.String childInstrumentableName)
childInstrumentableName - Name of the child Instrumentable being requested.InstrumentableProxy[] getChildInstrumentableProxies()
InstrumentableDescriptorLocal[] getChildInstrumentableDescriptors()
private InstrumentableProxy[] updateChildInstrumentableProxyArray()
private InstrumentableDescriptorLocal[] updateChildInstrumentableDescriptorArray()
void addInstrumentProxy(InstrumentProxy instrumentProxy)
This method should never be called for Instruments which have already been added.
instrumentProxy - InstrumentProxy to be added.InstrumentProxy getInstrumentProxy(java.lang.String instrumentName)
instrumentName - Name of the Instrument being requested.InstrumentProxy[] getInstrumentProxies()
InstrumentDescriptorLocal[] getInstrumentDescriptors()
int getStateVersion()
private InstrumentProxy[] updateInstrumentProxyArray()
private InstrumentDescriptorLocal[] updateInstrumentDescriptorArray()
Configuration saveState()
void loadState(Configuration state)
throws ConfigurationException
state - Configuration object to load state from.ConfigurationException - If there were any problems loading the state.protected void stateChanged()
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||