Examples of AggregatedCollectorCounter


Examples of org.apache.sirona.store.counter.AggregatedCollectorCounter

        final Map<String, LeafCollectorCounter> counters = new HashMap<String, LeafCollectorCounter>();
        for (final String marker : markers()) {
            final LeafCollectorCounter c = getOrCreateCounter(key, marker);
            counters.put(marker, c);
        }
        return new AggregatedCollectorCounter(key, counters);
    }
View Full Code Here

Examples of org.apache.sirona.store.counter.AggregatedCollectorCounter

            }
        }

        final Collection<Counter> c = new LinkedList<Counter>();
        for (final Map.Entry<Counter.Key, Map<String, LeafCollectorCounter>> entry : counters.entrySet()) {
            c.add(new AggregatedCollectorCounter(entry.getKey(), entry.getValue()));
        }

        return c;
    }
View Full Code Here

Examples of org.apache.sirona.store.counter.AggregatedCollectorCounter

        final CassandraLeafCounter counter2 = new CassandraLeafCounter(key, store, "node2").sync(new M2AwareStatisticalSummary(3, 4, 4, 4, 4, 4, 4), 2);

        new CassandraCollectorCounterDataStore().getOrCreateCounter(key, "node1").update(counter1.getStatistics(), counter1.getMaxConcurrency());
        new CassandraCollectorCounterDataStore().getOrCreateCounter(key, "node2").update(counter2.getStatistics(), counter2.getMaxConcurrency());

        final AggregatedCollectorCounter aggregation = new CassandraCollectorCounterDataStore().getOrCreateCounter(key);
        assertEquals(3, aggregation.getMaxConcurrency());
        assertEquals(1., aggregation.getMean(), 0.);
        assertEquals(1., aggregation.getMin(), 0.);
        assertEquals(5., aggregation.getHits(), 0.);
        assertEquals(2.05, aggregation.getVariance(), 0.);
        assertEquals(4., aggregation.getMax(), 0.);
        assertEquals(5., aggregation.getSum(), 0.);
        assertEquals(8.2, aggregation.getSecondMoment(), 0.);
    }
View Full Code Here

Examples of org.apache.sirona.store.counter.AggregatedCollectorCounter

        final Map<String, LeafCollectorCounter> counters = new HashMap<String, LeafCollectorCounter>();
        for (final String marker : markers()) {
            final LeafCollectorCounter c = getOrCreateCounter(key, marker);
            counters.put(marker, c);
        }
        return new AggregatedCollectorCounter(key, counters);
    }
View Full Code Here

Examples of org.apache.sirona.store.counter.AggregatedCollectorCounter

            }
        }

        final Collection<Counter> c = new LinkedList<Counter>();
        for (final Map.Entry<Counter.Key, Map<String, LeafCollectorCounter>> entry : counters.entrySet()) {
            c.add(new AggregatedCollectorCounter(entry.getKey(), entry.getValue()));
        }

        return c;
    }
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.