use of org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.SetVolumePropertyResponse in project ozone by apache.
the class OzoneManagerProtocolClientSideTranslatorPB method setOwner.
/**
* {@inheritDoc}
*/
@Override
public boolean setOwner(String volume, String owner) throws IOException {
SetVolumePropertyRequest.Builder req = SetVolumePropertyRequest.newBuilder();
req.setVolumeName(volume).setOwnerName(owner);
OMRequest omRequest = createOMRequest(Type.SetVolumeProperty).setSetVolumePropertyRequest(req).build();
OMResponse omResponse = submitRequest(omRequest);
SetVolumePropertyResponse response = handleError(omResponse).getSetVolumePropertyResponse();
return response.getResponse();
}
Aggregations