Class AllocationID

  • All Implemented Interfaces:
    Serializable, Comparable<AbstractID>

    public class AllocationID
    extends AbstractID
    Unique identifier for a physical slot allocated by a JobManager via the ResourceManager from a TaskManager. The ID is assigned once the JobManager (or its SlotPool) first requests the slot and is constant across retries.

    This ID is used by the TaskManager and ResourceManager to track and synchronize which slots are allocated to which JobManager and which are free.

    In contrast to this AllocationID, the SlotRequestId is used when a task requests a logical slot from the SlotPool. Multiple logical slot requests can map to one physical slot request (due to slot sharing).

    See Also:
    Serialized Form
    • Constructor Detail

      • AllocationID

        public AllocationID()
        Constructs a new random AllocationID.
      • AllocationID

        public AllocationID​(long lowerPart,
                            long upperPart)
        Constructs a new AllocationID with the given parts.
        Parameters:
        lowerPart - the lower bytes of the ID
        upperPart - the higher bytes of the ID