Class PendingTaskManager
- java.lang.Object
-
- org.apache.flink.runtime.resourcemanager.slotmanager.PendingTaskManager
-
public class PendingTaskManager extends Object
Represents a pending task manager in theSlotManager.
-
-
Constructor Summary
Constructors Constructor Description PendingTaskManager(ResourceProfile totalResourceProfile, int numSlots)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearAllPendingAllocations()voidclearPendingAllocationsOfJob(org.apache.flink.api.common.JobID jobId)ResourceProfilegetDefaultSlotResourceProfile()intgetNumSlots()Map<org.apache.flink.api.common.JobID,ResourceCounter>getPendingSlotAllocationRecords()PendingTaskManagerIdgetPendingTaskManagerId()ResourceProfilegetTotalResourceProfile()ResourceProfilegetUnusedResource()voidreplaceAllPendingAllocations(Map<org.apache.flink.api.common.JobID,ResourceCounter> pendingSlotAllocations)StringtoString()
-
-
-
Constructor Detail
-
PendingTaskManager
public PendingTaskManager(ResourceProfile totalResourceProfile, int numSlots)
-
-
Method Detail
-
getTotalResourceProfile
public ResourceProfile getTotalResourceProfile()
-
getDefaultSlotResourceProfile
public ResourceProfile getDefaultSlotResourceProfile()
-
getPendingTaskManagerId
public PendingTaskManagerId getPendingTaskManagerId()
-
getNumSlots
public int getNumSlots()
-
getUnusedResource
public ResourceProfile getUnusedResource()
-
getPendingSlotAllocationRecords
public Map<org.apache.flink.api.common.JobID,ResourceCounter> getPendingSlotAllocationRecords()
-
clearAllPendingAllocations
public void clearAllPendingAllocations()
-
replaceAllPendingAllocations
public void replaceAllPendingAllocations(Map<org.apache.flink.api.common.JobID,ResourceCounter> pendingSlotAllocations)
-
clearPendingAllocationsOfJob
public void clearPendingAllocationsOfJob(org.apache.flink.api.common.JobID jobId)
-
-