Class StandbyComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.core.management.standby.StandbyComponent
- All Implemented Interfaces:
Adaptable,Component,Extensible,TimestampedService
- Since:
- 9.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.dropwizard.metrics5.Counterprotected final StandbyCommandprotected final ThreadLocal<io.dropwizard.metrics5.Timer.Context> protected final io.dropwizard.metrics5.Meterprotected io.dropwizard.metrics5.MetricRegistryprotected final ThreadEventListenerprotected final io.dropwizard.metrics5.TimerFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(ComponentContext context) Activates the component.voiddeactivate(ComponentContext context) Deactivates the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
command
-
registry
protected io.dropwizard.metrics5.MetricRegistry registry -
active
protected final io.dropwizard.metrics5.Counter active -
meter
protected final io.dropwizard.metrics5.Meter meter -
timer
protected final io.dropwizard.metrics5.Timer timer -
holder
-
threadsListener
-
-
Constructor Details
-
StandbyComponent
public StandbyComponent()
-
-
Method Details
-
activate
Description copied from interface:ComponentActivates the component.This method is called by the runtime when a component is activated.
- Specified by:
activatein interfaceComponent- Overrides:
activatein classDefaultComponent- Parameters:
context- the runtime context
-
deactivate
Description copied from interface:ComponentDeactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivatein interfaceComponent- Overrides:
deactivatein classDefaultComponent- Parameters:
context- the runtime context
-