public class DefaultMonitorComponent extends DefaultComponent
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.
|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
|
protected static ObjectInstance |
bind(Class<?> itf,
Object managed) |
protected static ObjectInstance |
bind(Class<?> itf,
Object managed,
String name) |
protected static ObjectInstance |
bind(Object managed) |
protected static ObjectInstance |
bind(Object managed,
String name) |
void |
deactivate(ComponentContext context)
Deactivates the component.
|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext) . |
protected void |
install() |
protected void |
installPoolMonitors() |
protected static void |
unbind(ObjectInstance instance) |
protected void |
uninstall() |
activate, getAdapter, 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 applicationStarted(ComponentContext context)
Component
applicationStarted
in interface Component
applicationStarted
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.
getApplicationStartedOrder
in interface Component
getApplicationStartedOrder
in class DefaultComponent
public 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 installPoolMonitors() throws LoginException
LoginException
protected void activateRepository(String repositoryName)
protected void uninstall()
protected static ObjectInstance bind(Object managed)
protected static ObjectInstance bind(Class<?> itf, Object managed)
protected static ObjectInstance bind(Object managed, String name)
protected static ObjectInstance bind(Class<?> itf, Object managed, String name)
protected static void unbind(ObjectInstance instance)
Copyright © 2015 Nuxeo SA. All rights reserved.