public interface InstrumentationProvider
| Modifier and Type | Method and Description |
|---|---|
void |
addInstrument(Instrument instrument)
Adds an instrument to this providers list of managed instruments.
|
Configuration |
getConfiguration()
Gets the configuration associated with the instrumentation provider
|
java.lang.String |
getInstrument()
Returns the string-based list of instruments directly configured by
this provider via setInstrument.
|
java.lang.String[] |
getInstrumentAliases()
Returns an string array of identifier to class name aliases for
instruments known to the instrumentation provider.
|
Instrument |
getInstrumentByName(java.lang.String name)
Returns an instrument instrumented by this provider by name
|
java.util.Set<Instrument> |
getInstruments()
Gets all instruments instrumented by this provider
|
java.lang.String |
getOptions()
Gets configuration options for this provider
|
void |
initializeInstrument(Instrument instrument,
java.lang.Object context)
Initializes an instrument within the provided context.
|
void |
initializeInstrument(Instrument instrument,
java.lang.String options,
java.lang.Object context)
Initializes an instrument within the provided options and context.
|
boolean |
isStarted()
Whether the instrumentation provider started
|
void |
removeInstrumentByName(java.lang.String name)
Removes an instrument instrumented by this provider by name
|
void |
setInstrument(java.lang.String instruments)
Used to associate one or more instruments to a provider.
|
void |
setOptions(java.lang.String options)
Sets configuration options for this provider
|
void |
start()
Stops the instrumentation provider
|
void |
startInstrument(Instrument instrument)
Starts an instrument
|
void |
startInstruments(InstrumentationLevel level,
java.lang.Object context)
Starts all instruments of the specified instrumentation level and context.
|
void |
stop()
Starts the instrumentation provider
|
void |
stopInstrument(Instrument instrument)
Stops an instrument
|
void |
stopInstrument(Instrument instrument,
boolean force)
Stops an instrument, forcing the stop, if necessary.
|
void |
stopInstruments(InstrumentationLevel level,
java.lang.Object context)
Stops all instruments of the specified instrumentation level and context.
|
boolean isStarted()
void stop()
void start()
Configuration getConfiguration()
void setInstrument(java.lang.String instruments)
instruments - one or more instrument class names or aliasesjava.lang.String getInstrument()
void setOptions(java.lang.String options)
options - java.lang.String getOptions()
options - java.lang.String[] getInstrumentAliases()
void addInstrument(Instrument instrument)
instrument - void stopInstruments(InstrumentationLevel level, java.lang.Object context)
level - instrumentation levelcontext - instrumentation context (factory, broker, config)void startInstruments(InstrumentationLevel level, java.lang.Object context)
level - instrumentation levelcontext - instrumentation context (factory, broker, config)void initializeInstrument(Instrument instrument, java.lang.Object context)
instrument - an instrumentcontext - instrumentation context (factory, broker, config)void initializeInstrument(Instrument instrument, java.lang.String options, java.lang.Object context)
instrument - an instrumentoptions - configuration options to provide the instrument during initializationcontext - instrumentation context (factory, broker, config)Instrument getInstrumentByName(java.lang.String name)
name - the name of the instrument to returnvoid removeInstrumentByName(java.lang.String name)
name - the name of the instrument to removejava.util.Set<Instrument> getInstruments()
void startInstrument(Instrument instrument)
instrument - this instrument to startvoid stopInstrument(Instrument instrument)
instrument - the instrument to stopvoid stopInstrument(Instrument instrument, boolean force)
instrument - the instrument to stopforce - forces the stop if the instrument does not stop gracefully.Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.