Package eu.stratosphere.nephele.instance

Examples of eu.stratosphere.nephele.instance.AllocationID


   *        the time the instance was allocated
   */
  public AllocatedSlice(final ClusterInstance hostingInstance, final InstanceType type, final JobID jobID,
      final long allocationTime) {

    this.allocationID = new AllocationID();
    this.hostingInstance = hostingInstance;
    this.type = type;
    this.jobID = jobID;
    this.allocationTime = allocationTime;
  }
View Full Code Here


        synchronized (this.synchronizationObject) {
          boolean instanceFound = false;
          for(LocalInstance instance: localInstances.values()){
            if(!allocatedResources.containsKey(instance)){
              AllocatedResource assignedResource = new AllocatedResource(instance, entry.getKey(),
                  new AllocationID());
              allocatedResources.put(instance, assignedResource);
              assignedResources.add(assignedResource);
              instanceFound = true;
              break;
            }
View Full Code Here

    this.allocatedResources = new ArrayList<AllocatedResource>();
    try {
      final InstanceConnectionInfo ici = new InstanceConnectionInfo(Inet4Address.getLocalHost(), 1, 1);
      final NetworkTopology nt = new NetworkTopology();
      final TestInstance ti = new TestInstance(INSTANCE_TYPE, ici, nt.getRootNode(), nt, hd);
      this.allocatedResources.add(new AllocatedResource(ti, INSTANCE_TYPE, new AllocationID()));
    } catch (UnknownHostException e) {
      throw new RuntimeException(StringUtils.stringifyException(e));
    }
  }
View Full Code Here

            // Assign vertices back to a dummy resource.
            final DummyInstance dummyInstance = DummyInstance.createDummyInstance(allocatedResource
              .getInstance()
              .getType());
            final AllocatedResource dummyResource = new AllocatedResource(dummyInstance,
              allocatedResource.getInstanceType(), new AllocationID());

            while (vertexIter.hasNext()) {
              final ExecutionVertex vertex = vertexIter.next();
              vertex.setAllocatedResource(dummyResource);
            }
View Full Code Here

TOP

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

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.