Package | Description |
---|---|
org.apache.hadoop.yarn.server.resourcemanager.reservation |
Modifier and Type | Method and Description |
---|---|
ReservationAllocation |
PlanView.getReservationById(org.apache.hadoop.yarn.api.records.ReservationId reservationID)
Return a
ReservationAllocation identified by its
ReservationId |
Modifier and Type | Method and Description |
---|---|
Set<ReservationAllocation> |
PlanView.getAllReservations()
Gets all the reservations in the plan
|
Set<ReservationAllocation> |
PlanView.getReservationsAtTime(long tick)
Gets all the active reservations at the specified point of time
|
protected List<ReservationAllocation> |
AbstractSchedulerPlanFollower.sortByDelta(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 and Description |
---|---|
boolean |
PlanEdit.addReservation(ReservationAllocation reservation)
Add a new
ReservationAllocation to the plan |
boolean |
PlanEdit.updateReservation(ReservationAllocation reservation)
Updates an existing
ReservationAllocation in the plan. |
void |
CapacityOverTimePolicy.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. |
void |
NoOverCommitPolicy.validate(Plan plan,
ReservationAllocation reservation) |
Modifier and Type | Method and Description |
---|---|
protected int |
AbstractSchedulerPlanFollower.getReservedResources(long now,
Set<ReservationAllocation> currentReservations,
Set<String> curReservationNames,
org.apache.hadoop.yarn.api.records.Resource reservedResources) |
protected List<ReservationAllocation> |
AbstractSchedulerPlanFollower.sortByDelta(List<ReservationAllocation> currentReservations,
long now,
Plan plan)
Sort in the order from the least new amount of resources asked (likely
negative) to the highest.
|
Copyright © 2019 Apache Software Foundation. All Rights Reserved.