Examples of ChannelID


Examples of caltrop.interpreter.ChannelID

    }

    private boolean moreDataToRead(Map inputProfile) {
        for (Iterator iterator = inputProfile.keySet().iterator(); iterator
                .hasNext();) {
            ChannelID chID = (ChannelID) iterator.next();

            if (((Integer) inputProfile.get(chID)).intValue() > 0) {
                return true;
            }
        }
View Full Code Here

Examples of caltrop.interpreter.ChannelID

        InputPattern[] inputPatterns = action.getInputPatterns();

        for (int i = 0; i < inputPatterns.length; i++) {
            InputPattern inputPattern = inputPatterns[i];
            int numNeeded = numTokensNeeded(inputPattern);
            List data = (List) dataSoFar.get(new ChannelID(inputPattern
                    .getPortname(), 0));
            int numHave = (data == null) ? 0 : data.size();

            if (numNeeded > numHave) {
                return false;
View Full Code Here

Examples of com.barchart.feed.api.model.meta.id.ChannelID

  public ChannelID channel() {

    if (!def.hasChannel())
      return ChannelID.NULL;

    return new ChannelID(def.getChannel());

  }
View Full Code Here

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

Examples of org.apache.flink.runtime.io.network.channels.ChannelID

    this.remoteReceiver = remoteReceiver;
  }

  public SenderHintEvent() {

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

Examples of org.apache.flink.runtime.io.network.channels.ChannelID

      fail(new Exception("De-registering execution " + exec + " failed. Found for same ID execution " + contained));
    }
  }
 
  void registerExecutionEdge(ExecutionEdge edge) {
    ChannelID target = edge.getInputChannelId();
    ChannelID source = edge.getOutputChannelId();
    edges.put(source, edge);
    edges.put(target, edge);
  }
View Full Code Here

Examples of org.apache.flink.runtime.io.network.channels.ChannelID

    // 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

Examples of org.apache.flink.runtime.io.network.channels.ChannelID

   
    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

Examples of org.apache.flink.runtime.io.network.channels.ChannelID

    }
   
    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

Examples of org.apache.flink.runtime.io.network.channels.ChannelID

    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
TOP
Copyright © 2018 www.massapi.com. 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.