public class PendingTaskManager extends Object
SlotManager
.Constructor and Description |
---|
PendingTaskManager(ResourceProfile totalResourceProfile,
int numSlots) |
Modifier and Type | Method and Description |
---|---|
void |
clearAllPendingAllocations() |
void |
clearPendingAllocationsOfJob(JobID jobId) |
ResourceProfile |
getDefaultSlotResourceProfile() |
int |
getNumSlots() |
Map<JobID,ResourceCounter> |
getPendingSlotAllocationRecords() |
PendingTaskManagerId |
getPendingTaskManagerId() |
ResourceProfile |
getTotalResourceProfile() |
ResourceProfile |
getUnusedResource() |
void |
replaceAllPendingAllocations(Map<JobID,ResourceCounter> pendingSlotAllocations) |
String |
toString() |
public PendingTaskManager(ResourceProfile totalResourceProfile, int numSlots)
public ResourceProfile getTotalResourceProfile()
public ResourceProfile getDefaultSlotResourceProfile()
public PendingTaskManagerId getPendingTaskManagerId()
public int getNumSlots()
public ResourceProfile getUnusedResource()
public Map<JobID,ResourceCounter> getPendingSlotAllocationRecords()
public void clearAllPendingAllocations()
public void replaceAllPendingAllocations(Map<JobID,ResourceCounter> pendingSlotAllocations)
public void clearPendingAllocationsOfJob(JobID jobId)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.