Package org.apache.sirona.store.counter

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


*/
public class ExtDataStoreFactory extends DelegateDataStoreFactory
{
    public ExtDataStoreFactory() {
        super(
            IoCs.processInstance( new InMemoryCounterDataStore() ),
            IoCs.processInstance(new InMemoryGaugeDataStore()),
            IoCs.processInstance(new PeriodicNodeStatusDataStore()),
            IoCs.processInstance( new ExtendedInMemoryPathTrackingDataStore() ));
    }
View Full Code Here


public class PullDataStoreFactory
    extends DelegateDataStoreFactory
{
    public PullDataStoreFactory()
    {
        super( new InMemoryCounterDataStore(), //
               new InMemoryGaugeDataStore(), //
               new EmptyStatuses(), //
               new InMemoryPathTrackingDataStore() );
    }
View Full Code Here

    private final Cube cube;
    private final boolean clearAfterCollect;

    public PullRepository() {
        super(new InMemoryCounterDataStore(), new GaugeDataStoreAdapter(), new EmptyStatuses(), new InMemoryPathTrackingDataStore());
        cube = IoCs.findOrCreateInstance(CubeBuilder.class).build();
        clearAfterCollect = Configuration.is(Configuration.CONFIG_PROPERTY_PREFIX + "pull.counter.clearOnCollect", false);
    }
View Full Code Here

import org.apache.sirona.store.tracking.InMemoryPathTrackingDataStore;

public class DefaultDataStoreFactory extends DelegateDataStoreFactory {
    public DefaultDataStoreFactory() {
        super(
            IoCs.processInstance(new InMemoryCounterDataStore()),
            IoCs.processInstance(new InMemoryGaugeDataStore()),
            IoCs.processInstance(new PeriodicNodeStatusDataStore()),
            IoCs.processInstance( new InMemoryPathTrackingDataStore() ));
    }
View Full Code Here

    private String mode;

    @Test
    public void defaultCounter() throws Exception {
        mode = "RentrantLockCounter";
        counter = new DefaultCounter(new Counter.Key(Role.FAILURES, mode), new InMemoryCounterDataStore());
        runConcurrent();
    }
View Full Code Here

import org.apache.sirona.store.status.PeriodicNodeStatusDataStore;

public class DefaultDataStoreFactory extends DelegateDataStoreFactory {
    public DefaultDataStoreFactory() {
        super(
            IoCs.processInstance(new InMemoryCounterDataStore()),
            IoCs.processInstance(new InMemoryGaugeDataStore()),
            IoCs.processInstance(new PeriodicNodeStatusDataStore()));
    }
View Full Code Here

import org.apache.sirona.store.gauge.InMemoryGaugeDataStore;
import org.apache.sirona.store.status.EmptyStatuses;

public class PullDataStoreFactory extends DelegateDataStoreFactory {
    public PullDataStoreFactory() {
        super(new InMemoryCounterDataStore(), new InMemoryGaugeDataStore(), new EmptyStatuses());
    }
View Full Code Here

    private final Cube cube;
    private final boolean clearAfterCollect;

    public PullRepository() {
        super(new InMemoryCounterDataStore(), new GaugeDataStoreAdapter(), new EmptyStatuses());
        cube = IoCs.findOrCreateInstance(CubeBuilder.class).build();
        clearAfterCollect = Configuration.is(Configuration.CONFIG_PROPERTY_PREFIX + "pull.counter.clearOnCollect", false);
    }
View Full Code Here

TOP

Related Classes of org.apache.sirona.store.counter.InMemoryCounterDataStore

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.