Package com.netflix.staash.mesh.db

Examples of com.netflix.staash.mesh.db.TopicRegistry.addEntry()


        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;
View Full Code Here


        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

    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

    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
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.