Examples of KeySemaphore


Examples of org.hivedb.meta.directory.KeySemaphore

  }

  public SimpleJdbcDaoSupport getUnsafe(String nodeName) {
    try {
      Node node = hive.getNode(nodeName);
      KeySemaphore semaphore = new KeySemaphoreImpl(null, node.getId(), node.getStatus());
      return get(semaphore, AccessType.ReadWrite);
    } catch (HiveException e) {
      // TODO Better exception Handling
      // HiveLockable should become runtime
      throw new RuntimeException(e);
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.