public class InstrumentationManagerImpl extends Object implements InstrumentationManager
Modifier and Type | Field and Description |
---|---|
Set<InstrumentationProvider> |
_providers |
Constructor and Description |
---|
InstrumentationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stops all providers
|
Set<InstrumentationProvider> |
getProviders()
Returns all providers as an unmodifiable set
|
void |
initialize(OpenJPAConfiguration conf,
PluginListValue pluginVal)
Initializes all providers defined for the specified configuration.
|
void |
manageProvider(InstrumentationProvider provider)
Make a provider managed.
|
void |
start(InstrumentationLevel level,
Object context)
Starts all providers at a specific level and context
|
void |
stop(InstrumentationLevel level,
Object context)
Stops all providers at a specific level and context
|
public Set<InstrumentationProvider> _providers
public void initialize(OpenJPAConfiguration conf, PluginListValue pluginVal)
initialize
in interface InstrumentationManager
conf
- the configuration to use for initializationpluginVal
- one or more providers as supplied via plugin list valuepublic void manageProvider(InstrumentationProvider provider)
manageProvider
in interface InstrumentationManager
provider
- the instrumentation providerpublic Set<InstrumentationProvider> getProviders()
getProviders
in interface InstrumentationManager
public void start(InstrumentationLevel level, Object context)
start
in interface InstrumentationManager
level
- instrumentation levelcontext
- instrumentation context (broker, factory, config,...)public void stop(InstrumentationLevel level, Object context)
stop
in interface InstrumentationManager
context
- instrumentation context (broker, factory, config,...)Copyright © 2006–2022 Apache Software Foundation. All rights reserved.