public class SimpleSlotContext extends Object implements SlotContext
SlotContext interface for the legacy code.| Constructor and Description |
|---|
SimpleSlotContext(AllocationID allocationId,
TaskManagerLocation taskManagerLocation,
int physicalSlotNumber,
TaskManagerGateway taskManagerGateway) |
| Modifier and Type | Method and Description |
|---|---|
AllocationID |
getAllocationId()
Gets the id under which the slot has been allocated on the TaskManager.
|
int |
getPhysicalSlotNumber()
Gets the number of the slot.
|
TaskManagerGateway |
getTaskManagerGateway()
Gets the actor gateway that can be used to send messages to the TaskManager.
|
TaskManagerLocation |
getTaskManagerLocation()
Gets the location info of the TaskManager that offers this slot.
|
public SimpleSlotContext(AllocationID allocationId, TaskManagerLocation taskManagerLocation, int physicalSlotNumber, TaskManagerGateway taskManagerGateway)
public AllocationID getAllocationId()
SlotInfogetAllocationId in interface SlotInfopublic TaskManagerLocation getTaskManagerLocation()
SlotInfogetTaskManagerLocation in interface SlotInfopublic int getPhysicalSlotNumber()
SlotInfogetPhysicalSlotNumber in interface SlotInfopublic TaskManagerGateway getTaskManagerGateway()
SlotContextThis method should be removed once the new interface-based RPC abstraction is in place
getTaskManagerGateway in interface SlotContextCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.