public final class TaskScheduleUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Resource |
getResourceRequirement(java.lang.String taskName,
java.util.Map<java.lang.String,java.lang.Double> taskRamMap,
Resource defaultInstanceResource,
Resource maxContainerResource,
int paddingPercentage)
This method gets the resource requirement of task instances, validate and clone the required
task instance ram value.
|
static double |
increaseBy(double value,
int paddingPercentage) |
static long |
increaseBy(long value,
int paddingPercentage) |
public static Resource getResourceRequirement(java.lang.String taskName, java.util.Map<java.lang.String,java.lang.Double> taskRamMap, Resource defaultInstanceResource, Resource maxContainerResource, int paddingPercentage)
public static long increaseBy(long value, int paddingPercentage)
public static double increaseBy(double value, int paddingPercentage)