public abstract class StorageDirView extends Object
StorageDir
to provide more limited access.Constructor and Description |
---|
StorageDirView(StorageDir dir,
StorageTierView tierView)
Creates a
StorageDirView using the actual StorageDir . |
Modifier and Type | Method and Description |
---|---|
TempBlockMeta |
createTempBlockMeta(long sessionId,
long blockId,
long initialBlockSize)
Creates a
TempBlockMeta given sessionId, blockId, and initialBlockSize. |
abstract long |
getAvailableBytes()
Gets available bytes for this dir.
|
long |
getCapacityBytes()
Gets capacity bytes for this dir.
|
long |
getCommittedBytes()
Gets committed bytes for this dir.
|
int |
getDirViewIndex()
Gets the index of this Dir.
|
String |
getMediumType()
Get medium type of the dir view, which is derived from the dir.
|
StorageTierView |
getParentTierView() |
BlockStoreLocation |
toBlockStoreLocation()
Creates a
BlockStoreLocation for this directory view. |
public StorageDirView(StorageDir dir, StorageTierView tierView)
StorageDirView
using the actual StorageDir
.dir
- which the dirView is constructed fromtierView
- which the dirView is underpublic abstract long getAvailableBytes()
public int getDirViewIndex()
public long getCapacityBytes()
public long getCommittedBytes()
public TempBlockMeta createTempBlockMeta(long sessionId, long blockId, long initialBlockSize)
TempBlockMeta
given sessionId, blockId, and initialBlockSize.sessionId
- of the owning sessionblockId
- of the new blockinitialBlockSize
- of the new blockTempBlockMeta
under the underlying directorypublic StorageTierView getParentTierView()
public String getMediumType()
public BlockStoreLocation toBlockStoreLocation()
BlockStoreLocation
for this directory view. Redirecting to
StorageDir.toBlockStoreLocation()
BlockStoreLocation
createdCopyright © 2023. All Rights Reserved.