public static enum BaseResourceAwareStrategy.NodeSortType extends Enum<BaseResourceAwareStrategy.NodeSortType>
Different node sorting types available. Two of these are for backward compatibility. The last one (COMMON) is the new sorting type used across the board. Refer to NodeSorter#NodeSorter(Cluster, TopologyDetails, NodeSortType)
for more details.
Enum Constant and Description |
---|
COMMON
New and only node sorting type going forward.
|
DEFAULT_RAS
Deprecated.
used by DefaultResourceAwareStrategyOld only. Use {link #COMMON} instead.
|
GENERIC_RAS
Deprecated.
used by GenericResourceAwareStrategyOld only. Use {link #COMMON} instead.
|
Modifier and Type | Method and Description |
---|---|
static BaseResourceAwareStrategy.NodeSortType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseResourceAwareStrategy.NodeSortType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final BaseResourceAwareStrategy.NodeSortType GENERIC_RAS
@Deprecated public static final BaseResourceAwareStrategy.NodeSortType DEFAULT_RAS
public static final BaseResourceAwareStrategy.NodeSortType COMMON
NodeSorterHostProximity.NodeSorterHostProximity(Cluster, TopologyDetails)
for more detailspublic static BaseResourceAwareStrategy.NodeSortType[] values()
for (BaseResourceAwareStrategy.NodeSortType c : BaseResourceAwareStrategy.NodeSortType.values()) System.out.println(c);
public static BaseResourceAwareStrategy.NodeSortType 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 © 2022 The Apache Software Foundation. All rights reserved.