Package com.espertech.esper.client.metric

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


        StatementMetric[] metrics = context.getStatementMetricRepository().reportGroup(statementGroup);
        if (metrics != null)
        {
            for (int i = 0; i < metrics.length; i++)
            {
                StatementMetric metric = metrics[i];
                if (metric != null)
                {
                    metric.setTimestamp(timestamp);
                    metricEventRouter.route(metrics[i]);
                }
            }
        }
       
View Full Code Here


            {
                for (int i = 0; i <= currentLastElement; i++)
                {
                    if (statementNames[i] != null)
                    {
                        metrics[i] = new StatementMetric(engineURI, statementNames[i]);
                    }
                }
            }

            // remove statement ids that disappeared during the interval
View Full Code Here

     * @param index of statement
     * @return metric to modify under read lock
     */
    public StatementMetric getAddMetric(int index)
    {
        StatementMetric metric = metrics[index];
        if (metric == null)
        {
            metric = new StatementMetric(engineURI, statementNames[index]);
            metrics[index] = metric;
        }
        return metric;
    }
View Full Code Here

    {
        StatementMetricArray array = groupMetrics[handle.getGroupNum()];
        array.getRwLock().acquireReadLock();
        try
        {
            StatementMetric metric = array.getAddMetric(handle.getIndex());
            metric.addCPUTime(cpu);
            metric.addWallTime(wall);
            metric.addNumInput(numInput);
        }
        finally
        {
            array.getRwLock().releaseReadLock();
        }
View Full Code Here

    {
        StatementMetricArray array = groupMetrics[handle.getGroupNum()];
        array.getRwLock().acquireReadLock();
        try
        {
            StatementMetric metric = array.getAddMetric(handle.getIndex());
            metric.addNumOutputIStream(numIStream);
            metric.addNumOutputRStream(numRStream);
        }
        finally
        {
            array.getRwLock().releaseReadLock();
        }
View Full Code Here

TOP

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

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.