Class StandbyComponent

java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.core.management.standby.StandbyComponent
All Implemented Interfaces:
Adaptable, Component, Extensible, TimestampedService

public class StandbyComponent extends DefaultComponent
Since:
9.2
  • Field Details

    • command

      protected final StandbyCommand 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

      protected final ThreadLocal<io.dropwizard.metrics5.Timer.Context> holder
    • threadsListener

      protected final ThreadEventListener threadsListener
  • Constructor Details

    • StandbyComponent

      public StandbyComponent()
  • Method Details

    • activate

      public void activate(ComponentContext context)
      Description copied from interface: Component
      Activates the component.

      This method is called by the runtime when a component is activated.

      Specified by:
      activate in interface Component
      Overrides:
      activate in class DefaultComponent
      Parameters:
      context - the runtime context
    • deactivate

      public void deactivate(ComponentContext context)
      Description copied from interface: Component
      Deactivates the component.

      This method is called by the runtime when a component is deactivated.

      Specified by:
      deactivate in interface Component
      Overrides:
      deactivate in class DefaultComponent
      Parameters:
      context - the runtime context