Enum Class PlacementStrategy

java.lang.Object
java.lang.Enum<PlacementStrategy>
io.ray.api.placementgroup.PlacementStrategy
All Implemented Interfaces:
Serializable, Comparable<PlacementStrategy>, java.lang.constant.Constable

public enum PlacementStrategy extends Enum<PlacementStrategy>
The actor placement strategy.
  • Enum Constant Details

    • PACK

      public static final PlacementStrategy PACK
      Packs Bundles close together inside nodes as tight as possible.
    • SPREAD

      public static final PlacementStrategy SPREAD
      Places Bundles across distinct nodes as even as possible.
    • STRICT_PACK

      public static final PlacementStrategy STRICT_PACK
      Packs Bundles into one node. The group is not allowed to span multiple nodes.
    • STRICT_SPREAD

      public static final PlacementStrategy STRICT_SPREAD
      Places Bundles across distinct nodes. The group is not allowed to deploy more than one bundle on a node.
    • UNRECOGNIZED

      public static final PlacementStrategy UNRECOGNIZED
      Unrecognized strategy.
  • Method Details

    • values

      public static PlacementStrategy[] 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

      public static PlacementStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • value

      public int value()