@ThreadSafe public abstract class StorageTierAssoc extends Object
ServerConfiguration
.Modifier | Constructor and Description |
---|---|
protected |
StorageTierAssoc(List<String> storageTierAliases)
Constructs a new instance using the given list of storage tier aliases in order of their
position in the hierarchy.
|
protected |
StorageTierAssoc(PropertyKey levelsProperty,
PropertyKey.Template template)
Constructs a new instance using the given
ServerConfiguration object. |
Modifier and Type | Method and Description |
---|---|
String |
getAlias(int ordinal) |
List<String> |
getOrderedStorageAliases() |
int |
getOrdinal(String alias) |
List<Pair<BlockStoreLocation,BlockStoreLocation>> |
intersectionList() |
int |
size() |
protected StorageTierAssoc(PropertyKey levelsProperty, PropertyKey.Template template)
ServerConfiguration
object. The mapping
cannot be modified after creation.levelsProperty
- the property in the conf that specifies how many levels there aretemplate
- the format for the conf that identifies the alias for each levelpublic String getAlias(int ordinal)
ordinal
- a storage tier ordinalpublic int getOrdinal(String alias)
alias
- a storage tier aliaspublic int size()
public List<String> getOrderedStorageAliases()
public List<Pair<BlockStoreLocation,BlockStoreLocation>> intersectionList()
Copyright © 2023. All Rights Reserved.