Class OMAllocateBlockResponseWithFSO
java.lang.Object
org.apache.hadoop.ozone.om.response.OMClientResponse
org.apache.hadoop.ozone.om.response.key.OmKeyResponse
org.apache.hadoop.ozone.om.response.key.OMAllocateBlockResponse
org.apache.hadoop.ozone.om.response.key.OMAllocateBlockResponseWithFSO
Response for AllocateBlock request - prefix layout.
-
Constructor Summary
ConstructorsConstructorDescriptionOMAllocateBlockResponseWithFSO(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, org.apache.hadoop.ozone.om.helpers.BucketLayout bucketLayout) For when the request is not successful.OMAllocateBlockResponseWithFSO(org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, org.apache.hadoop.ozone.om.helpers.OmKeyInfo omKeyInfo, long clientID, org.apache.hadoop.ozone.om.helpers.BucketLayout bucketLayout, long volumeId, long bucketId) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToDBBatch(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.key.OMAllocateBlockResponse
getClientID, getOmKeyInfoMethods inherited from class org.apache.hadoop.ozone.om.response.key.OmKeyResponse
getBucketLayoutMethods inherited from class org.apache.hadoop.ozone.om.response.OMClientResponse
checkAndUpdateDB, checkStatusNotOK, getOmLockDetails, getOMResponse, setOmLockDetails
-
Constructor Details
-
OMAllocateBlockResponseWithFSO
public OMAllocateBlockResponseWithFSO(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull org.apache.hadoop.ozone.om.helpers.OmKeyInfo omKeyInfo, long clientID, @Nonnull org.apache.hadoop.ozone.om.helpers.BucketLayout bucketLayout, @Nonnull long volumeId, @Nonnull long bucketId) -
OMAllocateBlockResponseWithFSO
public OMAllocateBlockResponseWithFSO(@Nonnull org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.OMResponse omResponse, @Nonnull org.apache.hadoop.ozone.om.helpers.BucketLayout bucketLayout) For when the request is not successful. For a successful request, the other constructor should be used.
-
-
Method Details
-
addToDBBatch
public 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.- Overrides:
addToDBBatchin classOMAllocateBlockResponse- Throws:
IOException
-