Package org.apache.aurora.scheduler.stats.ResourceCounter

Examples of org.apache.aurora.scheduler.stats.ResourceCounter.Metric


        storeProvider.getQuotaStore()
            .saveQuota("b", IResourceAggregate.build(new ResourceAggregate(2, 3, 4)));
      }
    });

    assertEquals(new Metric(3, 4, 5), resourceCounter.computeQuotaAllocationTotals());
  }
View Full Code Here


        task("lil", "jobG", "g"1, GB, GB, PRODUCTION,    FINISHED,   NOT_DEDICATED)
    );

    assertEquals(
        ImmutableMap.of(
            JobKeys.from("bob", "test", "jobA"), new Metric(1, 1 * GB, 1 * GB),
            JobKeys.from("bob", "test", "jobB"), new Metric(2, 2 * GB, 2 * GB)
        ),
        resourceCounter.computeAggregates(Query.roleScoped("bob"), IS_PRODUCTION, INFO_TO_JOB_KEY)
    );
  }
View Full Code Here

        storeProvider.getQuotaStore()
            .saveQuota("b", IResourceAggregate.build(new ResourceAggregate(2, 3, 4)));
      }
    });

    assertEquals(new Metric(3, 4, 5), resourceCounter.computeQuotaAllocationTotals());
  }
View Full Code Here

        task("lil", "jobG", "g"1, GB, GB, PRODUCTION,    FINISHED,   NOT_DEDICATED)
    );

    assertEquals(
        ImmutableMap.of(
            JobKeys.from("bob", "test", "jobA"), new Metric(1, 1 * GB, 1 * GB),
            JobKeys.from("bob", "test", "jobB"), new Metric(2, 2 * GB, 2 * GB)
        ),
        resourceCounter.computeAggregates(Query.roleScoped("bob"), IS_PRODUCTION, INFO_TO_JOB_KEY)
    );
  }
View Full Code Here

TOP

Related Classes of org.apache.aurora.scheduler.stats.ResourceCounter.Metric

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.