public interface PlanEdit extends PlanContext, PlanView
| Modifier and Type | Method and Description |
|---|---|
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. |
getAllReservations, getConsumptionForUser, getEarliestStartTime, getLastEndTime, getReservationById, getReservationsAtTime, getTotalCapacity, getTotalCommittedResourcesgetMaximumAllocation, getMinimumAllocation, getMoveOnExpiry, getQueueMetrics, getQueueName, getReplanner, getReservationAgent, getResourceCalculator, getSharingPolicy, getStepboolean addReservation(ReservationAllocation reservation) throws PlanningException
ReservationAllocation to the planreservation - the ReservationAllocation to be added to the
planPlanningExceptionboolean updateReservation(ReservationAllocation reservation) throws PlanningException
ReservationAllocation in the plan. This is
required for re-negotiationreservation - the ReservationAllocation to be updated the planPlanningExceptionboolean 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 collectionreservationID - the ReservationAllocation to be deleted from
the plan identified uniquely by its ReservationIdPlanningExceptionvoid archiveCompletedReservations(long tick)
throws PlanningException
tick - the current time from which the archival window is computedPlanningExceptionvoid setTotalCapacity(org.apache.hadoop.yarn.api.records.Resource capacity)
Resource assigned to this
plancapacity - the overall capacity in terms of Resource assigned
to this planCopyright © 2016 Apache Software Foundation. All Rights Reserved.