@InterfaceAudience.Private public final class CoprocessorRpcUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CoprocessorRpcUtils.BlockingRpcCallback<R>
Simple
RpcCallback implementation providing a
Future-like BlockingRpcCallback.get() method, which
will block util the instance's BlockingRpcCallback.run(Object) method has been called. |
public static String getServiceName(Descriptors.ServiceDescriptor service)
public static ClientProtos.CoprocessorServiceRequest getCoprocessorServiceRequest(Descriptors.MethodDescriptor method, Message request)
public static ClientProtos.CoprocessorServiceRequest getCoprocessorServiceRequest(Descriptors.MethodDescriptor method, Message request, byte[] row, byte[] regionName)
public static Descriptors.MethodDescriptor getMethodDescriptor(String methodName, Descriptors.ServiceDescriptor serviceDesc) throws UnknownProtocolException
public static Message getRequest(Service service, Descriptors.MethodDescriptor methodDesc, org.apache.hbase.thirdparty.com.google.protobuf.ByteString shadedRequest) throws IOException
IOExceptionpublic static Message getResponse(ClientProtos.CoprocessorServiceResponse result, Message responsePrototype) throws IOException
IOExceptionpublic static ClientProtos.CoprocessorServiceResponse getResponse(Message result, byte[] regionName)
public static void setControllerException(RpcController controller, IOException ioe)
controller - the controller instance provided by the client when calling the serviceioe - the exception encountered@Nullable public static IOException getControllerException(RpcController controller) throws IOException
controller - the controller instance provided by the client when calling the serviceIOExceptionCopyright © 2007–2019. All rights reserved.