Search in sources :

Example 1 with GrpcUtils

use of alluxio.grpc.GrpcUtils in project alluxio by Alluxio.

the class FileSystemMasterClientServiceHandler method setAcl.

@Override
public void setAcl(SetAclPRequest request, StreamObserver<SetAclPResponse> responseObserver) {
    RpcUtils.call(LOG, () -> {
        AlluxioURI pathUri = getAlluxioURI(request.getPath());
        mFileSystemMaster.setAcl(pathUri, request.getAction(), request.getEntriesList().stream().map(GrpcUtils::fromProto).collect(Collectors.toList()), SetAclContext.create(request.getOptions().toBuilder()).withTracker(new GrpcCallTracker(responseObserver)));
        return SetAclPResponse.newBuilder().build();
    }, "setAcl", "request=%s", responseObserver, request);
}
Also used : GrpcCallTracker(alluxio.master.file.contexts.GrpcCallTracker) GrpcUtils(alluxio.grpc.GrpcUtils) AlluxioURI(alluxio.AlluxioURI)

Aggregations

AlluxioURI (alluxio.AlluxioURI)1 GrpcUtils (alluxio.grpc.GrpcUtils)1 GrpcCallTracker (alluxio.master.file.contexts.GrpcCallTracker)1