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 classDefaultMonitorComponent.ServerInstance
-
Field Summary
Fields Modifier and Type Field Description protected CoreSessionMonitorcoreSessionMonitorprotected booleaninstalledprotected Loglogprotected Map<String,ConnectionPoolMonitor>poolConnectionMonitorsprotected TransactionMonitortransactionMonitor-
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 voidactivateRepository(String repositoryName)Deprecated.since 11.1, unusedprotected static DefaultMonitorComponent.ServerInstancebind(Class<?> itf, Object managed)protected static DefaultMonitorComponent.ServerInstancebind(Class<?> itf, Object managed, String name)protected static DefaultMonitorComponent.ServerInstancebind(Object managed)protected static DefaultMonitorComponent.ServerInstancebind(Object managed, String name)intgetApplicationStartedOrder()The component notification order forComponent.applicationStarted(org.nuxeo.runtime.model.ComponentContext).protected voidinstall()voidstart(ComponentContext context)Start the component.voidstop(ComponentContext context)Stop the component.protected static voidunbind(DefaultMonitorComponent.ServerInstance instance)protected voiduninstall()-
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
-
coreSessionMonitor
protected CoreSessionMonitor coreSessionMonitor
-
transactionMonitor
protected TransactionMonitor transactionMonitor
-
poolConnectionMonitors
protected Map<String,ConnectionPoolMonitor> poolConnectionMonitors
-
installed
protected boolean installed
-
-
Constructor Detail
-
DefaultMonitorComponent
public DefaultMonitorComponent()
-
-
Method Detail
-
start
public void start(ComponentContext context)
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
getApplicationStartedOrder
public int getApplicationStartedOrder()
Description copied from interface:ComponentThe 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:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin 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)
-
-