@PublicApi public interface Allocator
Modifier and Type | Interface and Description |
---|---|
static class |
Allocator.Factory
Factory for
Allocator . |
Modifier and Type | Method and Description |
---|---|
StorageDirView |
allocateBlockWithView(long sessionId,
long blockSize,
BlockStoreLocation location,
BlockMetadataView view)
Allocates a block from the given block store location under a given view.
|
StorageDirView allocateBlockWithView(long sessionId, long blockSize, BlockStoreLocation location, BlockMetadataView view)
BlockStoreLocation.anyTier()
or
BlockStoreLocation.anyDirInTier(String)
.sessionId
- the id of session to apply for the block allocationblockSize
- the size of block in byteslocation
- the location in block storeview
- of the block metadataStorageDirView
in which to create the temp block meta if success, null
otherwiseCopyright © 2023. All Rights Reserved.