Examples of serializeEventList()


Examples of eu.stratosphere.runtime.io.network.Envelope.serializeEventList()

  public void sendEvent(AbstractEvent event) throws IOException, InterruptedException {
    checkStatus();

    Envelope envelope = createNextEnvelope();
    envelope.serializeEventList(Arrays.asList(event));
    this.envelopeDispatcher.dispatchFromOutputChannel(envelope);
  }

  public void sendBufferAndEvent(Buffer buffer, AbstractEvent event) throws IOException, InterruptedException {
    checkStatus();
View Full Code Here

Examples of eu.stratosphere.runtime.io.network.Envelope.serializeEventList()

  public void sendBufferAndEvent(Buffer buffer, AbstractEvent event) throws IOException, InterruptedException {
    checkStatus();

    Envelope envelope = createNextEnvelope();
    envelope.setBuffer(buffer);
    envelope.serializeEventList(Arrays.asList(event));
    this.envelopeDispatcher.dispatchFromOutputChannel(envelope);
  }

  // -----------------------------------------------------------------------------------------------------------------
  //                                          Event processing
View Full Code Here

Examples of eu.stratosphere.runtime.io.network.Envelope.serializeEventList()

    }

    this.senderCloseRequested = true;

    Envelope envelope = createNextEnvelope();
    envelope.serializeEventList(Arrays.asList(new ChannelCloseEvent()));
    this.envelopeDispatcher.dispatchFromOutputChannel(envelope);
  }

  @Override
  public boolean isClosed() {
View Full Code Here

Examples of eu.stratosphere.runtime.io.network.Envelope.serializeEventList()

    }
  }

  public void transferEventToOutputChannel(AbstractEvent event) throws IOException, InterruptedException {
    Envelope ephemeralEnvelope = new Envelope(0, getJobID(), getID());
    ephemeralEnvelope.serializeEventList(Arrays.asList(event));

    this.envelopeDispatcher.dispatchFromInputChannel(ephemeralEnvelope);
  }
}
View Full Code Here

Examples of eu.stratosphere.runtime.io.network.Envelope.serializeEventList()

      env.setBuffer(spy(new Buffer(new MemorySegment(data), bufferSize, RECYCLER)));
    }

    if (events != null && events.length > 0) {
      env.serializeEventList(Arrays.asList(events));
    }

    return env;
  }
View Full Code Here

Examples of org.apache.flink.runtime.io.network.Envelope.serializeEventList()

      env.setBuffer(spy(new Buffer(new MemorySegment(data), bufferSize, RECYCLER)));
    }

    if (events != null && events.length > 0) {
      env.serializeEventList(Arrays.asList(events));
    }

    return env;
  }
View Full Code Here

Examples of org.apache.flink.runtime.io.network.Envelope.serializeEventList()

  public void sendEvent(AbstractEvent event) throws IOException, InterruptedException {
    checkStatus();

    Envelope envelope = createNextEnvelope();
    envelope.serializeEventList(Arrays.asList(event));
    this.envelopeDispatcher.dispatchFromOutputChannel(envelope);
  }

  public void sendBufferAndEvent(Buffer buffer, AbstractEvent event) throws IOException, InterruptedException {
    checkStatus();
View Full Code Here

Examples of org.apache.flink.runtime.io.network.Envelope.serializeEventList()

  public void sendBufferAndEvent(Buffer buffer, AbstractEvent event) throws IOException, InterruptedException {
    checkStatus();

    Envelope envelope = createNextEnvelope();
    envelope.setBuffer(buffer);
    envelope.serializeEventList(Arrays.asList(event));
    this.envelopeDispatcher.dispatchFromOutputChannel(envelope);
  }

  // -----------------------------------------------------------------------------------------------------------------
  //                                          Event processing
View Full Code Here

Examples of org.apache.flink.runtime.io.network.Envelope.serializeEventList()

    }

    this.senderCloseRequested = true;

    Envelope envelope = createNextEnvelope();
    envelope.serializeEventList(Arrays.asList(new ChannelCloseEvent()));
    this.envelopeDispatcher.dispatchFromOutputChannel(envelope);
  }

  @Override
  public boolean isClosed() {
View Full Code Here

Examples of org.apache.flink.runtime.io.network.Envelope.serializeEventList()

    }
  }

  public void transferEventToOutputChannel(AbstractEvent event) throws IOException, InterruptedException {
    Envelope ephemeralEnvelope = new Envelope(0, getJobID(), getID());
    ephemeralEnvelope.serializeEventList(Arrays.asList(event));

    this.envelopeDispatcher.dispatchFromInputChannel(ephemeralEnvelope);
  }
}
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.