StringBuilder sb = new StringBuilder(); sb.append("rpc_version: "); sb.append(inbound.getRpcVersion()); sb.append("\ncredentials:\n\t"); sb.append(inbound.getCredentials());
if (inbound.getRpcVersion() != UserRpcConfig.RPC_VERSION) { final String errMsg = String.format("Invalid rpc version. Expected %d, actual %d.", UserRpcConfig.RPC_VERSION, inbound.getRpcVersion());
setRpcVersion(other.getRpcVersion());
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message) throws java.io.IOException { if(message.hasChannel()) output.writeEnum(1, message.getChannel().getNumber(), false); if(message.hasSupportListening()) output.writeBool(2, message.getSupportListening(), false); if(message.hasRpcVersion()) output.writeInt32(3, message.getRpcVersion(), false); if(message.hasCredentials()) output.writeObject(4, message.getCredentials(), org.apache.drill.exec.proto.SchemaUserBitShared.UserCredentials.WRITE, false); if(message.hasProperties()) output.writeObject(5, message.getProperties(), org.apache.drill.exec.proto.SchemaUserProtos.UserProperties.WRITE, false); if(message.hasSupportComplexTypes()) output.writeBool(6, message.getSupportComplexTypes(), false); if(message.hasSupportTimeout()) output.writeBool(7, message.getSupportTimeout(), false); if(message.hasClientInfos()) output.writeObject(8, message.getClientInfos(), org.apache.drill.exec.proto.SchemaUserProtos.RpcEndpointInfos.WRITE, false); if(message.hasSaslSupport()) output.writeEnum(9, message.getSaslSupport().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message)
setRpcVersion(other.getRpcVersion());
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message) throws java.io.IOException { if(message.hasChannel()) output.writeEnum(1, message.getChannel().getNumber(), false); if(message.hasSupportListening()) output.writeBool(2, message.getSupportListening(), false); if(message.hasRpcVersion()) output.writeInt32(3, message.getRpcVersion(), false); if(message.hasCredentials()) output.writeObject(4, message.getCredentials(), org.apache.drill.exec.proto.SchemaUserBitShared.UserCredentials.WRITE, false); if(message.hasProperties()) output.writeObject(5, message.getProperties(), org.apache.drill.exec.proto.SchemaUserProtos.UserProperties.WRITE, false); if(message.hasSupportComplexTypes()) output.writeBool(6, message.getSupportComplexTypes(), false); if(message.hasSupportTimeout()) output.writeBool(7, message.getSupportTimeout(), false); if(message.hasClientInfos()) output.writeObject(8, message.getClientInfos(), org.apache.drill.exec.proto.SchemaUserProtos.RpcEndpointInfos.WRITE, false); if(message.hasSaslSupport()) output.writeEnum(9, message.getSaslSupport().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message)