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
public class DefaultMonitorComponent extends DefaultComponent
Component used to install/uninstall the monitors (transaction and connections).- Since:
- 5.6
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultMonitorComponent.ServerInstance
-
Field Summary
Fields Modifier and Type Field Description protected CoreSessionMonitor
coreSessionMonitor
protected boolean
installed
protected Log
log
protected Map<String,ConnectionPoolMonitor>
poolConnectionMonitors
protected TransactionMonitor
transactionMonitor
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description DefaultMonitorComponent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
activateRepository(String repositoryName)
Deprecated.since 11.1, unusedprotected static DefaultMonitorComponent.ServerInstance
bind(Class<?> itf, Object managed)
protected static DefaultMonitorComponent.ServerInstance
bind(Class<?> itf, Object managed, String name)
protected static DefaultMonitorComponent.ServerInstance
bind(Object managed)
protected static DefaultMonitorComponent.ServerInstance
bind(Object managed, String name)
int
getApplicationStartedOrder()
The component notification order forComponent.applicationStarted(org.nuxeo.runtime.model.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
uninstall()
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted
-
-
-
-
Field Detail
-
log
protected final Log log
-
coreSessionMonitor
protected CoreSessionMonitor coreSessionMonitor
-
transactionMonitor
protected TransactionMonitor transactionMonitor
-
poolConnectionMonitors
protected Map<String,ConnectionPoolMonitor> poolConnectionMonitors
-
installed
protected boolean installed
-
-
Method Detail
-
start
public void start(ComponentContext context)
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.applicationStarted(org.nuxeo.runtime.model.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
public void stop(ComponentContext context)
Description copied from interface:Component
Stop the component.- Specified by:
stop
in interfaceComponent
- Overrides:
stop
in classDefaultComponent
-
install
protected void install()
-
activateRepository
@Deprecated protected void activateRepository(String repositoryName)
Deprecated.since 11.1, unusedDoes nothing.
-
uninstall
protected void uninstall()
-
bind
protected static DefaultMonitorComponent.ServerInstance bind(Object managed)
-
bind
protected static DefaultMonitorComponent.ServerInstance bind(Class<?> itf, Object managed)
-
bind
protected static DefaultMonitorComponent.ServerInstance bind(Object managed, String name)
-
bind
protected static DefaultMonitorComponent.ServerInstance bind(Class<?> itf, Object managed, String name)
-
unbind
protected static void unbind(DefaultMonitorComponent.ServerInstance instance)
-
-