Class ScoringTargetWeightCalculator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​pl.allegro.tech.hermes.consumers.supervisor.workload.weighted.Weight> calculate​(java.util.Collection<pl.allegro.tech.hermes.consumers.supervisor.workload.weighted.ConsumerNode> consumers)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScoringTargetWeightCalculator

        public ScoringTargetWeightCalculator​(WeightedWorkloadMetrics metrics,
                                             java.time.Clock clock,
                                             java.time.Duration scoringWindowSize,
                                             double scoringGain)
    • Method Detail

      • calculate

        public java.util.Map<java.lang.String,​pl.allegro.tech.hermes.consumers.supervisor.workload.weighted.Weight> calculate​(java.util.Collection<pl.allegro.tech.hermes.consumers.supervisor.workload.weighted.ConsumerNode> consumers)
        Specified by:
        calculate in interface TargetWeightCalculator