@ThreadSafe public final class DefaultStorageTierAssoc extends Object implements StorageTierAssoc
Configuration
.Constructor and Description |
---|
DefaultStorageTierAssoc(List<String> storageTierAliases)
Constructs a new instance using the given list of storage tier aliases in order of their
position in the hierarchy.
|
DefaultStorageTierAssoc(PropertyKey levelsProperty,
PropertyKey.Template template)
Constructs a new instance using the given
Configuration 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() |
public DefaultStorageTierAssoc(PropertyKey levelsProperty, PropertyKey.Template template)
Configuration
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)
getAlias
in interface StorageTierAssoc
ordinal
- a storage tier ordinalpublic int getOrdinal(String alias)
getOrdinal
in interface StorageTierAssoc
alias
- a storage tier aliaspublic int size()
size
in interface StorageTierAssoc
public List<String> getOrderedStorageAliases()
getOrderedStorageAliases
in interface StorageTierAssoc
public List<Pair<BlockStoreLocation,BlockStoreLocation>> intersectionList()
intersectionList
in interface StorageTierAssoc
Copyright © 2023. All Rights Reserved.