public abstract class AbstractInstrumentationProvider extends Object implements InstrumentationProvider, Configurable
| Constructor and Description |
|---|
AbstractInstrumentationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstrument(Instrument instrument)
Adds an instrument to this providers list of managed instruments.
|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object.
|
Configuration |
getConfiguration()
Gets the configuration associated with the instrumentation provider
|
String |
getInstrument()
Returns the string-based list of instruments directly configured by
this provider via setInstrument.
|
String[] |
getInstrumentAliases()
Returns an string array of identifier to class name aliases for
instruments known to the instrumentation provider.
|
Instrument |
getInstrumentByName(String name)
Returns an instrument instrumented by this provider by name
|
Set<Instrument> |
getInstruments()
Gets all instruments instrumented by this provider
|
String |
getOptions()
Gets configuration options for this provider
|
void |
initializeInstrument(Instrument instrument,
Object context)
Initializes an instrument within the provided context.
|
void |
initializeInstrument(Instrument instrument,
String options,
Object context)
Initializes an instrument within the provided options and context.
|
boolean |
isStarted()
Whether the instrumentation provider started
|
void |
removeInstrumentByName(String name)
Removes an instrument instrumented by this provider by name
|
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties.
|
void |
setInstrument(String instrument)
Used to associate one or more instruments to a provider.
|
void |
setOptions(String options)
Sets configuration options for this provider
|
protected void |
setStarted(boolean started) |
abstract void |
start()
Stops the instrumentation provider
|
void |
startConfiguration()
Invoked before bean property configuration is begun on this object.
|
void |
startInstruments(InstrumentationLevel level,
Object context)
Starts all instruments of the specified instrumentation level and context.
|
abstract void |
stop()
Starts the instrumentation provider
|
void |
stopInstrument(Instrument instrument)
Stops an instrument
|
void |
stopInstruments(InstrumentationLevel level,
Object context)
Stops all instruments of the specified instrumentation level and context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartInstrument, stopInstrumentpublic void setConfiguration(Configuration conf)
ConfigurablesetConfiguration in interface Configurablepublic Configuration getConfiguration()
InstrumentationProvidergetConfiguration in interface InstrumentationProviderpublic void startConfiguration()
ConfigurablestartConfiguration in interface Configurablepublic void endConfiguration()
ConfigurableendConfiguration in interface Configurablepublic void setInstrument(String instrument)
InstrumentationProvidersetInstrument in interface InstrumentationProviderinstrument - one or more instrument class names or aliasespublic String getInstrument()
InstrumentationProvidergetInstrument in interface InstrumentationProviderpublic void setOptions(String options)
InstrumentationProvidersetOptions in interface InstrumentationProviderpublic String getOptions()
InstrumentationProvidergetOptions in interface InstrumentationProviderpublic void addInstrument(Instrument instrument)
InstrumentationProvideraddInstrument in interface InstrumentationProviderpublic void initializeInstrument(Instrument instrument, Object context)
InstrumentationProviderinitializeInstrument in interface InstrumentationProviderinstrument - an instrumentcontext - instrumentation context (factory, broker, config)public void initializeInstrument(Instrument instrument, String options, Object context)
InstrumentationProviderinitializeInstrument in interface InstrumentationProviderinstrument - an instrumentoptions - configuration options to provide the instrument during initializationcontext - instrumentation context (factory, broker, config)public Instrument getInstrumentByName(String name)
InstrumentationProvidergetInstrumentByName in interface InstrumentationProvidername - the name of the instrument to returnpublic Set<Instrument> getInstruments()
InstrumentationProvidergetInstruments in interface InstrumentationProviderpublic void stopInstruments(InstrumentationLevel level, Object context)
InstrumentationProviderstopInstruments in interface InstrumentationProviderlevel - instrumentation levelcontext - instrumentation context (factory, broker, config)public void startInstruments(InstrumentationLevel level, Object context)
InstrumentationProviderstartInstruments in interface InstrumentationProviderlevel - instrumentation levelcontext - instrumentation context (factory, broker, config)public void stopInstrument(Instrument instrument)
InstrumentationProviderstopInstrument in interface InstrumentationProviderinstrument - the instrument to stoppublic void removeInstrumentByName(String name)
InstrumentationProviderremoveInstrumentByName in interface InstrumentationProvidername - the name of the instrument to removepublic boolean isStarted()
InstrumentationProviderisStarted in interface InstrumentationProviderprotected void setStarted(boolean started)
public String[] getInstrumentAliases()
InstrumentationProvidergetInstrumentAliases in interface InstrumentationProviderpublic abstract void start()
InstrumentationProviderstart in interface InstrumentationProviderpublic abstract void stop()
InstrumentationProviderstop in interface InstrumentationProviderCopyright © 2006–2022 Apache Software Foundation. All rights reserved.