public class DefaultMonitorComponent extends DefaultComponent
Modifier and Type | Class and Description |
---|---|
static class |
DefaultMonitorComponent.ServerInstance |
Modifier and Type | Field and Description |
---|---|
protected CoreSessionMonitor |
coreSessionMonitor |
protected boolean |
installed |
protected org.apache.commons.logging.Log |
log |
protected Map<String,ConnectionPoolMonitor> |
poolConnectionMonitors |
protected TransactionMonitor |
transactionMonitor |
lastModified
Constructor and Description |
---|
DefaultMonitorComponent() |
Modifier and Type | Method and Description |
---|---|
protected void |
activateRepository(String repositoryName)
Make sure we open the repository, to initialize its connection manager.
|
protected 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 for
Component.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() |
activate, deactivate, getAdapter, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted
protected final org.apache.commons.logging.Log log
protected CoreSessionMonitor coreSessionMonitor
protected TransactionMonitor transactionMonitor
protected Map<String,ConnectionPoolMonitor> poolConnectionMonitors
protected boolean installed
public DefaultMonitorComponent()
public void start(ComponentContext context)
Component
start
in interface Component
start
in class DefaultComponent
public int getApplicationStartedOrder()
Component
Component.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.
public void stop(ComponentContext context)
Component
stop
in interface Component
stop
in class DefaultComponent
protected void install()
protected void activateRepository(String repositoryName)
protected void uninstall()
protected static DefaultMonitorComponent.ServerInstance bind(Object managed)
protected static DefaultMonitorComponent.ServerInstance bind(Class<?> itf, Object managed)
protected static DefaultMonitorComponent.ServerInstance bind(Object managed, String name)
protected static DefaultMonitorComponent.ServerInstance bind(Class<?> itf, Object managed, String name)
protected static void unbind(DefaultMonitorComponent.ServerInstance instance)
Copyright © 2018 Nuxeo. All rights reserved.