Class SlotID
- java.lang.Object
-
- org.apache.flink.runtime.clusterframework.types.SlotID
-
- All Implemented Interfaces:
Serializable,ResourceIDRetrievable
public class SlotID extends Object implements ResourceIDRetrievable, Serializable
Unique identifier for a slot on a TaskManager. This ID is constant across the life time of the TaskManager.In contrast, the
AllocationIDrepresents the a slot allocation and changes every time the slot is allocated by a JobManager.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlotID(ResourceID resourceId, int slotNumber)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SlotIDgetDynamicSlotID(ResourceID resourceID)Get a SlotID without actual slot index for dynamic slot allocation.ResourceIDgetResourceID()Gets the ResourceID of the object.intgetSlotNumber()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SlotID
public SlotID(ResourceID resourceId, int slotNumber)
-
-
Method Detail
-
getResourceID
public ResourceID getResourceID()
Description copied from interface:ResourceIDRetrievableGets the ResourceID of the object.- Specified by:
getResourceIDin interfaceResourceIDRetrievable
-
getSlotNumber
public int getSlotNumber()
-
getDynamicSlotID
public static SlotID getDynamicSlotID(ResourceID resourceID)
Get a SlotID without actual slot index for dynamic slot allocation.
-
-