|
|||||||||
| 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.avalon.excalibur.component.example_im.DefaultExampleInstrumentable
public class 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. |
org.apache.excalibur.instrument.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. |
org.apache.excalibur.instrument.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 ExampleInstrumentablepublic void start()
start in interface org.apache.avalon.framework.activity.Startablepublic void stop()
stop in interface org.apache.avalon.framework.activity.Startablepublic void run()
run in interface java.lang.Runnablepublic 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 org.apache.excalibur.instrument.Instrumentablename - The name used to identify a Instrumentable.public java.lang.String getInstrumentableName()
getInstrumentableName in interface org.apache.excalibur.instrument.Instrumentablepublic org.apache.excalibur.instrument.Instrument[] getInstruments()
getInstruments in interface org.apache.excalibur.instrument.Instrumentablepublic org.apache.excalibur.instrument.Instrumentable[] getChildInstrumentables()
getChildInstrumentables in interface org.apache.excalibur.instrument.Instrumentable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||