public static Org.Apache.Hadoop.Yarn.Api.Records.Resource Max(ResourceCalculator resourceCalculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource clusterResource, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, Org.Apache.Hadoop.Yarn.Api.Records.Resource rhs) { return(resourceCalculator.Compare(clusterResource, lhs, rhs) >= 0 ? lhs : rhs); }
public static Org.Apache.Hadoop.Yarn.Api.Records.Resource Normalize(ResourceCalculator calculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, Org.Apache.Hadoop.Yarn.Api.Records.Resource min, Org.Apache.Hadoop.Yarn.Api.Records.Resource max, Org.Apache.Hadoop.Yarn.Api.Records.Resource increment) { return(calculator.Normalize(lhs, min, max, increment)); }
public TestResourceCalculator(ResourceCalculator rs) { this.resourceCalculator = rs; }
public static bool GreaterThanOrEqual(ResourceCalculator resourceCalculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource clusterResource, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, Org.Apache.Hadoop.Yarn.Api.Records.Resource rhs) { return(resourceCalculator.Compare(clusterResource, lhs, rhs) >= 0); }
public static bool LessThan(ResourceCalculator resourceCalculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource clusterResource, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, Org.Apache.Hadoop.Yarn.Api.Records.Resource rhs) { return(resourceCalculator.Compare(clusterResource, lhs, rhs) < 0); }
public static Org.Apache.Hadoop.Yarn.Api.Records.Resource DivideAndCeil(ResourceCalculator resourceCalculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, int rhs) { return(resourceCalculator.DivideAndCeil(lhs, rhs)); }
public static float Divide(ResourceCalculator resourceCalculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource clusterResource, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, Org.Apache.Hadoop.Yarn.Api.Records.Resource rhs) { return(resourceCalculator.Divide(clusterResource, lhs, rhs)); }
public static float Ratio(ResourceCalculator resourceCalculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, Org.Apache.Hadoop.Yarn.Api.Records.Resource rhs) { return(resourceCalculator.Ratio(lhs, rhs)); }
public static bool IsInvalidDivisor(ResourceCalculator resourceCalculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource divisor) { return(resourceCalculator.IsInvalidDivisor(divisor)); }
public static Org.Apache.Hadoop.Yarn.Api.Records.Resource RoundDown(ResourceCalculator calculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, Org.Apache.Hadoop.Yarn.Api.Records.Resource factor) { return(calculator.RoundDown(lhs, factor)); }
public static Org.Apache.Hadoop.Yarn.Api.Records.Resource MultiplyAndNormalizeDown (ResourceCalculator calculator, Org.Apache.Hadoop.Yarn.Api.Records.Resource lhs, double by, Org.Apache.Hadoop.Yarn.Api.Records.Resource factor) { return(calculator.MultiplyAndNormalizeDown(lhs, by, factor)); }