| Package | Description |
|---|---|
| org.apache.hadoop.yarn.server.resourcemanager.reservation | |
| org.apache.hadoop.yarn.server.resourcemanager.reservation.planning | |
| org.apache.hadoop.yarn.server.resourcemanager.webapp.dao |
This package contains the web data access objects (DAO) for the RM.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
InMemoryReservationAllocation.getAllocationRequests() |
|
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
ReservationAllocation.getAllocationRequests() |
Returns the map of resources requested against the time interval for which
they were.
|
static java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
ReservationSystemUtil.toAllocations(java.util.List<org.apache.hadoop.yarn.proto.YarnProtos.ResourceAllocationRequestProto> allocationRequestsList) |
|
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
RLESparseResourceAllocation.toIntervalMap() |
Returns the representation of the current resources allocated over time as
an interval map (in the defined non-null range).
|
static java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
ReservationSystemUtil.toResources(java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.ReservationRequest> allocations) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
PeriodicRLESparseResourceAllocation.addInterval(ReservationInterval interval,
org.apache.hadoop.yarn.api.records.Resource resource) |
Add resource for the specified interval.
|
boolean |
RLESparseResourceAllocation.addInterval(ReservationInterval reservationInterval,
org.apache.hadoop.yarn.api.records.Resource totCap) |
Add a resource for the specified interval.
|
int |
ReservationInterval.compareTo(ReservationInterval anotherInterval) |
|
org.apache.hadoop.yarn.api.records.Resource |
RLESparseResourceAllocation.getMinimumCapacityInInterval(ReservationInterval interval) |
Get the minimum capacity in the specified time range.
|
java.util.Set<ReservationAllocation> |
InMemoryPlan.getReservations(org.apache.hadoop.yarn.api.records.ReservationId reservationID,
ReservationInterval interval) |
|
java.util.Set<ReservationAllocation> |
InMemoryPlan.getReservations(org.apache.hadoop.yarn.api.records.ReservationId reservationID,
ReservationInterval interval,
java.lang.String user) |
|
boolean |
PeriodicRLESparseResourceAllocation.removeInterval(ReservationInterval interval,
org.apache.hadoop.yarn.api.records.Resource resource) |
Removes a resource for the specified interval.
|
boolean |
RLESparseResourceAllocation.removeInterval(ReservationInterval reservationInterval,
org.apache.hadoop.yarn.api.records.Resource totCap) |
Removes a resource for the specified interval.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
ReservationSystemUtil.toResources(java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.ReservationRequest> allocations) |
| Constructor | Description |
|---|---|
InMemoryReservationAllocation(org.apache.hadoop.yarn.api.records.ReservationId reservationID,
org.apache.hadoop.yarn.api.records.ReservationDefinition contract,
java.lang.String user,
java.lang.String planName,
long startTime,
long endTime,
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> allocations,
org.apache.hadoop.yarn.util.resource.ResourceCalculator calculator,
org.apache.hadoop.yarn.api.records.Resource minAlloc) |
|
InMemoryReservationAllocation(org.apache.hadoop.yarn.api.records.ReservationId reservationID,
org.apache.hadoop.yarn.api.records.ReservationDefinition contract,
java.lang.String user,
java.lang.String planName,
long startTime,
long endTime,
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> allocations,
org.apache.hadoop.yarn.util.resource.ResourceCalculator calculator,
org.apache.hadoop.yarn.api.records.Resource minAlloc,
boolean hasGang) |
| Modifier and Type | Method | Description |
|---|---|---|
ReservationInterval |
StageExecutionInterval.computeExecutionInterval(Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition reservation,
org.apache.hadoop.yarn.api.records.ReservationRequest currentReservationStage,
boolean allocateLeft,
RLESparseResourceAllocation allocations) |
Computes the earliest allowed starting time for a given stage.
|
ReservationInterval |
StageExecutionIntervalByDemand.computeExecutionInterval(Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition reservation,
org.apache.hadoop.yarn.api.records.ReservationRequest currentReservationStage,
boolean allocateLeft,
RLESparseResourceAllocation allocations) |
|
ReservationInterval |
StageExecutionIntervalUnconstrained.computeExecutionInterval(Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition reservation,
org.apache.hadoop.yarn.api.records.ReservationRequest currentReservationStage,
boolean allocateLeft,
RLESparseResourceAllocation allocations) |
|
protected ReservationInterval |
IterativePlanner.setStageExecutionInterval(Plan plan,
org.apache.hadoop.yarn.api.records.ReservationDefinition reservation,
org.apache.hadoop.yarn.api.records.ReservationRequest currentReservationStage,
RLESparseResourceAllocation allocations) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
IterativePlanner.computeStageAllocation(Plan plan,
org.apache.hadoop.yarn.api.records.ReservationRequest rr,
long stageArrivalTime,
long stageDeadline,
long period,
java.lang.String user,
org.apache.hadoop.yarn.api.records.ReservationId oldId) |
|
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
StageAllocator.computeStageAllocation(Plan plan,
RLESparseResourceAllocation planLoads,
RLESparseResourceAllocation planModifications,
org.apache.hadoop.yarn.api.records.ReservationRequest rr,
long stageArrival,
long stageDeadline,
long period,
java.lang.String user,
org.apache.hadoop.yarn.api.records.ReservationId oldId) |
Computes the allocation of a stage inside a defined time interval.
|
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
StageAllocatorGreedy.computeStageAllocation(Plan plan,
RLESparseResourceAllocation planLoads,
RLESparseResourceAllocation planModifications,
org.apache.hadoop.yarn.api.records.ReservationRequest rr,
long stageEarliestStart,
long stageDeadline,
long period,
java.lang.String user,
org.apache.hadoop.yarn.api.records.ReservationId oldId) |
|
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
StageAllocatorGreedyRLE.computeStageAllocation(Plan plan,
RLESparseResourceAllocation planLoads,
RLESparseResourceAllocation planModifications,
org.apache.hadoop.yarn.api.records.ReservationRequest rr,
long stageEarliestStart,
long stageDeadline,
long period,
java.lang.String user,
org.apache.hadoop.yarn.api.records.ReservationId oldId) |
|
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> |
StageAllocatorLowCostAligned.computeStageAllocation(Plan plan,
RLESparseResourceAllocation planLoads,
RLESparseResourceAllocation planModifications,
org.apache.hadoop.yarn.api.records.ReservationRequest rr,
long stageArrival,
long stageDeadline,
long period,
java.lang.String user,
org.apache.hadoop.yarn.api.records.ReservationId oldId) |
| Modifier and Type | Method | Description |
|---|---|---|
protected static long |
PlanningAlgorithm.findEarliestTime(java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> sesInt) |
|
protected static long |
PlanningAlgorithm.findLatestTime(java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> sesInt) |
|
protected static boolean |
IterativePlanner.validateOrderNoGap(RLESparseResourceAllocation allocations,
java.util.Map<ReservationInterval,org.apache.hadoop.yarn.api.records.Resource> curAlloc,
boolean allocateLeft) |
| Constructor | Description |
|---|---|
ResourceAllocationInfo(ReservationInterval interval,
org.apache.hadoop.yarn.api.records.Resource res) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.