Interface PhysicalSlot
- All Superinterfaces:
SlotContext,SlotInfo
The context of an
AllocatedSlot. This represent an interface to classes outside the slot
pool to interact with allocated slots.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacePayload which can be assigned to anAllocatedSlot. -
Method Summary
Modifier and TypeMethodDescriptionbooleantryAssignPayload(PhysicalSlot.Payload payload) Tries to assign the given payload to this allocated slot.Methods inherited from interface org.apache.flink.runtime.jobmaster.SlotContext
getTaskManagerGatewayMethods inherited from interface org.apache.flink.runtime.jobmaster.SlotInfo
getAllocationId, getPhysicalSlotNumber, getResourceProfile, getTaskManagerLocation, willBeOccupiedIndefinitely
-
Method Details
-
tryAssignPayload
Tries to assign the given payload to this allocated slot. This only works if there has not been another payload assigned to this slot.- Parameters:
payload- to assign to this slot- Returns:
- true if the payload could be assigned, otherwise false
-