java.lang.Object
org.elasticsearch.xpack.core.ml.inference.assignment.RoutingInfo
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject

public class RoutingInfo extends Object implements ToXContentObject, Writeable
  • Constructor Details

    • RoutingInfo

      public RoutingInfo(int currentAllocations, int targetAllocations, RoutingState state, String reason)
      RoutingInfo defines the state of a particular trained model assignment on a particular node.
      Parameters:
      currentAllocations - The number of allocations currently running on a node.
      targetAllocations - The number of allocations that have been assigned to a node, and will run on the node. Should never be higher than the number of available processors on the node.
      state - Indicates the availability of the allocations on the node.
      reason - Will contain the reason that currentAllocations != targetAllocations, if applicable, otherwise empty string.
    • RoutingInfo

      public RoutingInfo(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details