Class AllocationID
- java.lang.Object
-
- org.apache.flink.util.AbstractID
-
- org.apache.flink.runtime.clusterframework.types.AllocationID
-
- All Implemented Interfaces:
Serializable,Comparable<org.apache.flink.util.AbstractID>
public class AllocationID extends org.apache.flink.util.AbstractIDUnique 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
SlotRequestIdis 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 Summary
Constructors Constructor Description AllocationID()Constructs a new random AllocationID.AllocationID(long lowerPart, long upperPart)Constructs a new AllocationID with the given parts.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AllocationIDfromHexString(String hexString)
-
-
-
Method Detail
-
fromHexString
public static AllocationID fromHexString(String hexString)
-
-