Examples of SyncManager


Examples of org.apache.jackrabbit.oak.spi.security.authentication.external.SyncManager

        String syncHandlerName = options.getConfigValue(PARAM_SYNC_HANDLER_NAME, "");
        if (syncHandlerName.length() == 0) {
            log.error("External login module needs SyncHandler name. Will not be used for login.");
        } else {
            SyncManager syncMgr = WhiteboardUtils.getService(whiteboard, SyncManager.class);
            if (syncMgr == null) {
                log.error("External login module needs SyncManager. Will not be used for login.");
            } else {
                syncHandler = syncMgr.getSyncHandler(syncHandlerName);
                if (syncHandler == null) {
                    log.error("No SyncHandler found with name {}. Will not be used for login.", syncHandlerName);
                }
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authentication.external.SyncManager

        String syncHandlerName = options.getConfigValue(PARAM_SYNC_HANDLER_NAME, "");
        if (syncHandlerName.length() == 0) {
            log.error("External login module needs SyncHandler name. Will not be used for login.");
        } else {
            SyncManager syncMgr = WhiteboardUtils.getService(whiteboard, SyncManager.class);
            if (syncMgr == null) {
                log.error("External login module needs SyncManager. Will not be used for login.");
            } else {
                syncHandler = syncMgr.getSyncHandler(syncHandlerName);
                if (syncHandler == null) {
                    log.error("No SyncHandler found with name {}. Will not be used for login.", syncHandlerName);
                }
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authentication.external.SyncManager

        String syncHandlerName = options.getConfigValue(PARAM_SYNC_HANDLER_NAME, "");
        if (syncHandlerName.length() == 0) {
            log.error("External login module needs SyncHandler name. Will not be used for login.");
        } else {
            SyncManager syncMgr = WhiteboardUtils.getService(whiteboard, SyncManager.class);
            if (syncMgr == null) {
                log.error("External login module needs SyncManager. Will not be used for login.");
            } else {
                syncHandler = syncMgr.getSyncHandler(syncHandlerName);
                if (syncHandler == null) {
                    log.error("No SyncHandler found with name {}. Will not be used for login.", syncHandlerName);
                }
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authentication.external.SyncManager

        String syncHandlerName = options.getConfigValue(PARAM_SYNC_HANDLER_NAME, "");
        if (syncHandlerName.length() == 0) {
            log.error("External login module needs SyncHandler name. Will not be used for login.");
        } else {
            SyncManager syncMgr = WhiteboardUtils.getService(whiteboard, SyncManager.class);
            if (syncMgr == null) {
                log.error("External login module needs SyncManager. Will not be used for login.");
            } else {
                syncHandler = syncMgr.getSyncHandler(syncHandlerName);
                if (syncHandler == null) {
                    log.error("No SyncHandler found with name {}. Will not be used for login.", syncHandlerName);
                }
            }
        }
View Full Code Here

Examples of org.sdnplatform.sync.internal.SyncManager

        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

Examples of org.sdnplatform.sync.internal.SyncManager

    @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

Examples of org.sdnplatform.sync.internal.SyncManager

        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

Examples of org.sdnplatform.sync.internal.SyncManager

        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

Examples of org.sdnplatform.sync.internal.SyncManager

        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

Examples of org.sdnplatform.sync.internal.SyncManager

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