public abstract class BlockMetadataView extends Object
Modifier and Type | Field and Description |
---|---|
protected BlockMetadataManager |
mMetadataManager
The
BlockMetadataManager this view is derived from. |
protected boolean |
mUseReservedSpace |
Constructor and Description |
---|
BlockMetadataView(BlockMetadataManager manager)
Creates a new instance of
BlockMetadataView . |
BlockMetadataView(BlockMetadataManager manager,
boolean useReservedSpace)
Creates a new instance of
BlockMetadataView . |
Modifier and Type | Method and Description |
---|---|
StorageTierView |
getNextTier(StorageTierView tierView)
Gets the next storage tier view.
|
StorageTierView |
getTierView(String tierAlias)
Provides
StorageTierView given tierAlias. |
List<StorageTierView> |
getTierViews()
Gets all tierViews under this storage metadata view.
|
List<StorageTierView> |
getTierViewsBelow(String tierAlias)
Gets all tierViews before certain tierView.
|
protected abstract void |
initializeView()
Used to initialize the view based on the current metadata status.
|
BlockMetadataView |
refreshView()
Used to refresh the view based on current metadata status.
|
protected final BlockMetadataManager mMetadataManager
BlockMetadataManager
this view is derived from.protected final boolean mUseReservedSpace
public BlockMetadataView(BlockMetadataManager manager)
BlockMetadataView
.manager
- which the view should be constructed frompublic BlockMetadataView(BlockMetadataManager manager, boolean useReservedSpace)
BlockMetadataView
.manager
- which the view should be constructed fromuseReservedSpace
- whether to include reserved space in available bytespublic StorageTierView getTierView(String tierAlias)
StorageTierView
given tierAlias. Throws an IllegalArgumentException
if
the tierAlias is not found.tierAlias
- the alias of this tierViewStorageTierView
object associated with the aliaspublic List<StorageTierView> getTierViews()
StorageTierView
s@Nullable public StorageTierView getNextTier(StorageTierView tierView)
tierView
- the storage tier viewpublic List<StorageTierView> getTierViewsBelow(String tierAlias)
IllegalArgumentException
if the
tierAlias is not found.tierAlias
- the alias of a tierViewStorageTierView
protected abstract void initializeView()
public BlockMetadataView refreshView()
Copyright © 2023. All Rights Reserved.