Class StageAllocatorLowCostAligned.DurationInterval

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.StageAllocatorLowCostAligned.DurationInterval
Enclosing class:
StageAllocatorLowCostAligned

protected static class StageAllocatorLowCostAligned.DurationInterval extends Object
An inner class that represents an interval, typically of length duration. The class holds the total cost of the interval and the maximal load inside the interval in each dimension (both calculated externally).
  • Constructor Details

    • DurationInterval

      public DurationInterval(long startTime, long endTime, double cost, int gangsCanfit)
  • Method Details

    • canAllocate

      public boolean canAllocate()
    • numCanFit

      public int numCanFit()
    • getStartTime

      public long getStartTime()
    • setStartTime

      public void setStartTime(long value)
    • getEndTime

      public long getEndTime()
    • setEndTime

      public void setEndTime(long value)
    • getTotalCost

      public double getTotalCost()
    • setTotalCost

      public void setTotalCost(double value)
    • toString

      public String toString()
      Overrides:
      toString in class Object