Package org.sdnplatform.sync.internal.store

Examples of org.sdnplatform.sync.internal.store.Key


    @Test
    public void testBasicOneNode() throws Exception {
        AbstractSyncManager sync = syncManagers[0];
        IStoreClient<Key, TBean> testClient =
                sync.getStoreClient("global", Key.class, TBean.class);
        Key k = new Key("com.bigswitch.bigsync.internal", "test");
        TBean tb = new TBean("hello", 42);
        TBean tb2 = new TBean("hello", 84);
        TBean tb3 = new TBean("hello", 126);
       
        assertNotNull(testClient.get(k));
View Full Code Here


        IStoreClient<Key, TBean> testClient =
                sync.getStoreClient("local", Key.class, TBean.class);
       
        HashMap<Key, TBean> testMap = new HashMap<Key, TBean>();
        for (int i = 0; i < 100; i++) {
            Key k = new Key("com.bigswitch.bigsync.internal", "test" + i);
            TBean tb = new TBean("value", i);
            testMap.put(k, tb);
            testClient.put(k, tb);
        }
       
View Full Code Here

TOP

Related Classes of org.sdnplatform.sync.internal.store.Key

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.