Examples of waitForSyncConnected()


Examples of org.neo4j.kernel.ha.zookeeper.ClusterManager.waitForSyncConnected()

    {
        ClusterManager clusterManager = new ClusterManager( from );
        Pair<String, Integer> masterServer = null;
        try
        {
            clusterManager.waitForSyncConnected();
            Machine master = clusterManager.getMaster();
            masterServer = master.getServer();
            if ( masterServer != null )
            {
                int backupPort = clusterManager.getBackupPort( master.getMachineId() );
View Full Code Here

Examples of org.neo4j.kernel.ha.zookeeper.ClusterManager.waitForSyncConnected()

        {
            ClusterManager cm = null;
            try
            {
                cm = new ClusterManager( getConnectionString() );
                cm.waitForSyncConnected();
                break;
            }
            catch ( Exception e )
            {
                e.printStackTrace();
View Full Code Here

Examples of org.neo4j.kernel.ha.zookeeper.ClusterManager.waitForSyncConnected()

public class DumpZooInfo
{
    public static void main( String[] args )
    {
        ClusterManager clusterManager = new ClusterManager( "localhost" );
        clusterManager.waitForSyncConnected();
        System.out.println( "Master is " + clusterManager.getCachedMaster() );
        System.out.println( "Connected slaves" );
        for ( Machine info : clusterManager.getConnectedSlaves() )
        {
            System.out.println( "\t" + info );
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.