Class MetricsServiceImpl

java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.metrics.MetricsServiceImpl
All Implemented Interfaces:
MetricsService, Adaptable, Component, Extensible, TimestampedService

public class MetricsServiceImpl extends DefaultComponent implements MetricsService
  • Field Details

  • Constructor Details

    • MetricsServiceImpl

      public MetricsServiceImpl()
  • 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
    • start

      public void start(ComponentContext context)
      Description copied from interface: Component
      Start the component. This method is called after all the components were resolved and activated
      Specified by:
      start in interface Component
      Overrides:
      start in class DefaultComponent
    • stop

      public void stop(ComponentContext context)
      Description copied from interface: Component
      Stop the component.
      Specified by:
      stop in interface Component
      Overrides:
      stop in class DefaultComponent
    • metricEnabled

      protected boolean metricEnabled()
    • startReporters

      public void startReporters()
      Specified by:
      startReporters in interface MetricsService
    • stopReporters

      public void stopReporters()
      Specified by:
      stopReporters in interface MetricsService
    • updateInstrumentation

      protected void updateInstrumentation(List<MetricsConfigurationDescriptor.InstrumentDescriptor> instruments, boolean activate)
    • instrumentLog4j

      protected void instrumentLog4j(boolean activate)
    • registerTomcatGauge

      protected void registerTomcatGauge(String mbean, String attribute, io.dropwizard.metrics5.MetricRegistry registry, String name)
    • instrumentTomcat

      protected void instrumentTomcat(boolean activate)
    • instrumentJvm

      protected void instrumentJvm(boolean activate)