Interface ResourceAllocationCommitter
- All Known Implementing Classes:
CapacityScheduler
public interface ResourceAllocationCommitter
Scheduler should implement this interface if it wants to have multi-threading
plus global scheduling functionality
-
Method Summary
Modifier and TypeMethodDescriptionbooleantryCommit(org.apache.hadoop.yarn.api.records.Resource cluster, ResourceCommitRequest proposal, boolean updatePending) Try to commit the allocation Proposal.
-
Method Details
-
tryCommit
boolean tryCommit(org.apache.hadoop.yarn.api.records.Resource cluster, ResourceCommitRequest proposal, boolean updatePending) Try to commit the allocation Proposal. This also gives the option of not updating a pending queued request.- Parameters:
cluster- Cluster Resource.proposal- Proposal.updatePending- Decrement pending if successful.- Returns:
- Is successful or not.
-