Package com.espertech.esper.client.metric

Examples of com.espertech.esper.client.metric.EngineMetric


    public void execute(MetricExecutionContext context)
    {
        long inputCount = context.getServices().getFilterService().getNumEventsEvaluated();
        long schedDepth = context.getServices().getSchedulingService().getScheduleHandleCount();
        long deltaInputCount = lastMetric == null ? inputCount : inputCount - lastMetric.getInputCount();
        EngineMetric metric = new EngineMetric(engineURI, metricScheduleService.getCurrentTime(), inputCount, deltaInputCount, schedDepth);
        lastMetric = metric;
        metricEventRouter.route(metric);
        metricScheduleService.add(interval, this);       
    }
View Full Code Here

TOP

Related Classes of com.espertech.esper.client.metric.EngineMetric

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.