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 |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
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) |
void |
deactivate(ComponentContext context)
Deactivates the component.
|
protected void |
install() |
protected static void |
unbind(DefaultMonitorComponent.ServerInstance instance) |
protected void |
uninstall() |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
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 activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextprotected 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 © 2016 Nuxeo SA. All rights reserved.