Package eu.stratosphere.nephele.instance

Examples of eu.stratosphere.nephele.instance.AbstractInstance


    if (!alreadyVisited.add(vertex)) {
      return;
    }

    if (vertex.compareAndUpdateExecutionState(ExecutionState.ASSIGNED, ExecutionState.READY)) {
      final AbstractInstance instance = vertex.getAllocatedResource().getInstance();

      if (instance instanceof DummyInstance) {
        LOG.error("Inconsistency: Vertex " + vertex + " is about to be deployed on a DummyInstance");
      }
View Full Code Here


    final Iterator<Map.Entry<AbstractInstance, Set<ChannelID>>> it = entriesToInvalidate.entrySet().iterator();

    while (it.hasNext()) {

      final Map.Entry<AbstractInstance, Set<ChannelID>> entry = it.next();
      final AbstractInstance instance = entry.getKey();

      try {
        instance.invalidateLookupCacheEntries(entry.getValue());
      } catch (IOException ioe) {
        LOG.error(StringUtils.stringifyException(ioe));
        return false;
      }
    }
View Full Code Here

        if (connectedVertex == null) {
          LOG.error("Connected vertex is null");
          continue;
        }

        final AbstractInstance instance = connectedVertex.getAllocatedResource().getInstance();
        if (instance instanceof DummyInstance) {
          continue;
        }

        Set<ChannelID> channelIDs = entriesToInvalidate.get(instance);
        if (channelIDs == null) {
          channelIDs = new SerializableHashSet<ChannelID>();
          entriesToInvalidate.put(instance, channelIDs);
        }

        channelIDs.add(outputChannel.getInputChannelID());
      }
    }

    for (int i = 0; i < vertex.getNumberOfInputGates(); ++i) {

      final ExecutionGate inputGate = vertex.getInputGate(i);
      for (int j = 0; j < inputGate.getNumberOfEdges(); ++j) {

        final ExecutionEdge inputChannel = inputGate.getEdge(j);

        final ExecutionVertex connectedVertex = inputChannel.getOutputGate().getVertex();
        if (connectedVertex == null) {
          LOG.error("Connected vertex is null");
          continue;
        }

        final AbstractInstance instance = connectedVertex.getAllocatedResource().getInstance();
        if (instance instanceof DummyInstance) {
          continue;
        }

        Set<ChannelID> channelIDs = entriesToInvalidate.get(instance);
View Full Code Here

TOP

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

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.