@ThreadSafe public class BlockMeta extends AbstractBlockMeta
mBlockId, mDir
Constructor and Description |
---|
BlockMeta(long blockId,
long blockSize,
StorageDir dir)
Creates a new instance of
BlockMeta . |
BlockMeta(TempBlockMeta tempBlock)
Creates a new instance of
BlockMeta from TempBlockMeta . |
Modifier and Type | Method and Description |
---|---|
long |
getBlockSize() |
String |
getPath() |
commitPath, getBlockId, getBlockLocation, getParentDir, tempPath
public BlockMeta(long blockId, long blockSize, StorageDir dir)
BlockMeta
.blockId
- the block idblockSize
- the block sizedir
- the parent directorypublic BlockMeta(TempBlockMeta tempBlock)
BlockMeta
from TempBlockMeta
.tempBlock
- uncommitted block metadatapublic long getBlockSize()
getBlockSize
in class AbstractBlockMeta
public String getPath()
getPath
in class AbstractBlockMeta
Copyright © 2023. All Rights Reserved.