Class InstrumentationManagerImpl
- java.lang.Object
-
- org.apache.openjpa.instrumentation.InstrumentationManagerImpl
-
- All Implemented Interfaces:
InstrumentationManager,Closeable
public class InstrumentationManagerImpl extends Object implements InstrumentationManager
An implementation of an instrumentation manager.
-
-
Field Summary
Fields Modifier and Type Field Description Set<InstrumentationProvider>_providers
-
Constructor Summary
Constructors Constructor Description InstrumentationManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Stops all providersSet<InstrumentationProvider>getProviders()Returns all providers as an unmodifiable setvoidinitialize(OpenJPAConfiguration conf, PluginListValue pluginVal)Initializes all providers defined for the specified configuration.voidmanageProvider(InstrumentationProvider provider)Make a provider managed.voidstart(InstrumentationLevel level, Object context)Starts all providers at a specific level and contextvoidstop(InstrumentationLevel level, Object context)Stops all providers at a specific level and context
-
-
-
Field Detail
-
_providers
public Set<InstrumentationProvider> _providers
-
-
Method Detail
-
initialize
public void initialize(OpenJPAConfiguration conf, PluginListValue pluginVal)
Initializes all providers defined for the specified configuration.- Specified by:
initializein interfaceInstrumentationManager- Parameters:
conf- the configuration to use for initializationpluginVal- one or more providers as supplied via plugin list value
-
manageProvider
public void manageProvider(InstrumentationProvider provider)
Make a provider managed. This will bind its instrumentation to InstrumentationLevel type events (factory create/close, broker create/close).- Specified by:
manageProviderin interfaceInstrumentationManager- Parameters:
provider- the instrumentation provider
-
getProviders
public Set<InstrumentationProvider> getProviders()
Returns all providers as an unmodifiable set- Specified by:
getProvidersin interfaceInstrumentationManager- Returns:
- all providers managed by this manager
-
start
public void start(InstrumentationLevel level, Object context)
Starts all providers at a specific level and context- Specified by:
startin interfaceInstrumentationManager- Parameters:
level- instrumentation levelcontext- instrumentation context (broker, factory, config,...)
-
stop
public void stop(InstrumentationLevel level, Object context)
Stops all providers at a specific level and context- Specified by:
stopin interfaceInstrumentationManagercontext- instrumentation context (broker, factory, config,...)
-
-