Package org.apache.tajo.master.rm

Examples of org.apache.tajo.master.rm.TajoWorkerResourceManager.stop()


    assertEquals(numWorkers, tajoWorkerResourceManager.getWorkers().size());
    for(WorkerResource eachWorker: tajoWorkerResourceManager.getWorkers().values()) {
      assertEquals(workerMemoryMB, eachWorker.getAvailableMemoryMB());
      assertEquals(workerDiskSlots, eachWorker.getAvailableDiskSlots(), 0);
    }
    tajoWorkerResourceManager.stop();
  }

  @Test
  public void testMemoryResource() throws Exception {
    TajoWorkerResourceManager tajoWorkerResourceManager = initResourceManager(false);
View Full Code Here


      assertEquals(workerDiskSlots, eachWorker.getAvailableDiskSlots(), 0);
      assertEquals(0.0f, eachWorker.getUsedDiskSlots(), 0);
    }

    tajoWorkerResourceManager.stop();
  }

  @Test
  public void testMemoryNotCommensurable() throws Exception {
    TajoWorkerResourceManager tajoWorkerResourceManager = initResourceManager(false);
View Full Code Here

      assertEquals(0.0f, eachWorker.getUsedDiskSlots(), 0);
      assertEquals(workerDiskSlots, eachWorker.getAvailableDiskSlots(), 0);
    }

    tajoWorkerResourceManager.stop();
  }

  @Test
  public void testDiskResource() throws Exception {
    TajoWorkerResourceManager tajoWorkerResourceManager = initResourceManager(false);
View Full Code Here

      assertEquals(workerDiskSlots, eachWorker.getAvailableDiskSlots(), 0);
      assertEquals(0.0f, eachWorker.getUsedDiskSlots(), 0);
    }

    tajoWorkerResourceManager.stop();
  }

  @Test
  public void testQueryMasterResource() throws Exception {
    TajoWorkerResourceManager tajoWorkerResourceManager = initResourceManager(true);
View Full Code Here

      assertEquals(0, eachWorker.getUsedDiskSlots(), 0);
      totalUsedMemory += eachWorker.getUsedMemoryMB();
      totalUsedDisks += eachWorker.getUsedDiskSlots();
    }

    tajoWorkerResourceManager.stop();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.