Examples of waitUntilConnected()


Examples of com.linkedin.helix.manager.zk.ZkClient.waitUntilConnected()

  }

  public static void main(String[] args)
  {
    ZkClient zkClient = new ZkClient("localhost:2181");
    zkClient.waitUntilConnected(10, TimeUnit.SECONDS);
    BaseDataAccessor baseDataAccessor = new ZkBaseDataAccessor(zkClient);
    HelixDataAccessor accessor =
        new ZKHelixDataAccessor("test-cluster", baseDataAccessor);
    Builder builder = new PropertyKey.Builder("test-cluster");
    HelixProperty value = new IdealState("test-resource");
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.waitUntilConnected()

        System.out
            .println("AppTest.main(...).new IZkStateListener() {...}.handleNewSession()");
      }
    };
    client.subscribeStateChanges(stateChangeListener);
    boolean waitUntilConnected = client.waitUntilConnected(10000,
        TimeUnit.MILLISECONDS);
    System.out.println("Connected " + waitUntilConnected);
    client.waitForKeeperState(KeeperState.Disconnected, 20000,
        TimeUnit.MILLISECONDS);
    // server.start();
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.waitUntilConnected()

        TimeUnit.MILLISECONDS);
    System.out.println("Connected " + waitUntilConnected);
    client.waitForKeeperState(KeeperState.Disconnected, 20000,
        TimeUnit.MILLISECONDS);
    // server.start();
    client.waitUntilConnected();
    Thread.currentThread().join();
  }

  @Test(enabled = false)
  private static void testChroot() throws Exception
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.waitUntilConnected()

        System.out
            .println("AppTest.main(...).new IZkStateListener() {...}.handleNewSession()");
      }
    };
    client.subscribeStateChanges(stateChangeListener);
    boolean waitUntilConnected = client.waitUntilConnected(10000,
        TimeUnit.MILLISECONDS);
    System.out.println("Connected " + waitUntilConnected);
    IZkChildListener listener1 = new IZkChildListener()
    {
View Full Code Here

Examples of org.I0Itec.zkclient.ZkClient.waitUntilConnected()

    // server.shutdown();
    client.waitForKeeperState(KeeperState.Disconnected, 20000,
        TimeUnit.MILLISECONDS);
    // server.start();
    client.waitUntilConnected();

    Thread.sleep(1000);
    client.setZkSerializer(new BytesPushThroughSerializer());
    client.create("/test", new byte[0], CreateMode.EPHEMERAL);
    Thread.sleep(1000);
View Full Code Here

Examples of org.apache.helix.manager.zk.ZkClient.waitUntilConnected()

  }

  public static void main(String[] args)
  {
    ZkClient zkClient = new ZkClient("localhost:2181");
    zkClient.waitUntilConnected(10, TimeUnit.SECONDS);
    BaseDataAccessor baseDataAccessor = new ZkBaseDataAccessor(zkClient);
    HelixDataAccessor accessor =
        new ZKHelixDataAccessor("test-cluster", baseDataAccessor);
    Builder builder = new PropertyKey.Builder("test-cluster");
    HelixProperty value = new IdealState("test-resource");
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.