Package com.youtube.vitess.vtgate.Exceptions

Examples of com.youtube.vitess.vtgate.Exceptions.ConnectionException


      Client client = Client.dialHttp(hostAndPort.getHostText(), hostAndPort.getPort(),
          GoRpcClient.BSON_RPC_PATH, timeoutMs, new BsonClientCodecFactory());
      return new GoRpcClient(client);
    } catch (GoRpcException e) {
      GoRpcClient.LOGGER.error("vtgate connection exception: ", e);
      throw new ConnectionException(e.getMessage());
    }
  }
View Full Code Here


    Response response;
    try {
      response = client.streamNext();
    } catch (GoRpcException | ApplicationException e) {
      LOGGER.error("vtgate exception", e);
      throw new ConnectionException("vtgate exception: " + e.getMessage());
    }

    if (response == null) {
      return null;
    }
View Full Code Here

  public void close() throws ConnectionException {
    try {
      client.close();
    } catch (GoRpcException e) {
      LOGGER.error("vtgate exception", e);
      throw new ConnectionException("vtgate exception: " + e.getMessage());
    }
  }
View Full Code Here

    try {
      Response response = client.call(methodName, args);
      return response;
    } catch (GoRpcException | ApplicationException e) {
      LOGGER.error("vtgate exception", e);
      throw new ConnectionException("vtgate exception: " + e.getMessage());
    }
  }
View Full Code Here

    try {
      client.streamCall(methodName, args);
      return client.streamNext();
    } catch (GoRpcException | ApplicationException e) {
      LOGGER.error("vtgate exception", e);
      throw new ConnectionException("vtgate exception: " + e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of com.youtube.vitess.vtgate.Exceptions.ConnectionException

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.