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
AllocationID
represents 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 boolean
equals(Object o)
static SlotID
getDynamicSlotID(ResourceID resourceID)
Get a SlotID without actual slot index for dynamic slot allocation.ResourceID
getResourceID()
Gets the ResourceID of the object.int
getSlotNumber()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SlotID
public SlotID(ResourceID resourceId, int slotNumber)
-
-
Method Detail
-
getResourceID
public ResourceID getResourceID()
Description copied from interface:ResourceIDRetrievable
Gets the ResourceID of the object.- Specified by:
getResourceID
in interfaceResourceIDRetrievable
-
getSlotNumber
public int getSlotNumber()
-
getDynamicSlotID
public static SlotID getDynamicSlotID(ResourceID resourceID)
Get a SlotID without actual slot index for dynamic slot allocation.
-
-