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()
SlotContext
getAllocationId
in interface SlotContext
public TaskManagerLocation getTaskManagerLocation()
SlotContext
getTaskManagerLocation
in interface SlotContext
public int getPhysicalSlotNumber()
SlotContext
getPhysicalSlotNumber
in interface SlotContext
public TaskManagerGateway getTaskManagerGateway()
SlotContext
This method should be removed once the new interface-based RPC abstraction is in place
getTaskManagerGateway
in interface SlotContext
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.