Examples of markers()


Examples of org.apache.sirona.store.counter.CollectorCounterStore.markers()

        // note: the input data are maybe not that consistent (min > max) but this test just checks computations
        final CollectorCounterStore store = new InMemoryCollectorCounterStore();
        store.update(key, "client1", new M2AwareStatisticalSummary(1, 2, 5, 0, 10, 6, 7), 4);
        store.update(key, "client2", new M2AwareStatisticalSummary(2, 4, 8, 1, 15, 9, 5), 2);

        assertEquals(2, store.markers().size());
        assertTrue(store.markers().contains("client1"));
        assertTrue(store.markers().contains("client2"));

        final Counter counter1 = store.getCounters("client1").iterator().next();
        assertEquals(4, counter1.getMaxConcurrency());
View Full Code Here

Examples of org.apache.sirona.store.counter.CollectorCounterStore.markers()

        final CollectorCounterStore store = new InMemoryCollectorCounterStore();
        store.update(key, "client1", new M2AwareStatisticalSummary(1, 2, 5, 0, 10, 6, 7), 4);
        store.update(key, "client2", new M2AwareStatisticalSummary(2, 4, 8, 1, 15, 9, 5), 2);

        assertEquals(2, store.markers().size());
        assertTrue(store.markers().contains("client1"));
        assertTrue(store.markers().contains("client2"));

        final Counter counter1 = store.getCounters("client1").iterator().next();
        assertEquals(4, counter1.getMaxConcurrency());
        assertEquals(4, counter1.currentConcurrency().get());
View Full Code Here

Examples of org.apache.sirona.store.counter.CollectorCounterStore.markers()

        store.update(key, "client1", new M2AwareStatisticalSummary(1, 2, 5, 0, 10, 6, 7), 4);
        store.update(key, "client2", new M2AwareStatisticalSummary(2, 4, 8, 1, 15, 9, 5), 2);

        assertEquals(2, store.markers().size());
        assertTrue(store.markers().contains("client1"));
        assertTrue(store.markers().contains("client2"));

        final Counter counter1 = store.getCounters("client1").iterator().next();
        assertEquals(4, counter1.getMaxConcurrency());
        assertEquals(4, counter1.currentConcurrency().get());
        assertEquals(5, counter1.getHits());
View Full Code Here

Examples of org.apache.sirona.store.counter.InMemoryCollectorCounterStore.markers()

        // note: the input data are maybe not that consistent (min > max) but this test just checks computations
        final CollectorCounterStore store = new InMemoryCollectorCounterStore();
        store.update(key, "client1", new M2AwareStatisticalSummary(1, 2, 5, 0, 10, 6, 7), 4);
        store.update(key, "client2", new M2AwareStatisticalSummary(2, 4, 8, 1, 15, 9, 5), 2);

        assertEquals(2, store.markers().size());
        assertTrue(store.markers().contains("client1"));
        assertTrue(store.markers().contains("client2"));

        final Counter counter1 = store.getCounters("client1").iterator().next();
        assertEquals(4, counter1.getMaxConcurrency());
View Full Code Here

Examples of org.apache.sirona.store.counter.InMemoryCollectorCounterStore.markers()

        final CollectorCounterStore store = new InMemoryCollectorCounterStore();
        store.update(key, "client1", new M2AwareStatisticalSummary(1, 2, 5, 0, 10, 6, 7), 4);
        store.update(key, "client2", new M2AwareStatisticalSummary(2, 4, 8, 1, 15, 9, 5), 2);

        assertEquals(2, store.markers().size());
        assertTrue(store.markers().contains("client1"));
        assertTrue(store.markers().contains("client2"));

        final Counter counter1 = store.getCounters("client1").iterator().next();
        assertEquals(4, counter1.getMaxConcurrency());
        assertEquals(4, counter1.currentConcurrency().get());
View Full Code Here

Examples of org.apache.sirona.store.counter.InMemoryCollectorCounterStore.markers()

        store.update(key, "client1", new M2AwareStatisticalSummary(1, 2, 5, 0, 10, 6, 7), 4);
        store.update(key, "client2", new M2AwareStatisticalSummary(2, 4, 8, 1, 15, 9, 5), 2);

        assertEquals(2, store.markers().size());
        assertTrue(store.markers().contains("client1"));
        assertTrue(store.markers().contains("client2"));

        final Counter counter1 = store.getCounters("client1").iterator().next();
        assertEquals(4, counter1.getMaxConcurrency());
        assertEquals(4, counter1.currentConcurrency().get());
        assertEquals(5, counter1.getHits());
View Full Code Here

Examples of org.apache.sirona.store.gauge.CollectorGaugeDataStore.markers()

            final SortedMap<Long, Double> gaugeValues = Repository.INSTANCE.getGaugeValues(start, end, role);
            return "[" + Graphs.toJson(label, Graphs.DEFAULT_COLOR, aggregate(gaugeValues)) + "]";
        }

        final CollectorGaugeDataStore gaugeStore = IoCs.findOrCreateInstance(CollectorGaugeDataStore.class);
        final Iterator<String> markers = gaugeStore.markers().iterator();
        final StringBuilder builder = new StringBuilder("[");
        final Iterator<String> colors = COLORS.iterator();
        while (markers.hasNext()) {
            final String marker = markers.next();
            final String color;
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.