public class StorageDirId extends Object
Modifier and Type | Method and Description |
---|---|
static int |
compareStorageLevel(long storageDirIdLeft,
long storageDirIdRight)
Compare storage level of StorageDirs
|
static long |
getStorageDirId(int level,
int storageLevelAliasValue,
int dirIndex)
Generate StorageDirId from given information
|
static int |
getStorageDirIndex(long storageDirId)
Get index of the StorageDir in the StorageTier which contains it
|
static int |
getStorageLevel(long storageDirId)
Get storage level of StorageTier which contains the StorageDir
|
static int |
getStorageLevelAliasValue(long storageDirId)
Get StorageLevelAlias value from StorageDirId
|
static boolean |
isUnknown(long storageDirId)
Check whether the value of StorageDirId is UNKNOWN
|
static long |
unknownId()
Get unknown value of StorageDirId, which indicates the StorageDir is unknown
|
public static int compareStorageLevel(long storageDirIdLeft, long storageDirIdRight)
storageDirIdLeft
- The left value of StorageDirId to be comparedstorageDirIdRight
- The right value of StorageDirId to be comparedpublic static long getStorageDirId(int level, int storageLevelAliasValue, int dirIndex)
level
- storage level of the StorageTier which contains the StorageDirstorageLevelAliasValue
- StorageLevelAlias value of the StorageTierdirIndex
- index of the StorageDirpublic static int getStorageDirIndex(long storageDirId)
storageDirId
- Id of the StorageDirpublic static int getStorageLevel(long storageDirId)
storageDirId
- Id of the StorageDirpublic static int getStorageLevelAliasValue(long storageDirId)
storageDirId
- Id of the StorageDirpublic static boolean isUnknown(long storageDirId)
storageDirId
- Id of the StorageDirpublic static long unknownId()
Copyright © 2015. All Rights Reserved.