Package eu.stratosphere.nephele.instance

Examples of eu.stratosphere.nephele.instance.InstanceException


              for (final AllocatedSlice sliceToRelease : newlyAllocatedSlicesOfJob) {
                sliceToRelease.getHostingInstance().removeAllocatedSlice(sliceToRelease.getAllocationID());
              }
 
              // TODO: Remove previously allocated slices again
              throw new InstanceException("Could not find a suitable instance");
            } else {
 
              // Remaining instances are pending
              final int numberOfRemainingInstances = maximumNumberOfInstances - i;
              if (numberOfRemainingInstances > 0) {
View Full Code Here


        if(allocatedResources.get(instance).equals(allocatedResource)){
          allocatedResources.remove(instance);
          return;
        }
      }
      throw new InstanceException("Resource with allocation ID " + allocatedResource.getAllocationID()
          + " has not been allocated to job with ID " + jobID
          + " according to the local instance manager's internal bookkeeping");

    }
  }
View Full Code Here

    }

    if(assignmentSuccessful){
      new LocalInstanceNotifier(this.instanceListener, jobID, assignedResources).start();
    }else{
      throw new InstanceException("Could not satisfy instance request.");
    }
  }
View Full Code Here

  @Override
  public void requestInstance(final JobID jobID, final Configuration conf,
      final InstanceRequestMap instanceRequestMap, final List<String> splitAffinityList) throws InstanceException {

    if (instanceRequestMap.size() != 1) {
      throw new InstanceException(
        "requestInstance of TestInstanceManager expected to receive request for a single instance type");
    }

    if (instanceRequestMap.getMinimumNumberOfInstances(INSTANCE_TYPE) != 1) {
      throw new InstanceException(
        "requestInstance of TestInstanceManager expected to receive request for one instance of type "
          + INSTANCE_TYPE.getIdentifier());
    }

    if (this.instanceListener == null) {
      throw new InstanceException("instanceListener not registered with TestInstanceManager");
    }

    final InstanceListener il = this.instanceListener;

    final Runnable runnable = new Runnable() {
View Full Code Here

TOP

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

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.