Class NodeAllocationPlan.AssignmentPlan

    • Method Detail

      • forWorker

        public static NodeAllocationPlan.AssignmentPlan forWorker​(int partitionID,
                                                                  VirtualNodeID nodeID)
        Creates an assignment for a worker node
        Parameters:
        partitionInfo - the partition info
        nodeID - the node id
        hostName - the host name
        Returns:
        an assignment
      • getNodeID

        public VirtualNodeID getNodeID()
        The node ID that this assignment was originally on.
        Returns:
        the node ID that this assignment was originally on.
      • getPartitionID

        public final int getPartitionID()
        The partition instance info for this assignment
        Returns:
        the partition instance info for this assignment
      • getType

        public VirtualNodeType getType()
        Returns the node type
        Returns:
        the node type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object