Package org.apache.aurora.scheduler.stats.SlotSizeCounter

Examples of org.apache.aurora.scheduler.stats.SlotSizeCounter.MachineResource


  @Test
  public void testTinyOffers() {
    expectStatExport();
    expectGetSlots(
        new MachineResource(IResourceAggregate.build(new ResourceAggregate(0.1, 1, 1)), false));

    control.replay();

    slotCounter.run();
    assertEquals(0, smallCounter.get());
View Full Code Here


  @Test
  public void testStarvedResourceVector() {
    expectStatExport();
    expectGetSlots(
        new MachineResource(
            IResourceAggregate.build(new ResourceAggregate(1000, 16384, 1)), false));

    control.replay();

    slotCounter.run();
View Full Code Here

  @Test
  public void testCountSlots() {
    expectStatExport();
    expectGetSlots(
        new MachineResource(SMALL, false),
        new MachineResource(SMALL, false),
        new MachineResource(LARGE, false),
        new MachineResource(ResourceAggregates.scale(LARGE, 4), false),
        new MachineResource(IResourceAggregate.build(new ResourceAggregate(1, 1, 1)), false),
        new MachineResource(SMALL, true),
        new MachineResource(SMALL, true),
        new MachineResource(ResourceAggregates.scale(SMALL, 2), true));

    control.replay();

    slotCounter.run();
    assertEquals(22, smallCounter.get());
View Full Code Here

TOP

Related Classes of org.apache.aurora.scheduler.stats.SlotSizeCounter.MachineResource

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.