com.espertech.esper.epl.metric
Class MetricExecEngine

java.lang.Object
  extended by com.espertech.esper.epl.metric.MetricExecEngine
All Implemented Interfaces:
MetricExec

public class MetricExecEngine
extends java.lang.Object
implements MetricExec

Metrics execution producing engine metric events.


Constructor Summary
MetricExecEngine(MetricEventRouter metricEventRouter, java.lang.String engineURI, MetricScheduleService metricScheduleService, long interval)
          Ctor.
 
Method Summary
 void execute(MetricExecutionContext context)
          Execute the production of metric events.
 long getInterval()
          Returns reporting interval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricExecEngine

public MetricExecEngine(MetricEventRouter metricEventRouter,
                        java.lang.String engineURI,
                        MetricScheduleService metricScheduleService,
                        long interval)
Ctor.

Parameters:
metricEventRouter - for routing metric events
engineURI - engine uri
metricScheduleService - for scheduling a new execution
interval - for rescheduling the execution
Method Detail

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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com