Package org.apache.sirona.store.gauge

Examples of org.apache.sirona.store.gauge.DelegatedCollectorGaugeDataStore


    extends DelegateDataStoreFactory
{
    public CollectorDataStoreFactory()
    {
        super( new InMemoryCollectorCounterStore(), //
               new DelegatedCollectorGaugeDataStore(), //
               new InMemoryCollectorNodeStatusDataStore(), //
               new DelegatedCollectorPathTrackingDataStore() );
    }
View Full Code Here


    @Test
    public void gaugeStore() {
        final Role role = new Role("gauge", Unit.UNARY);

        final CollectorGaugeDataStore store = new DelegatedCollectorGaugeDataStore();
        store.addToGauge(role, 1234, 5678, "client1");
        store.addToGauge(role, 987, 654, "client2");

        final GaugeValuesRequest request = new GaugeValuesRequest(0, Integer.MAX_VALUE, role);
        final Map<Long, Double> result = store.getGaugeValues(request);
        final Map<Long, Double> client1 = store.getGaugeValues(request, "client1");
        final Map<Long, Double> client2 = store.getGaugeValues(request, "client2");

        assertNotNull(result);
        assertNotNull(client1);
        assertNotNull(client2);
View Full Code Here

import org.apache.sirona.store.status.InMemoryCollectorNodeStatusDataStore;
import org.apache.sirona.store.DelegateDataStoreFactory;

public class CollectorDataStoreFactory extends DelegateDataStoreFactory {
    public CollectorDataStoreFactory() {
        super(new InMemoryCollectorCounterStore(), new DelegatedCollectorGaugeDataStore(), new InMemoryCollectorNodeStatusDataStore());
    }
View Full Code Here

TOP

Related Classes of org.apache.sirona.store.gauge.DelegatedCollectorGaugeDataStore

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.