Class DefaultMonitorComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.core.management.jtajca.internal.DefaultMonitorComponent
- All Implemented Interfaces:
Adaptable
,Component
,Extensible
,TimestampedService
Component used to install/uninstall the monitors (transaction and connections).
- Since:
- 5.6
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected CoreSessionMonitor
protected boolean
protected Map<String,
ConnectionPoolMonitor> protected TransactionMonitor
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
activateRepository
(String repositoryName) Deprecated.since 11.1, unusedprotected static DefaultMonitorComponent.ServerInstance
protected static DefaultMonitorComponent.ServerInstance
protected static DefaultMonitorComponent.ServerInstance
protected static DefaultMonitorComponent.ServerInstance
int
The component notification order forComponent.start(ComponentContext)
.protected void
install()
void
start
(ComponentContext context) Start the component.void
stop
(ComponentContext context) Stop the component.protected static void
unbind
(DefaultMonitorComponent.ServerInstance instance) protected void
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtension
-
Field Details
-
coreSessionMonitor
-
transactionMonitor
-
poolConnectionMonitors
-
installed
protected boolean installed
-
-
Constructor Details
-
DefaultMonitorComponent
public DefaultMonitorComponent()
-
-
Method Details
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:Component
The component notification order forComponent.start(ComponentContext)
.Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
- Returns:
- the order, 1000 by default
-
stop
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
-
install
protected void install() -
activateRepository
Deprecated.since 11.1, unusedDoes nothing. -
uninstall
protected void uninstall() -
bind
-
bind
-
bind
-
bind
protected static DefaultMonitorComponent.ServerInstance bind(Class<?> itf, Object managed, String name) -
unbind
-