Package io.ray.api.placementgroup
Enum Class PlacementStrategy
- All Implemented Interfaces:
Serializable,Comparable<PlacementStrategy>,java.lang.constant.Constable
The actor placement strategy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPacks Bundles close together inside nodes as tight as possible.Places Bundles across distinct nodes as even as possible.Packs Bundles into one node.Places Bundles across distinct nodes.Unrecognized strategy. -
Method Summary
Modifier and TypeMethodDescriptionintvalue()static PlacementStrategyReturns the enum constant of this class with the specified name.static PlacementStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PACK
Packs Bundles close together inside nodes as tight as possible. -
SPREAD
Places Bundles across distinct nodes as even as possible. -
STRICT_PACK
Packs Bundles into one node. The group is not allowed to span multiple nodes. -
STRICT_SPREAD
Places Bundles across distinct nodes. The group is not allowed to deploy more than one bundle on a node. -
UNRECOGNIZED
Unrecognized strategy.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value()
-