Class StageAllocatorLowCostAligned.DurationInterval
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.reservation.planning.StageAllocatorLowCostAligned.DurationInterval
- Enclosing class:
- StageAllocatorLowCostAligned
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 Summary
ConstructorsConstructorDescriptionDurationInterval(long startTime, long endTime, double cost, int gangsCanfit) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglongdoubleintvoidsetEndTime(long value) voidsetStartTime(long value) voidsetTotalCost(double value) toString()
-
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
-