Class OMVolumeDeleteResponse
java.lang.Object
org.apache.hadoop.ozone.om.response.OMClientResponse
org.apache.hadoop.ozone.om.response.volume.OMVolumeDeleteResponse
Response for DeleteVolume request.
-
Constructor Summary
ConstructorsConstructorDescriptionOMVolumeDeleteResponse(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse) For when the request is not successful.OMVolumeDeleteResponse(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, String volume, String owner, org.apache.hadoop.ozone.storage.proto.OzoneManagerStorageProtos.PersistedUserVolumeInfo updatedVolumeList) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToDBBatch(org.apache.hadoop.ozone.om.OMMetadataManager omMetadataManager, org.apache.hadoop.hdds.utils.db.BatchOperation batchOperation) Implement logic to add the response to batch.Methods inherited from class org.apache.hadoop.ozone.om.response.OMClientResponse
checkAndUpdateDB, checkStatusNotOK, getBucketLayout, getOmLockDetails, getOMResponse, setOmLockDetails
-
Constructor Details
-
OMVolumeDeleteResponse
-
OMVolumeDeleteResponse
public OMVolumeDeleteResponse(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse) For when the request is not successful. For a successful request, the other constructor should be used.
-
-
Method Details
-
addToDBBatch
protected void addToDBBatch(org.apache.hadoop.ozone.om.OMMetadataManager omMetadataManager, org.apache.hadoop.hdds.utils.db.BatchOperation batchOperation) throws IOException Description copied from class:OMClientResponseImplement logic to add the response to batch. This function should be called from checkAndUpdateDB only.- Specified by:
addToDBBatchin classOMClientResponse- Throws:
IOException
-