Search in sources :

Example 1 with LastReceivedVertexDataInfo

use of org.apache.flink.runtime.operators.lifecycle.event.OperatorFinishedEvent.LastReceivedVertexDataInfo in project flink by apache.

the class TwoInputTestStreamOperator method finish.

@Override
public void finish() throws Exception {
    collectEvent(new OperatorFinishedEvent(operatorID, getRuntimeContext().getIndexOfThisSubtask(), getRuntimeContext().getAttemptNumber(), lastDataSent, new LastReceivedVertexDataInfo(lastDataReceived)));
    super.finish();
}
Also used : OperatorFinishedEvent(org.apache.flink.runtime.operators.lifecycle.event.OperatorFinishedEvent) LastReceivedVertexDataInfo(org.apache.flink.runtime.operators.lifecycle.event.OperatorFinishedEvent.LastReceivedVertexDataInfo)

Example 2 with LastReceivedVertexDataInfo

use of org.apache.flink.runtime.operators.lifecycle.event.OperatorFinishedEvent.LastReceivedVertexDataInfo in project flink by apache.

the class MultiInputTestOperator method finish.

@Override
public void finish() throws Exception {
    eventQueue.add(new OperatorFinishedEvent(operatorId, getRuntimeContext().getIndexOfThisSubtask(), getRuntimeContext().getAttemptNumber(), lastDataSent.get(), new LastReceivedVertexDataInfo(lastDataReceived)));
    super.finish();
}
Also used : OperatorFinishedEvent(org.apache.flink.runtime.operators.lifecycle.event.OperatorFinishedEvent) LastReceivedVertexDataInfo(org.apache.flink.runtime.operators.lifecycle.event.OperatorFinishedEvent.LastReceivedVertexDataInfo)

Aggregations

OperatorFinishedEvent (org.apache.flink.runtime.operators.lifecycle.event.OperatorFinishedEvent)2 LastReceivedVertexDataInfo (org.apache.flink.runtime.operators.lifecycle.event.OperatorFinishedEvent.LastReceivedVertexDataInfo)2