public interface Instrument
Modifier and Type | Method and Description |
---|---|
Object |
getContext()
Gets the context of the instrument.
|
InstrumentationLevel |
getLevel()
Gets the instrumentation level of this instrument.
|
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.
|
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.
|
void |
start()
Starts the instrument.
|
void |
stop()
Starts the instrument.
|
String getName()
String getOptions()
void setOptions(String options)
options
- optionsObject getContext()
void setContext(Object context)
void setProvider(InstrumentationProvider provider)
provider
- instrumentation provider of the instrumentInstrumentationProvider getProvider()
void initialize()
InstrumentationLevel getLevel()
boolean isStarted()
void setStarted(boolean started)
started
- void start()
void stop()
void restart()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.