Package org.apache.hadoop.hdfs.notifier

Examples of org.apache.hadoop.hdfs.notifier.ClientConnectionException$ClientConnectionExceptionTupleSchemeFactory


    ClientData clientData;
    long clientId;
    try {
      clientId = core.addClientAndConnect(host, port);
    } catch (Exception e) {
      throw new ClientConnectionException("Failed to connect to client "
          + " on host " + host + " and port " + port);
    }
    clientData = core.getClientData(clientId);
   
    try {
      clientData.handler.registerServer(clientId, core.getId(), token);
    } catch (InvalidTokenException e) {
      LOG.warn("Client rejected our token. clientId = " + clientId +
          ". token = " + token, e);
     
      // Remove the client from our internal structures
      core.removeClient(clientId);
     
      // Raise an exception here since the client rejected us
      throw new ClientConnectionException("Token rejected");
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.notifier.ClientConnectionException$ClientConnectionExceptionTupleSchemeFactory

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.