|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.avalon.excalibur.component.example_im.DefaultExampleInstrumentable
This example application creates a component which registers several Instruments for the example. Note, this code ignores exceptions to keep the code simple.
Field Summary | |
static java.lang.String |
INSTRUMENT_COUNTER_QUICK_NAME
|
static java.lang.String |
INSTRUMENT_COUNTER_RANDOM_NAME
|
static java.lang.String |
INSTRUMENT_COUNTER_SLOW_NAME
|
static java.lang.String |
INSTRUMENT_DOACTION_NAME
|
static java.lang.String |
INSTRUMENT_RANDOM_QUICK_NAME
|
static java.lang.String |
INSTRUMENT_RANDOM_RANDOM_NAME
|
static java.lang.String |
INSTRUMENT_RANDOM_SLOW_NAME
|
Fields inherited from interface org.apache.avalon.excalibur.component.example_im.ExampleInstrumentable |
ROLE |
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
Constructor Summary | |
DefaultExampleInstrumentable()
|
Method Summary | |
void |
doAction()
Example action method. |
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 |
run()
Runner thread which is responsible for sending data to the Profiler via the various random Profile Points. |
void |
setInstrumentableName(java.lang.String name)
Sets the name for the Instrumentable. |
void |
start()
Start the component. |
void |
stop()
Stop the component. |
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 |
public static final java.lang.String INSTRUMENT_RANDOM_QUICK_NAME
public static final java.lang.String INSTRUMENT_RANDOM_SLOW_NAME
public static final java.lang.String INSTRUMENT_RANDOM_RANDOM_NAME
public static final java.lang.String INSTRUMENT_COUNTER_QUICK_NAME
public static final java.lang.String INSTRUMENT_COUNTER_SLOW_NAME
public static final java.lang.String INSTRUMENT_COUNTER_RANDOM_NAME
public static final java.lang.String INSTRUMENT_DOACTION_NAME
Constructor Detail |
public DefaultExampleInstrumentable()
Method Detail |
public void doAction()
doAction
in interface ExampleInstrumentable
public void start()
start
in interface Startable
public void stop()
stop
in interface Startable
public void run()
run
in interface java.lang.Runnable
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.
setInstrumentableName
in interface Instrumentable
name
- The name used to identify a Instrumentable.public java.lang.String getInstrumentableName()
getInstrumentableName
in interface Instrumentable
public Instrument[] getInstruments()
getInstruments
in interface Instrumentable
public Instrumentable[] getChildInstrumentables()
getChildInstrumentables
in interface Instrumentable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |