Package com.carrotsearch.ant.tasks.junit4.slave

Examples of com.carrotsearch.ant.tasks.junit4.slave.SlaveMain


   * that should be load-balanced dynamically based on job stealing.
   */
  private List<String> loadBalanceSuites(List<SlaveInfo> slaveInfos,
      List<String> testClassNames, List<SuiteBalancer> balancers) {
    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Go through all the balancers, the first one to assign a suite wins.
    final Multiset<String> remaining = HashMultiset.create(testClassNames);
    final Map<Integer,List<Assignment>> perJvmAssignments = Maps.newHashMap();
    for (SlaveInfo si : slaveInfos) {
View Full Code Here


    };
    Collection<String> replicated = Collections2.transform(partitioned.get(true), extractClassName);
    Collection<String> suites     = Collections2.transform(partitioned.get(false), extractClassName);

    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Go through all the balancers, the first one to assign a suite wins.
    final Multiset<String> remaining = HashMultiset.create(suites);
    final Map<Integer,List<Assignment>> perJvmAssignments = Maps.newHashMap();
    for (ForkedJvmInfo si : jvmInfo) {
View Full Code Here

   * that should be load-balanced dynamically based on job stealing.
   */
  private List<String> loadBalanceSuites(List<SlaveInfo> slaveInfos,
      List<String> testClassNames, List<SuiteBalancer> balancers) {
    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Go through all the balancers, the first one to assign a suite wins.
    final Multiset<String> remaining = HashMultiset.create(testClassNames);
    final Map<Integer,List<Assignment>> perJvmAssignments = Maps.newHashMap();
    for (SlaveInfo si : slaveInfos) {
View Full Code Here

   * that should be load-balanced dynamically based on job stealing.
   */
  private List<String> loadBalanceSuites(List<SlaveInfo> slaveInfos,
      List<String> testClassNames, List<SuiteBalancer> balancers) {
    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Go through all the balancers, the first one to assign a suite wins.
    final Multiset<String> remaining = HashMultiset.create(testClassNames);
    final Map<Integer,List<Assignment>> perJvmAssignments = Maps.newHashMap();
    for (SlaveInfo si : slaveInfos) {
View Full Code Here

   * that should be load-balanced dynamically based on job stealing.
   */
  private List<String> loadBalanceSuites(List<SlaveInfo> slaveInfos,
      List<String> testClassNames, List<SuiteBalancer> balancers) {
    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Go through all the balancers, the first one to assign a suite wins.
    final Multiset<String> remaining = HashMultiset.create(testClassNames);
    final Map<Integer,List<Assignment>> perJvmAssignments = Maps.newHashMap();
    for (SlaveInfo si : slaveInfos) {
View Full Code Here

    };
    Collection<String> replicated = Collections2.transform(partitioned.get(true), extractClassName);
    Collection<String> suites     = Collections2.transform(partitioned.get(false), extractClassName);

    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Go through all the balancers, the first one to assign a suite wins.
    final Multiset<String> remaining = HashMultiset.create(suites);
    final Map<Integer,List<Assignment>> perJvmAssignments = Maps.newHashMap();
    for (ForkedJvmInfo si : jvmInfo) {
View Full Code Here

   * that should be load-balanced dynamically based on job stealing.
   */
  private List<String> loadBalanceSuites(List<SlaveInfo> slaveInfos,
      List<String> testClassNames, List<SuiteBalancer> balancers) {
    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Initialize per-slave lists.
    for (SlaveInfo si : slaveInfos) {
      si.testSuites = Lists.newArrayList();
    }
View Full Code Here

   * that should be load-balanced dynamically based on job stealing.
   */
  private List<String> loadBalanceSuites(List<SlaveInfo> slaveInfos,
      List<String> testClassNames, List<SuiteBalancer> balancers) {
    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Go through all the balancers, the first one to assign a suite wins.
    final Multiset<String> remaining = HashMultiset.create(testClassNames);
    final Map<Integer,List<Assignment>> perJvmAssignments = Maps.newHashMap();
    for (SlaveInfo si : slaveInfos) {
View Full Code Here

    };
    Collection<String> replicated = Collections2.transform(partitioned.get(true), extractClassName);
    Collection<String> suites     = Collections2.transform(partitioned.get(false), extractClassName);

    final List<SuiteBalancer> balancersWithFallback = Lists.newArrayList(balancers);
    balancersWithFallback.add(new RoundRobinBalancer());

    // Go through all the balancers, the first one to assign a suite wins.
    final Multiset<String> remaining = HashMultiset.create(suites);
    final Map<Integer,List<Assignment>> perJvmAssignments = Maps.newHashMap();
    for (ForkedJvmInfo si : jvmInfo) {
View Full Code Here

      int moveToCommon = (int) (slaveSuites.size() * dynamicAssignmentRatio);
      if (moveToCommon > 0) {
        List<String> sublist =
            slaveSuites.subList(slaveSuites.size() - moveToCommon, slaveSuites.size());
        for (String suiteName : sublist) {
          stealingQueueWithHints.add(new SuiteHint(suiteName, allCosts.get(suiteName).estimatedCost));
        }
        sublist.clear();
      }
    }
   
View Full Code Here

TOP

Related Classes of com.carrotsearch.ant.tasks.junit4.slave.SlaveMain

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.