use of org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SetBucketPropertyResponse in project ozone by apache.
the class OzoneManagerProtocolClientSideTranslatorPB method setBucketOwner.
/**
* {@inheritDoc}
*/
@Override
public boolean setBucketOwner(OmBucketArgs args) throws IOException {
SetBucketPropertyRequest.Builder req = SetBucketPropertyRequest.newBuilder();
BucketArgs bucketArgs = args.getProtobuf();
req.setBucketArgs(bucketArgs);
OMRequest omRequest = createOMRequest(Type.SetBucketProperty).setSetBucketPropertyRequest(req).build();
OMResponse omResponse = submitRequest(omRequest);
SetBucketPropertyResponse response = handleError(omResponse).getSetBucketPropertyResponse();
return response.getResponse();
}
Aggregations