public interface PlanEdit extends PlanContext, PlanView
Modifier and Type | Method and Description |
---|---|
boolean |
addReservation(ReservationAllocation reservation,
boolean isRecovering)
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, getAvailableResourceOverTime, getConsumptionForUserOverTime, getEarliestStartTime, getLastEndTime, getReservationById, getReservationByUserAtTime, getReservationCountForUserOverTime, getReservations, getReservations, getReservationsAtTime, getTotalCapacity, getTotalCommittedResources
getMaximumAllocation, getMinimumAllocation, getMoveOnExpiry, getQueueMetrics, getQueueName, getReplanner, getReservationAgent, getResourceCalculator, getSharingPolicy, getStep
boolean addReservation(ReservationAllocation reservation, boolean isRecovering) throws PlanningException
ReservationAllocation
to the planreservation
- the ReservationAllocation
to be added to the
planisRecovering
- flag to indicate if reservation is being added as part
of failover or notPlanningException
boolean updateReservation(ReservationAllocation reservation) throws PlanningException
ReservationAllocation
in the plan. This is
required for re-negotiationreservation
- the ReservationAllocation
to be updated the planPlanningException
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 collectionreservationID
- 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 computedPlanningException
void 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 © 2017 Apache Software Foundation. All Rights Reserved.