Package com.netflix.staash.mesh.db

Examples of com.netflix.staash.mesh.db.TopicRegistry


public class TestDriver {

    public static void main(String[] args) {
        final ScheduledExecutorService executor = Executors.newScheduledThreadPool(10);
       
        final TopicRegistry    topics   = new TopicRegistry(new MemoryTopicFactory());
        final InstanceRegistry registry = new InstanceRegistry();
        final ClientFactory    factory  = new MemoryClientFactory();
        final EndpointPolicy   endpointPolicy = new ChordEndpointPolicy();
       
        topics.createTopic("test");
        topics.addEntry("test"new Entry("Key1", "Value1", System.currentTimeMillis()));
        topics.addEntry("test"new Entry("Key2", "Value2", System.currentTimeMillis()));
       
        final AtomicInteger counter = new AtomicInteger();
        final int instanceCount     = 10;
        final int asgCount          = 10;
        final long asgCreateDelay   = 5;
View Full Code Here


import com.netflix.staash.mesh.seed.TopicSeed;

public class DummyTopicSeed implements TopicSeed {
    private static final String TOPIC_NAME = "test";
    public DummyTopicSeed() {
        final TopicRegistry    topics   = new TopicRegistry(new MemoryTopicFactory());
       
        topics.createTopic(TOPIC_NAME);
        topics.addEntry(TOPIC_NAME,  new Entry("Key1", "Value1", System.currentTimeMillis()));
        topics.addEntry(TOPIC_NAME,  new Entry("Key2", "Value2", System.currentTimeMillis()));
    }
View Full Code Here

TOP

Related Classes of com.netflix.staash.mesh.db.TopicRegistry

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.