|
@@ -318,15 +318,15 @@ public class ProtoOverHadoopRpcEngine implements RpcEngine {
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Writable call(Class<?> protocol, Writable writableRequest,
|
|
|
|
|
|
+ public Writable call(String protocol, Writable writableRequest,
|
|
long receiveTime) throws IOException {
|
|
long receiveTime) throws IOException {
|
|
ProtoSpecificRequestWritable request = (ProtoSpecificRequestWritable) writableRequest;
|
|
ProtoSpecificRequestWritable request = (ProtoSpecificRequestWritable) writableRequest;
|
|
ProtoSpecificRpcRequest rpcRequest = request.message;
|
|
ProtoSpecificRpcRequest rpcRequest = request.message;
|
|
String methodName = rpcRequest.getMethodName();
|
|
String methodName = rpcRequest.getMethodName();
|
|
- System.out.println("Call: protocol=" + protocol.getCanonicalName() + ", method="
|
|
|
|
|
|
+ System.out.println("Call: protocol=" + protocol + ", method="
|
|
+ methodName);
|
|
+ methodName);
|
|
if (verbose)
|
|
if (verbose)
|
|
- log("Call: protocol=" + protocol.getCanonicalName() + ", method="
|
|
|
|
|
|
+ log("Call: protocol=" + protocol + ", method="
|
|
+ methodName);
|
|
+ methodName);
|
|
MethodDescriptor methodDescriptor = service.getDescriptorForType()
|
|
MethodDescriptor methodDescriptor = service.getDescriptorForType()
|
|
.findMethodByName(methodName);
|
|
.findMethodByName(methodName);
|