Search in sources :

Example 1 with NonRecordWriter

use of org.apache.flink.runtime.io.network.api.writer.NonRecordWriter in project flink by apache.

the class StreamTaskExecutionDecorationTest method before.

@Before
public void before() throws Exception {
    mailbox = new TaskMailboxImpl();
    decorator = new CountingStreamTaskActionExecutor();
    task = new StreamTask<Object, StreamOperator<Object>>(new DeclineDummyEnvironment(), null, FatalExitExceptionHandler.INSTANCE, decorator, mailbox) {

        @Override
        protected void init() {
        }

        @Override
        protected void processInput(MailboxDefaultAction.Controller controller) {
        }
    };
    task.operatorChain = new RegularOperatorChain<>(task, new NonRecordWriter<>());
}
Also used : TaskMailboxImpl(org.apache.flink.streaming.runtime.tasks.mailbox.TaskMailboxImpl) MailboxDefaultAction(org.apache.flink.streaming.runtime.tasks.mailbox.MailboxDefaultAction) NonRecordWriter(org.apache.flink.runtime.io.network.api.writer.NonRecordWriter) StreamOperator(org.apache.flink.streaming.api.operators.StreamOperator) Before(org.junit.Before)

Aggregations

NonRecordWriter (org.apache.flink.runtime.io.network.api.writer.NonRecordWriter)1 StreamOperator (org.apache.flink.streaming.api.operators.StreamOperator)1 MailboxDefaultAction (org.apache.flink.streaming.runtime.tasks.mailbox.MailboxDefaultAction)1 TaskMailboxImpl (org.apache.flink.streaming.runtime.tasks.mailbox.TaskMailboxImpl)1 Before (org.junit.Before)1