Uses of Interface
org.apache.hadoop.yarn.server.resourcemanager.reservation.ReservationAllocation
Packages that use ReservationAllocation
Package
Description
-
Uses of ReservationAllocation in org.apache.hadoop.yarn.server.resourcemanager.reservation
Classes in org.apache.hadoop.yarn.server.resourcemanager.reservation that implement ReservationAllocationModifier and TypeClassDescriptionclassAn in memory implementation of a reservation allocation using theRLESparseResourceAllocationMethods in org.apache.hadoop.yarn.server.resourcemanager.reservation that return ReservationAllocationModifier and TypeMethodDescriptionInMemoryPlan.getReservationById(org.apache.hadoop.yarn.api.records.ReservationId reservationID) Methods in org.apache.hadoop.yarn.server.resourcemanager.reservation that return types with arguments of type ReservationAllocationModifier and TypeMethodDescriptionInMemoryPlan.getAllReservations()InMemoryPlan.getReservationByUserAtTime(String user, long t) InMemoryPlan.getReservations(org.apache.hadoop.yarn.api.records.ReservationId reservationID, ReservationInterval interval) InMemoryPlan.getReservations(org.apache.hadoop.yarn.api.records.ReservationId reservationID, ReservationInterval interval, String user) InMemoryPlan.getReservationsAtTime(long tick) 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.Methods in org.apache.hadoop.yarn.server.resourcemanager.reservation with parameters of type ReservationAllocationModifier and TypeMethodDescriptionbooleanInMemoryPlan.addReservation(ReservationAllocation reservation, boolean isRecovering) booleanPlanEdit.addReservation(ReservationAllocation reservation, boolean isRecovering) Add a newReservationAllocationto the plan.static org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProtoReservationSystemUtil.buildStateProto(ReservationAllocation allocation) intInMemoryReservationAllocation.compareTo(ReservationAllocation other) booleanInMemoryPlan.updateReservation(ReservationAllocation reservation) booleanPlanEdit.updateReservation(ReservationAllocation reservation) Updates an existingReservationAllocationin the plan.voidCapacityOverTimePolicy.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).voidNoOverCommitPolicy.validate(Plan plan, ReservationAllocation reservation) voidSharingPolicy.validate(Plan plan, ReservationAllocation newAllocation) This method runs the policy validation logic, and return true/false on whether theReservationAllocationis acceptable according to this sharing policy.Method parameters in org.apache.hadoop.yarn.server.resourcemanager.reservation with type arguments of type ReservationAllocationModifier and TypeMethodDescriptionstatic List<org.apache.hadoop.yarn.api.records.ReservationAllocationState>ReservationSystemUtil.convertAllocationsToReservationInfo(Set<ReservationAllocation> res, boolean includeResourceAllocations) protected intAbstractSchedulerPlanFollower.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. -
Uses of ReservationAllocation in org.apache.hadoop.yarn.server.resourcemanager.reservation.planning
Methods in org.apache.hadoop.yarn.server.resourcemanager.reservation.planning with parameters of type ReservationAllocationModifier and TypeMethodDescriptionprotected booleanPlanningAlgorithm.allocateUser(org.apache.hadoop.yarn.api.records.ReservationId reservationId, String user, Plan plan, org.apache.hadoop.yarn.api.records.ReservationDefinition contract, ReservationAllocation oldReservation) Performs the actual allocation for a ReservationDefinition within a Plan.