Package com.rackspacecloud.blueflood.types

Examples of com.rackspacecloud.blueflood.types.MetricsCollection


        if (containerMetrics == null || containerMetrics.isEmpty()) {
            log.warn(ctx.getChannel().getRemoteAddress() + " No valid metrics");
            sendResponse(ctx, request, "No valid metrics", HttpResponseStatus.BAD_REQUEST);
        }

        final MetricsCollection collection = new MetricsCollection();
        collection.add(new ArrayList<IMetric>(containerMetrics));
        final Timer.Context persistingTimerContext = persistingTimer.time();
        try {
            ListenableFuture<List<Boolean>> futures = processorChain.apply(collection);
            List<Boolean> persisteds = futures.get(timeout.getValue(), timeout.getUnit());
            for (Boolean persisted : persisteds) {
View Full Code Here


    }
   
    public static class MakeCollection implements AsyncFunction<Bundle, MetricsCollection> {
        @Override
        public ListenableFuture<MetricsCollection> apply(Bundle input) throws Exception {
            MetricsCollection collection = new MetricsCollection();
            collection.add(PreaggregateConversions.buildMetricsCollection(input));
            return new NoOpFuture<MetricsCollection>(collection);
        }
View Full Code Here

TOP

Related Classes of com.rackspacecloud.blueflood.types.MetricsCollection

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.