|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.excalibur.instrument.AbstractInstrument
public abstract class AbstractInstrument
The AbstractInstrument class can be used by an class wishing to implement the Instruement interface.
| Field Summary | |
|---|---|
private java.lang.String |
m_name
The name of the Instrument. |
private InstrumentProxy |
m_proxy
Proxy object used to communicate with the InstrumentManager. |
| 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 |
| Field Detail |
|---|
private java.lang.String m_name
private InstrumentProxy m_proxy
| 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 Instrumentpublic 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 | ||||||||