Package org.apache.aurora.scheduler.sla.SlaAlgorithm

Examples of org.apache.aurora.scheduler.sla.SlaAlgorithm.AlgorithmType


    for (Entry<AlgorithmType, GroupType> slaMetric : METRICS.entries()) {
      for (Entry<String, Collection<IScheduledTask>> namedGroup
          : slaMetric.getValue().getSlaGroup().createNamedGroups(tasks).asMap().entrySet()) {

        AlgorithmType algoType = slaMetric.getKey();
        String metricName = namedGroup.getKey() + algoType.getAlgorithmName();
        metricCache.getUnchecked(metricName)
            .set(metricName, algoType.getAlgorithm().calculate(
                namedGroup.getValue(),
                Range.closedOpen(intervalStartMs, nowMs)));
      }
    }
  }
View Full Code Here


    for (Entry<AlgorithmType, GroupType> slaMetric : metrics.entries()) {
      for (Entry<String, Collection<IScheduledTask>> namedGroup
          : slaMetric.getValue().getSlaGroup().createNamedGroups(tasks).asMap().entrySet()) {

        AlgorithmType algoType = slaMetric.getKey();
        String metricName = namedGroup.getKey() + algoType.getAlgorithmName();
        metricCache.getUnchecked(metricName)
            .set(metricName, algoType.getAlgorithm().calculate(namedGroup.getValue(), timeRange));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.aurora.scheduler.sla.SlaAlgorithm.AlgorithmType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.