Class RoundRobinBalancer

  • All Implemented Interfaces:
    SuiteBalancer

    public class RoundRobinBalancer
    extends java.lang.Object
    implements SuiteBalancer
    A round-robin suite balancer (default for non-assigned suites).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<SuiteBalancer.Assignment> assign​(java.util.Collection<java.lang.String> suiteNames, int slaves, long seed)
      Provide assignments for suite names and a given number of slaves.
      void setOwner​(JUnit4 owner)
      Sets the owner task (for logging mostly).
      • Methods inherited from class java.lang.Object

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

      • RoundRobinBalancer

        public RoundRobinBalancer()
    • Method Detail

      • assign

        public java.util.List<SuiteBalancer.Assignment> assign​(java.util.Collection<java.lang.String> suiteNames,
                                                               int slaves,
                                                               long seed)
        Description copied from interface: SuiteBalancer
        Provide assignments for suite names and a given number of slaves.
        Specified by:
        assign in interface SuiteBalancer
        Returns:
        Returns an ordered list with assignments. Any suite name not present in the keys of the returned map will be assigned by following balancers (or randomly).