public enum AllocateStrategyType extends Enum<AllocateStrategyType>
Enum Constant and Description |
---|
MAX_FREE
Allocate space on StorageDir that has max free space
|
RANDOM
Allocate space on StorageDirs randomly
|
ROUND_ROBIN
Allocate space on StorageDirs by round robin
|
Modifier and Type | Method and Description |
---|---|
static AllocateStrategyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AllocateStrategyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllocateStrategyType MAX_FREE
public static final AllocateStrategyType RANDOM
public static final AllocateStrategyType ROUND_ROBIN
public static AllocateStrategyType[] values()
for (AllocateStrategyType c : AllocateStrategyType.values()) System.out.println(c);
public static AllocateStrategyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All Rights Reserved.