Examples of MetricsPersistenceOptimizer


Examples of com.rackspacecloud.blueflood.rollup.MetricsPersistenceOptimizer


    private boolean shouldPersist(Metric metric) {
        try {
            final DataType metricType = metric.getDataType();
            final MetricsPersistenceOptimizer optimizer =
                    MetricsPersistenceOptimizerFactory.getOptimizer(metricType);

            return optimizer.shouldPersist(metric);
        } catch (Exception e) {
            // If we hit any exception, just persist the metric
            return true;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.