public class StandbyComponent extends DefaultComponent
Modifier and Type | Field and Description |
---|---|
protected com.codahale.metrics.Counter |
active |
protected StandbyCommand |
command |
protected ThreadLocal<com.codahale.metrics.Timer.Context> |
holder |
protected com.codahale.metrics.Meter |
meter |
protected ThreadEventListener |
threadsListener |
protected com.codahale.metrics.Timer |
timer |
lastModified, name
Constructor and Description |
---|
StandbyComponent() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected final StandbyCommand command
protected final com.codahale.metrics.Counter active
protected final com.codahale.metrics.Meter meter
protected final com.codahale.metrics.Timer timer
protected final ThreadLocal<com.codahale.metrics.Timer.Context> holder
protected final ThreadEventListener threadsListener
public StandbyComponent()
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 contextCopyright © 2019 Nuxeo. All rights reserved.