Class MetricExecEngine
java.lang.Object
com.espertech.esper.common.internal.metrics.stmtmetrics.MetricExecEngine
- All Implemented Interfaces:
MetricExec
Metrics execution producing runtime metric events.
-
Constructor Summary
ConstructorDescriptionMetricExecEngine
(MetricEventRouter metricEventRouter, String runtimeURI, MetricScheduleService metricScheduleService, long interval) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(MetricExecutionContext context) Execute the production of metric events.long
Returns reporting interval.
-
Constructor Details
-
MetricExecEngine
public MetricExecEngine(MetricEventRouter metricEventRouter, String runtimeURI, MetricScheduleService metricScheduleService, long interval) Ctor.- Parameters:
metricEventRouter
- for routing metric eventsruntimeURI
- runtime URImetricScheduleService
- for scheduling a new executioninterval
- for rescheduling the execution
-
-
Method Details
-
execute
Description copied from interface:MetricExec
Execute the production of metric events.- Specified by:
execute
in interfaceMetricExec
- Parameters:
context
- provides services and scheduling
-
getInterval
public long getInterval()Returns reporting interval.- Returns:
- reporting interval
-