|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Instrument
public void setContext(Object context)
Instrument
setContext
in interface Instrument
public String getOptions()
Instrument
getOptions
in interface Instrument
public void setOptions(String options)
Instrument
setOptions
in interface Instrument
options
- optionspublic boolean isStarted()
Instrument
isStarted
in interface Instrument
public void setStarted(boolean started)
Instrument
setStarted
in interface Instrument
public void restart()
Instrument
restart
in interface Instrument
public void setProvider(InstrumentationProvider provider)
Instrument
setProvider
in interface Instrument
provider
- instrumentation provider of the instrumentpublic InstrumentationProvider getProvider()
Instrument
getProvider
in interface Instrument
public InstrumentationLevel getLevel()
Instrument
getLevel
in interface Instrument
public abstract String getName()
Instrument
getName
in interface Instrument
public abstract void initialize()
Instrument
initialize
in interface Instrument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |