Package org.apache.blur.zookeeper

Examples of org.apache.blur.zookeeper.ZooKeeperLockManager.unlock()


  public void testSafeModeNoCache() throws KeeperException, InterruptedException {
    String safemodePath = ZookeeperPathConstants.getSafemodePath(DEFAULT);
    ZooKeeperLockManager zooKeeperLockManager = new ZooKeeperLockManager(zooKeeper1, safemodePath);
    zooKeeperLockManager.lock(DEFAULT);
    assertTrue(clusterStatus2.isInSafeMode(false, DEFAULT));
    zooKeeperLockManager.unlock(DEFAULT);
    assertFalse(clusterStatus2.isInSafeMode(false, DEFAULT));
  }

  @Test
  public void testSafeModeCache() throws KeeperException, InterruptedException {
View Full Code Here


      @Override
      public Object run() {
        return clusterStatus2.isInSafeMode(false, DEFAULT);
      }
    }.test(true);
    zooKeeperLockManager.unlock(DEFAULT);
    new WaitForAnswerToBeCorrect(20L) {
      @Override
      public Object run() {
        return clusterStatus2.isInSafeMode(false, DEFAULT);
      }
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.