Package org.sdnplatform.sync.internal

Examples of org.sdnplatform.sync.internal.SyncManager$UpdateConfigTask


        nodes = new ArrayList<Node>();
        nodes.add(new Node("localhost", 40101, (short)1, (short)1));
        nodeString = mapper.writeValueAsString(nodes);
       
        tp = new ThreadPool();
        syncManager = new SyncManager();
       
        FloodlightModuleContext fmc = new FloodlightModuleContext();
        fmc.addService(IThreadPoolService.class, tp);
        fmc.addService(IDebugCounterService.class, new NullDebugCounter());
       
View Full Code Here


    @Before
    public void setUp() throws Exception {
        FloodlightModuleContext fmc = new FloodlightModuleContext();
        tp = new ThreadPool();

        syncManager = new SyncManager();
        remoteSyncManager = new RemoteSyncManager();

        fmc.addService(IThreadPoolService.class, tp);
        fmc.addService(IDebugCounterService.class, new NullDebugCounter());
        fmc.addConfigParam(syncManager, "persistenceEnabled", "false");
View Full Code Here

        nodes.add(new Node("localhost", 40104, (short)4, (short)2));
        nodeString = mapper.writeValueAsString(nodes);

        for(int i = 0; i < 4; i++) {
            moduleContexts[i] = new FloodlightModuleContext();
            syncManagers[i] = new SyncManager();
            setupSyncManager(moduleContexts[i], syncManagers[i], nodes.get(i));
        }
    }
View Full Code Here

        for (int i = 0; i < 500; i++) {
            client2.put("largetest" + i, "largetestvalue");
        }
       
        logger.info("Initializing server ID 1");
        syncManagers[0] = new SyncManager();
        setupSyncManager(moduleContexts[0], syncManagers[0], nodes.get(0));

        waitForFullMesh(2000);

        client0 = syncManagers[0].getStoreClient("global",
View Full Code Here

        SyncManager[] sms = Arrays.copyOf(syncManagers,
                                          syncManagers.length + 1);
        FloodlightModuleContext[] fmcs =
                Arrays.copyOf(moduleContexts,
                              moduleContexts.length + 1);
        sms[syncManagers.length] = new SyncManager();
        fmcs[moduleContexts.length] = new FloodlightModuleContext();
        nodeString = mapper.writeValueAsString(nodes);

        setupSyncManager(fmcs[moduleContexts.length],
                         sms[syncManagers.length],
View Full Code Here

        waitForValue(client1, "key", "value", 2000, "client1");
       
        nodes.remove(0);
        nodeString = mapper.writeValueAsString(nodes);

        SyncManager oldNode = syncManagers[0];
        syncManagers = Arrays.copyOfRange(syncManagers, 1, 4);
        moduleContexts = Arrays.copyOfRange(moduleContexts, 1, 4);

        try {
            for(int i = 0; i < syncManagers.length; i++) {
                moduleContexts[i].addConfigParam(syncManagers[i],
                                                 "nodes", nodeString);
                syncManagers[i].doUpdateConfiguration();
                waitForConnection(syncManagers[i], (short)1, false, 2000);
            }
        } finally {
            oldNode.shutdown();
        }
        waitForFullMesh(2000);

        client1.put("newkey", "newvalue");
        waitForValue(client2, "key", "value", 2000, "client4");
View Full Code Here

        tp.init(null);
        tp.startUp(null);
        nodes = new ArrayList<Node>();
        nodes.add(new Node("localhost", 40101, (short)1, (short)1));
        nodeString = mapper.writeValueAsString(nodes);
        SyncManager sm = new SyncManager();
        FloodlightModuleContext fmc = new FloodlightModuleContext();
        setupSyncManager(fmc, sm, nodes.get(0));
        fmc.addService(ISyncService.class, sm);
        SyncTorture st = new SyncTorture();
        //fmc.addConfigParam(st, "iterations", "1");
View Full Code Here

TOP

Related Classes of org.sdnplatform.sync.internal.SyncManager$UpdateConfigTask

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.