Package eu.stratosphere.nephele.instance

Examples of eu.stratosphere.nephele.instance.InstanceType


 
      LocalInstanceManager lm = (LocalInstanceManager) jm.getInstanceManager(); // this is for sure, because I chose the local strategy
      try {
        lm.setInstanceListener(testInstanceListener);
 
        final InstanceType defaultInstanceType = lm.getDefaultInstanceType();
        assertEquals("test", defaultInstanceType.getIdentifier());
        assertEquals(4, defaultInstanceType.getNumberOfComputeUnits());
        assertEquals(4, defaultInstanceType.getNumberOfCores());
        assertEquals(1024, defaultInstanceType.getMemorySize());
        assertEquals(160, defaultInstanceType.getDiskCapacity());
        assertEquals(0, defaultInstanceType.getPricePerHour());
 
      } catch (Exception e) {
        e.printStackTrace();
        Assert.fail("Instantiation of LocalInstanceManager failed: " + e.getMessage());
      } finally {
View Full Code Here


    final int numCores = 8;
    final int memorySize = 32 * 1024;
    final int diskCapacity = 200;
    final int pricePerHour = 10;

    final InstanceType capacity = InstanceTypeFactory.construct(identifier, numComputeUnits, numCores, memorySize,
      diskCapacity,
      pricePerHour);

    final InstanceConnectionInfo instanceConnectionInfo = new InstanceConnectionInfo(inetAddress, ipcPort, dataPort);

View Full Code Here

    final JobID jobID = new JobID();
    final int numComputeUnits = 8 / 8;
    final int numCores = 8 / 8;
    final int memorySize = 32 * 1024 / 8;
    final int diskCapacity = 200 / 8;
    final InstanceType type = InstanceTypeFactory.construct("dummy", numComputeUnits, numCores, memorySize,
      diskCapacity, -1);
    for (int run = 0; run < 2; ++run) {
      // do this twice to check that everything is correctly freed
      AllocatedSlice[] slices = new AllocatedSlice[8];
      for (int i = 0; i < 8; ++i) {
View Full Code Here

    final JobID jobID = new JobID();
    final int numComputeUnits = 8 / 8;
    final int numCores = 8 / 8;
    final int memorySize = 32 * 1024 / 8;
    final int diskCapacity = 200 / 8;
    final InstanceType type = InstanceTypeFactory.construct("dummy", numComputeUnits, numCores, memorySize,
      diskCapacity, -1);
    for (int run = 0; run < 2; ++run) {
      // do this twice to check that everything is correctly freed
      AllocatedSlice[] slices = new AllocatedSlice[8];
      for (int i = 0; i < 8; ++i) {
View Full Code Here

   
    this.noStatsCompiler = new PactCompiler(null, new DefaultCostEstimator(), dummyAddr);
    this.noStatsCompiler.setDefaultDegreeOfParallelism(DEFAULT_PARALLELISM);
   
    // create the instance type description
    InstanceType iType = InstanceTypeFactory.construct("standard", 6, 2, 4096, 100, 0);
    HardwareDescription hDesc = HardwareDescriptionFactory.construct(2, 4096 * 1024 * 1024, 2000 * 1024 * 1024);
    this.instanceType = InstanceTypeDescriptionFactory.construct(iType, hDesc, DEFAULT_PARALLELISM * 2);
  }
 
View Full Code Here

TOP

Related Classes of eu.stratosphere.nephele.instance.InstanceType

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.