use of alluxio.grpc.GetMasterIdPResponse in project alluxio by Alluxio.
the class MetaMasterMasterServiceHandler method getMasterId.
@Override
public void getMasterId(GetMasterIdPRequest request, StreamObserver<GetMasterIdPResponse> responseObserver) {
NetAddress masterAddress = request.getMasterAddress();
RpcUtils.call(LOG, (RpcUtils.RpcCallableThrowsIOException<GetMasterIdPResponse>) () -> {
return GetMasterIdPResponse.newBuilder().setMasterId(mMetaMaster.getMasterId(Address.fromProto(masterAddress))).build();
}, "getMasterId", "request=%s", responseObserver, request);
}
Aggregations