|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Instrumentable interface is to mark objects that can be sampled by an InstrumentManager. The getInstruments method may or may not be called depending on whether or not the ComponentLocator used to create the Component supports Instrumentables. In most cases, an instrumentable object should always create its internal Instruments and make use of them as if instrument data were being collected. The Instruments are optimized so as not to reduce performance when they are not being used.
Field Summary | |
static Instrument[] |
EMPTY_INSTRUMENT_ARRAY
Empty Instrument array for use in hierarchical Instrumentable systems. |
static Instrumentable[] |
EMPTY_INSTRUMENTABLE_ARRAY
Empty Instrumentable array for use in hierarchical Instrumentable systems. |
Method Summary | |
Instrumentable[] |
getChildInstrumentables()
Any Object which implements Instrumentable can also make use of other Instrumentable child objects. |
java.lang.String |
getInstrumentableName()
Gets the name of the Instrumentable. |
Instrument[] |
getInstruments()
Obtain a reference to all the Instruments that the Instrumentable object wishes to expose. |
void |
setInstrumentableName(java.lang.String name)
Sets the name for the Instrumentable. |
Field Detail |
public static final Instrument[] EMPTY_INSTRUMENT_ARRAY
public static final Instrumentable[] EMPTY_INSTRUMENTABLE_ARRAY
Method Detail |
public void setInstrumentableName(java.lang.String name)
This value may be set by a parent Instrumentable, or by the InstrumentManager using the value of the 'instrumentable' attribute in the configuration of the component.
name
- The name used to identify a Instrumentable.public java.lang.String getInstrumentableName()
public Instrument[] getInstruments()
public Instrumentable[] getChildInstrumentables()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |