| Package | Description |
|---|---|
| org.apache.hadoop.yarn.server.resourcemanager.reservation | |
| org.apache.hadoop.yarn.server.resourcemanager.reservation.planning |
| Modifier and Type | Class | Description |
|---|---|---|
class |
InMemoryReservationAllocation |
An in memory implementation of a reservation allocation using the
RLESparseResourceAllocation |
| Modifier and Type | Method | Description |
|---|---|---|
ReservationAllocation |
InMemoryPlan.getReservationById(org.apache.hadoop.yarn.api.records.ReservationId reservationID) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<ReservationAllocation> |
InMemoryPlan.getAllReservations() |
|
java.util.Set<ReservationAllocation> |
InMemoryPlan.getReservationByUserAtTime(java.lang.String user,
long t) |
|
java.util.Set<ReservationAllocation> |
InMemoryPlan.getReservations(org.apache.hadoop.yarn.api.records.ReservationId reservationID,
ReservationInterval interval) |
|
java.util.Set<ReservationAllocation> |
InMemoryPlan.getReservations(org.apache.hadoop.yarn.api.records.ReservationId reservationID,
ReservationInterval interval,
java.lang.String user) |
|
java.util.Set<ReservationAllocation> |
InMemoryPlan.getReservationsAtTime(long tick) |
|
protected java.util.List<ReservationAllocation> |
AbstractSchedulerPlanFollower.sortByDelta(java.util.List<ReservationAllocation> currentReservations,
long now,
Plan plan) |
Sort in the order from the least new amount of resources asked (likely
negative) to the highest.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
InMemoryPlan.addReservation(ReservationAllocation reservation,
boolean isRecovering) |
|
boolean |
PlanEdit.addReservation(ReservationAllocation reservation,
boolean isRecovering) |
Add a new
ReservationAllocation to the plan. |
static org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto |
ReservationSystemUtil.buildStateProto(ReservationAllocation allocation) |
|
int |
InMemoryReservationAllocation.compareTo(ReservationAllocation other) |
|
boolean |
InMemoryPlan.updateReservation(ReservationAllocation reservation) |
|
boolean |
PlanEdit.updateReservation(ReservationAllocation reservation) |
Updates an existing
ReservationAllocation in the plan. |
void |
CapacityOverTimePolicy.validate(Plan plan,
ReservationAllocation reservation) |
The validation algorithm walks over the RLE encoded allocation and
checks that for all transition points (when the start or end of the
checking window encounters a value in the RLE).
|
void |
NoOverCommitPolicy.validate(Plan plan,
ReservationAllocation reservation) |
|
void |
SharingPolicy.validate(Plan plan,
ReservationAllocation newAllocation) |
This method runs the policy validation logic, and return true/false on
whether the
ReservationAllocation is acceptable according to this
sharing policy. |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<org.apache.hadoop.yarn.api.records.ReservationAllocationState> |
ReservationSystemUtil.convertAllocationsToReservationInfo(java.util.Set<ReservationAllocation> res,
boolean includeResourceAllocations) |
|
protected int |
AbstractSchedulerPlanFollower.getReservedResources(long now,
java.util.Set<ReservationAllocation> currentReservations,
java.util.Set<java.lang.String> curReservationNames,
org.apache.hadoop.yarn.api.records.Resource reservedResources) |
|
protected java.util.List<ReservationAllocation> |
AbstractSchedulerPlanFollower.sortByDelta(java.util.List<ReservationAllocation> currentReservations,
long now,
Plan plan) |
Sort in the order from the least new amount of resources asked (likely
negative) to the highest.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
PlanningAlgorithm.allocateUser(org.apache.hadoop.yarn.api.records.ReservationId reservationId,
java.lang.String user,
Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition contract,
ReservationAllocation oldReservation) |
Performs the actual allocation for a ReservationDefinition within a Plan.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.