|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.instrumentation.AbstractInstrument
public abstract class AbstractInstrument
Provides a base for creating instruments. Specialized instruments can extend this class to get base instrument capabilities and then add their own specialized functionality.
| Constructor Summary | |
|---|---|
AbstractInstrument()
|
|
| Method Summary | |
|---|---|
Object |
getContext()
Gets the context of the instrument. |
InstrumentationLevel |
getLevel()
Gets the instrumentation level of this instrument. |
abstract String |
getName()
Returns the name of the instrument. |
String |
getOptions()
Returns the options specified for the instrument in string form. |
InstrumentationProvider |
getProvider()
Gets the instrumentation provider for the instrument. |
abstract void |
initialize()
Initializes the instrument. |
boolean |
isStarted()
Returns true if the instrument is started. |
void |
restart()
Restarts the instrument. |
void |
setContext(Object context)
Sets the context of the instrument. |
void |
setOptions(String options)
Sets options to specify for the instrument in standard string form. |
void |
setProvider(InstrumentationProvider provider)
Sets the instrumentation provider for the instrument. |
void |
setStarted(boolean started)
Sets whether the instrument is an available state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.openjpa.lib.instrumentation.Instrument |
|---|
start, stop |
| Constructor Detail |
|---|
public AbstractInstrument()
| Method Detail |
|---|
public Object getContext()
Instrument
getContext in interface Instrumentpublic void setContext(Object context)
Instrument
setContext in interface Instrumentpublic String getOptions()
Instrument
getOptions in interface Instrumentpublic void setOptions(String options)
Instrument
setOptions in interface Instrumentoptions - optionspublic boolean isStarted()
Instrument
isStarted in interface Instrumentpublic void setStarted(boolean started)
Instrument
setStarted in interface Instrumentpublic void restart()
Instrument
restart in interface Instrumentpublic void setProvider(InstrumentationProvider provider)
Instrument
setProvider in interface Instrumentprovider - instrumentation provider of the instrumentpublic InstrumentationProvider getProvider()
Instrument
getProvider in interface Instrumentpublic InstrumentationLevel getLevel()
Instrument
getLevel in interface Instrumentpublic abstract String getName()
Instrument
getName in interface Instrumentpublic abstract void initialize()
Instrument
initialize in interface Instrument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||