Package org.apache.hadoop.hdfs.notifier.NamespaceNotifierClient

Examples of org.apache.hadoop.hdfs.notifier.NamespaceNotifierClient.NotConnectedToServerException


  void waitForTransparentConnect() throws InterruptedException,
      NotConnectedToServerException {
    if (state == DISCONNECTED_VISIBLE) {
      LOG.warn(listeningPort + ": waitForTransparentConnect: got visible" +
          " disconnected state");
      throw new NotConnectedToServerException();
    }
   
    // Wait until we are not hidden disconnected
    while (state != CONNECTED) {
      connectionLock.wait();
      switch (state) {
        case CONNECTED:
          break;
        case DISCONNECTED_HIDDEN:
          continue;
        case DISCONNECTED_VISIBLE:
          LOG.warn(listeningPort + ": waitForTransparentConnect: got visible" +
              " disconnected state");
          throw new NotConnectedToServerException();
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.notifier.NamespaceNotifierClient.NotConnectedToServerException

Copyright © 2018 www.massapicom. 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.