|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.excalibur.instrument.AbstractInstrument
The AbstractInstrument class can be used by an class wishing to implement the Instruement interface.
Constructor Summary | |
protected |
AbstractInstrument(java.lang.String name)
Creates a new AbstractInstrument. |
Method Summary | |
java.lang.String |
getInstrumentName()
Gets the name for the Instrument. |
protected InstrumentProxy |
getInstrumentProxy()
Returns the InstrumentProxy object assigned to the instrument by the InstrumentManager. |
boolean |
isActive()
Used by classes being profiled so that they can avoid unnecessary code when the data from an Instrument is not being used. |
void |
setInstrumentProxy(InstrumentProxy proxy)
When the InstrumentManager is present, an InstrumentProxy will be set to enable the Instrument to communicate with the InstrumentManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractInstrument(java.lang.String name)
name
- The name of the Instrument. The value should be a string
which does not contain spaces or periods.Method Detail |
public java.lang.String getInstrumentName()
getInstrumentName
in interface Instrument
public void setInstrumentProxy(InstrumentProxy proxy)
proxy
- Proxy object used to communicate with the
InstrumentManager.public boolean isActive()
protected InstrumentProxy getInstrumentProxy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |