Package org.sdnplatform.sync.internal.config.bootstrap

Examples of org.sdnplatform.sync.internal.config.bootstrap.Bootstrap


                    ArrayList<HostAndPort> hosts = new ArrayList<HostAndPort>();
                    for (String s : seeds) {
                        hosts.add(HostAndPort.fromString(s).
                                      withDefaultPort(6642));
                    }
                    Bootstrap bs = new Bootstrap(syncManager,
                                                 authScheme,
                                                 keyStorePath,
                                                 keyStorePassword);
                    bs.init();
                    try {
                        for (HostAndPort host : hosts) {
                            if (bs.bootstrap(host, localNode))
                                break;
                        }
                    } finally {
                        bs.shutdown();
                    }
                    if (logger.isDebugEnabled()) {
                        logger.debug("[{}] Successfully bootstrapped",
                                     unsyncStoreClient.getValue(LOCAL_NODE_ID));
                    }
View Full Code Here

TOP

Related Classes of org.sdnplatform.sync.internal.config.bootstrap.Bootstrap

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.