private String getErrorMessage(String message) { if(getChannel() != null) { return protocol.getName() + "(" + RpcUtils.normalizeInetSocketAddress((InetSocketAddress) getChannel().remoteAddress()) + "): " + message; } else { return "Exception " + message; } }
private TajoServiceException makeTajoServiceException(RpcResponse response, Throwable cause) { if(getChannel() != null) { return new TajoServiceException(response.getErrorMessage(), cause, protocol.getName(), RpcUtils.normalizeInetSocketAddress((InetSocketAddress)getChannel().remoteAddress())); } else { return new TajoServiceException(response.getErrorMessage()); } }
private TajoServiceException makeTajoServiceException(RpcResponse response, Throwable cause) { if (getChannel() != null) { return new TajoServiceException(response.getErrorMessage(), cause, getKey().protocolClass.getName(), RpcUtils.normalizeInetSocketAddress((InetSocketAddress) getChannel().remoteAddress())); } else { return new TajoServiceException(response.getErrorMessage()); } }
private TajoServiceException makeTajoServiceException(RpcResponse response, Throwable cause) { if (getChannel() != null) { return new TajoServiceException(response.getErrorMessage(), cause, getKey().protocolClass.getName(), RpcUtils.normalizeInetSocketAddress((InetSocketAddress) getChannel().remoteAddress())); } else { return new TajoServiceException(response.getErrorMessage()); } }
requests.put(nextSeqId, callFuture); ChannelPromise channelPromise = getChannel().newPromise(); channelPromise.addListener(new GenericFutureListener<ChannelFuture>() { @Override getChannel().writeAndFlush(rpcRequest, channelPromise);