java.lang.Object
com.espertech.esper.common.internal.metrics.stmtmetrics.MetricExecEngine
All Implemented Interfaces:
MetricExec

public class MetricExecEngine extends Object implements MetricExec
Metrics execution producing runtime metric events.
  • Constructor Details

    • MetricExecEngine

      public MetricExecEngine(MetricEventRouter metricEventRouter, String runtimeURI, MetricScheduleService metricScheduleService, long interval)
      Ctor.
      Parameters:
      metricEventRouter - for routing metric events
      runtimeURI - runtime URI
      metricScheduleService - for scheduling a new execution
      interval - for rescheduling the execution
  • Method Details

    • execute

      public void execute(MetricExecutionContext context)
      Description copied from interface: MetricExec
      Execute the production of metric events.
      Specified by:
      execute in interface MetricExec
      Parameters:
      context - provides services and scheduling
    • getInterval

      public long getInterval()
      Returns reporting interval.
      Returns:
      reporting interval