Class InstrumentationManagerImpl
java.lang.Object
org.apache.openjpa.instrumentation.InstrumentationManagerImpl
- All Implemented Interfaces:
InstrumentationManager
,Closeable
An implementation of an instrumentation manager.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Stops all providersReturns all providers as an unmodifiable setvoid
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 contextvoid
stop
(InstrumentationLevel level, Object context) Stops all providers at a specific level and context
-
Field Details
-
_providers
-
-
Constructor Details
-
InstrumentationManagerImpl
public InstrumentationManagerImpl()
-
-
Method Details
-
initialize
Initializes all providers defined for the specified configuration.- Specified by:
initialize
in interfaceInstrumentationManager
- Parameters:
conf
- the configuration to use for initializationpluginVal
- one or more providers as supplied via plugin list value
-
manageProvider
Make a provider managed. This will bind its instrumentation to InstrumentationLevel type events (factory create/close, broker create/close).- Specified by:
manageProvider
in interfaceInstrumentationManager
- Parameters:
provider
- the instrumentation provider
-
getProviders
Returns all providers as an unmodifiable set- Specified by:
getProviders
in interfaceInstrumentationManager
- Returns:
- all providers managed by this manager
-
start
Starts all providers at a specific level and context- Specified by:
start
in interfaceInstrumentationManager
- Parameters:
level
- instrumentation levelcontext
- instrumentation context (broker, factory, config,...)
-
stop
Stops all providers at a specific level and context- Specified by:
stop
in interfaceInstrumentationManager
context
- instrumentation context (broker, factory, config,...)
-
close
Stops all providers
-