|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PlanEdit
This interface groups the methods used to modify the state of a Plan.
| Method Summary | |
|---|---|
boolean |
addReservation(ReservationAllocation reservation)
Add a new ReservationAllocation to the plan |
void |
archiveCompletedReservations(long tick)
Method invoked to garbage collect old reservations. |
boolean |
deleteReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationID)
Delete an existing ReservationAllocation from the plan identified
uniquely by its ReservationId. |
void |
setTotalCapacity(org.apache.hadoop.yarn.api.records.Resource capacity)
Sets the overall capacity in terms of Resource assigned to this
plan |
boolean |
updateReservation(ReservationAllocation reservation)
Updates an existing ReservationAllocation in the plan. |
| Methods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.reservation.PlanView |
|---|
getAllReservations, getConsumptionForUser, getEarliestStartTime, getLastEndTime, getReservationById, getReservationsAtTime, getTotalCapacity, getTotalCommittedResources |
| Methods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.reservation.PlanContext |
|---|
getMaximumAllocation, getMinimumAllocation, getMoveOnExpiry, getQueueMetrics, getQueueName, getReplanner, getReservationAgent, getResourceCalculator, getSharingPolicy, getStep |
| Method Detail |
|---|
boolean addReservation(ReservationAllocation reservation)
throws PlanningException
ReservationAllocation to the plan
reservation - the ReservationAllocation to be added to the
plan
PlanningException
boolean updateReservation(ReservationAllocation reservation)
throws PlanningException
ReservationAllocation in the plan. This is
required for re-negotiation
reservation - the ReservationAllocation to be updated the plan
PlanningException
boolean deleteReservation(org.apache.hadoop.yarn.api.records.ReservationId reservationID)
throws PlanningException
ReservationAllocation from the plan identified
uniquely by its ReservationId. This will generally be used for
garbage collection
reservationID - the ReservationAllocation to be deleted from
the plan identified uniquely by its ReservationId
PlanningException
void archiveCompletedReservations(long tick)
throws PlanningException
tick - the current time from which the archival window is computed
PlanningExceptionvoid setTotalCapacity(org.apache.hadoop.yarn.api.records.Resource capacity)
Resource assigned to this
plan
capacity - the overall capacity in terms of Resource assigned
to this plan
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||