Examples of LockID


Examples of org.apache.accumulo.fate.zookeeper.ZooUtil.LockID

   
    long sleepTime = 50;
   
    long startTime = System.currentTimeMillis();
   
    LockID lid = new LockID(ZooUtil.getRoot(instance) + Constants.ZTSERVERS, sessionId.lockId);
   
    while (true) {
      if (!ZooLock.isLockHeld(ServerClient.getZooCache(instance), lid)) {
        // ACCUMULO-1152 added a tserver lock check to the tablet location cache, so this invalidation prevents future attempts to contact the
        // tserver even its gone zombie and is still running w/o a lock
View Full Code Here

Examples of org.apache.accumulo.fate.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
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.