Package org.rhq.server.metrics

Examples of org.rhq.server.metrics.RawDataInsertedCallback


        if ((data == null) || (data.isEmpty())) {
            return;
        }

        MetricsServer metricsServer = storageClientManager.getMetricsServer();
        metricsServer.addNumericData(data, new RawDataInsertedCallback() {

            private ReentrantLock lock = new ReentrantLock();

            private Set<MeasurementData> insertedData = new TreeSet<MeasurementData>(new Comparator<MeasurementData>() {
                @Override
View Full Code Here


    @Override
    public void run() {
        final Timer.Context context = metrics.batchInsertTime.time();
        final Stopwatch stopwatch = new Stopwatch().start();
        metricsServer.addNumericData(generateData(), new RawDataInsertedCallback() {
            @Override
            public void onFinish() {
                stopwatch.stop();
                log.info("Finished inserting raw data in " + stopwatch.elapsed(TimeUnit.MILLISECONDS) + " ms");
                context.stop();
View Full Code Here

TOP

Related Classes of org.rhq.server.metrics.RawDataInsertedCallback

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.