@ThreadSafe public abstract class AbstractStorageTierAssoc extends Object implements StorageTierAssoc
ServerConfiguration
.Modifier | Constructor and Description |
---|---|
protected |
AbstractStorageTierAssoc(List<String> storageTierAliases)
Constructs a new instance using the given list of storage tier aliases in order of their
position in the hierarchy.
|
protected |
AbstractStorageTierAssoc(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 AbstractStorageTierAssoc(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)
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.