The obtained {@link com.google.protobuf.RpcChannel} instance can be used to accessa published coprocessor {@link com.google.protobuf.Service} using standard protobuf serviceinvocations:
CoprocessorRpcChannel channel = myAdmin.coprocessorService(); MyService.BlockingInterface service = MyService.newBlockingStub(channel); MyCallRequest request = MyCallRequest.newBuilder() ... .build(); MyCallResponse response = service.myCall(null, request);
|
|
|
|
|
|
|
|