Search in sources :

Example 1 with GetMasterIdPResponse

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);
}
Also used : RpcUtils(alluxio.RpcUtils) GetMasterIdPResponse(alluxio.grpc.GetMasterIdPResponse) NetAddress(alluxio.grpc.NetAddress)

Aggregations

RpcUtils (alluxio.RpcUtils)1 GetMasterIdPResponse (alluxio.grpc.GetMasterIdPResponse)1 NetAddress (alluxio.grpc.NetAddress)1