Package eu.stratosphere.runtime.io.channels

Examples of eu.stratosphere.runtime.io.channels.ChannelID


    setChannelType(descriptor.getChannelType());

    for (int i = 0; i < numChannels; i++) {
      ChannelDeploymentDescriptor channelDescriptor = descriptor.getChannelDescriptor(i);

      ChannelID id = channelDescriptor.getOutputChannelID();
      ChannelID connectedId = channelDescriptor.getInputChannelID();

      this.channels[i] = new OutputChannel(this, i, id, connectedId, getChannelType());
    }
  }
View Full Code Here


    if (in.readBoolean()) {
      this.remoteTarget = new RemoteReceiver();
      this.remoteTarget.read(in);
    }
    if (in.readBoolean()) {
      this.localTarget = new ChannelID();
      this.localTarget.read(in);
    }
  }
View Full Code Here

    this.remoteReceiver = remoteReceiver;
  }

  public SenderHintEvent() {

    this.source = new ChannelID();
    this.remoteReceiver = new RemoteReceiver();
  }
View Full Code Here

    // Only generate sender hints for output channels
    if (channel.isInputChannel()) {
      return;
    }

    final ChannelID targetChannelID = channel.getConnectedId();
    final int connectionIndex = receiver.getConnectionIndex();

    final RemoteReceiver ourAddress = new RemoteReceiver(this.ourAddress, connectionIndex);
    final Envelope senderHint = SenderHintEvent.createEnvelopeWithEvent(envelope, targetChannelID, ourAddress);
View Full Code Here

   
    boolean success = false;
   
    try {
      if (receiverList.hasLocalReceiver()) {
        ChannelID receiver = receiverList.getLocalReceiver();
        Channel channel = this.channels.get(receiver);

        if (channel == null) {
          throw new LocalReceiverCancelledException(receiver);
        }
View Full Code Here

    }
   
    EnvelopeReceiverList receiverList = getReceiverListForEnvelope(envelope, true);

    if (receiverList.hasLocalReceiver()) {
      ChannelID receiver = receiverList.getLocalReceiver();
      Channel channel = this.channels.get(receiver);

      if (channel == null) {
        throw new LocalReceiverCancelledException(receiver);
      }
View Full Code Here

    if (!receiverList.hasLocalReceiver() || receiverList.hasRemoteReceiver()) {
      throw new IOException("Bug in network stack: Envelope dispatched from the incoming network pipe has no local receiver or has a remote receiver");
    }

    ChannelID localReceiver = receiverList.getLocalReceiver();
    Channel channel = this.channels.get(localReceiver);
   
    // if the channel is null, it means that receiver has been cleared already (cancelled or failed).
    // release the buffer immediately
    if (channel == null) {
View Full Code Here

    if (!receiverList.hasLocalReceiver() || receiverList.hasRemoteReceiver()) {
      throw new IOException("The destination to be looked up is not a single local endpoint.");
    }
   

    ChannelID localReceiver = receiverList.getLocalReceiver();
    Channel channel = this.channels.get(localReceiver);
   
    if (channel == null) {
      // receiver is already canceled
      return this.discardBufferPool;
View Full Code Here

  /**
   * Default constructor for serialization/deserialization.
   */
  public ChannelDeploymentDescriptor() {

    this.outputChannelID = new ChannelID();
    this.inputChannelID = new ChannelID();
  }
View Full Code Here

        // Check if a wire is supposed to be created
        if (DistributionPatternProvider.createWire(groupEdge.getDistributionPattern(),
          i, j, currentNumberOfSourceNodes, currentNumberOfTargetNodes)) {

          final ChannelID outputChannelID = new ChannelID();
          final ChannelID inputChannelID = new ChannelID();

          final ExecutionEdge edge = new ExecutionEdge(outputGate, inputGate, groupEdge, outputChannelID,
            inputChannelID, outputGate.getNumberOfEdges(), inputGate.getNumberOfEdges());

          this.edgeMap.put(outputChannelID, edge);
View Full Code Here

TOP

Related Classes of eu.stratosphere.runtime.io.channels.ChannelID

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.