Class SlotID
java.lang.Object
org.apache.flink.runtime.clusterframework.types.SlotID
- All Implemented Interfaces:
Serializable,ResourceIDRetrievable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SlotIDgetDynamicSlotID(ResourceID resourceID) Get a SlotID without actual slot index for dynamic slot allocation.Gets the ResourceID of the object.intinthashCode()toString()
-
Constructor Details
-
SlotID
-
-
Method Details
-
getResourceID
Description copied from interface:ResourceIDRetrievableGets the ResourceID of the object.- Specified by:
getResourceIDin interfaceResourceIDRetrievable
-
getSlotNumber
public int getSlotNumber() -
equals
-
hashCode
public int hashCode() -
toString
-
getDynamicSlotID
Get a SlotID without actual slot index for dynamic slot allocation.
-