public abstract class AbstractInstrument extends Object implements Instrument
Constructor and Description |
---|
AbstractInstrument() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start, stop
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
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.