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) |
SimpleSlotContext(AllocationID allocationId,
TaskManagerLocation taskManagerLocation,
int physicalSlotNumber,
TaskManagerGateway taskManagerGateway,
ResourceProfile resourceProfile) |
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.
|
ResourceProfile |
getResourceProfile()
Returns the resource profile 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 SimpleSlotContext(AllocationID allocationId, TaskManagerLocation taskManagerLocation, int physicalSlotNumber, TaskManagerGateway taskManagerGateway, ResourceProfile resourceProfile)
public AllocationID getAllocationId()
SlotInfo
getAllocationId
in interface SlotInfo
public TaskManagerLocation getTaskManagerLocation()
SlotInfo
getTaskManagerLocation
in interface SlotInfo
public int getPhysicalSlotNumber()
SlotInfo
getPhysicalSlotNumber
in interface SlotInfo
public TaskManagerGateway getTaskManagerGateway()
SlotContext
This method should be removed once the new interface-based RPC abstraction is in place
getTaskManagerGateway
in interface SlotContext
public ResourceProfile getResourceProfile()
SlotInfo
getResourceProfile
in interface SlotInfo
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.