Class StreamIterationHead<OUT>
java.lang.Object
org.apache.flink.streaming.runtime.tasks.StreamTask<OUT,OneInputStreamOperator<IN,OUT>>
org.apache.flink.streaming.runtime.tasks.OneInputStreamTask<OUT,OUT>
org.apache.flink.streaming.runtime.tasks.StreamIterationHead<OUT>
- All Implemented Interfaces:
CheckpointableTask,CoordinatedTask,TaskInvokable,AsyncExceptionHandler,ContainingTaskDetails
A special
StreamTask that is used for executing feedback edges. This is used in
combination with StreamIterationTail.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
StreamTask.CanEmitBatchOfRecordsChecker -
Field Summary
Fields inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
checkpointStorage, configuration, inputProcessor, mailboxProcessor, mainOperator, operatorChain, recordWriter, stateBackend, systemTimerService, timerService, TRIGGER_THREAD_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic StringcreateBrokerIdString(org.apache.flink.api.common.JobID jid, String iterationID, int subtaskIndex) Creates the identification string with which head and tail task find the shared blocking queue for the back channel.voidinit()protected voidprocessInput(MailboxDefaultAction.Controller controller) This method implements the default action of the task (e.g. processing one event from the input).Methods inherited from class org.apache.flink.streaming.runtime.tasks.OneInputStreamTask
getCheckpointBarrierHandlerMethods inherited from class org.apache.flink.streaming.runtime.tasks.StreamTask
abortCheckpointOnBarrier, advanceToEndOfEventTime, afterInvoke, cancel, cancelTask, cleanUp, createRecordWriterDelegate, createStreamTaskStateInitializer, declineCheckpoint, dispatchOperatorEvent, endData, finalize, getAsyncCheckpointStartDelayNanos, getAsyncOperationsThreadPool, getCancelables, getCanEmitBatchOfRecords, getCheckpointStorage, getCompletionFuture, getConfiguration, getEnvironment, getMailboxExecutorFactory, getName, getProcessingTimeServiceFactory, handleAsyncException, hasMail, invoke, isCanceled, isFailing, isMailboxLoopRunning, isRunning, isUsingNonBlockingInput, maybeInterruptOnCancel, notifyCheckpointAbortAsync, notifyCheckpointCompleteAsync, notifyCheckpointSubsumedAsync, notifyEndOfData, restore, runMailboxLoop, runMailboxStep, runSingleMailboxLoop, setSynchronousSavepoint, setupNumRecordsInCounter, toString, triggerCheckpointAsync, triggerCheckpointOnBarrierMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.streaming.runtime.tasks.ContainingTaskDetails
getExecutionConfig, getIndexInSubtaskGroup, getJobConfiguration, getUserCodeClassLoader
-
Constructor Details
-
StreamIterationHead
- Throws:
Exception
-
-
Method Details
-
processInput
Description copied from class:StreamTaskThis method implements the default action of the task (e.g. processing one event from the input). Implementations should (in general) be non-blocking.- Overrides:
processInputin classStreamTask<OUT,OneInputStreamOperator<OUT, OUT>> - Parameters:
controller- controller object for collaborative interaction between the action and the stream task.- Throws:
Exception- on any problems in the action.
-
init
public void init()- Overrides:
initin classOneInputStreamTask<OUT,OUT>
-
cleanUpInternal
protected void cleanUpInternal()- Overrides:
cleanUpInternalin classStreamTask<OUT,OneInputStreamOperator<OUT, OUT>>
-
createBrokerIdString
public static String createBrokerIdString(org.apache.flink.api.common.JobID jid, String iterationID, int subtaskIndex) Creates the identification string with which head and tail task find the shared blocking queue for the back channel. The identification string is unique per parallel head/tail pair per iteration per job.- Parameters:
jid- The job ID.iterationID- The id of the iteration in the job.subtaskIndex- The parallel subtask number- Returns:
- The identification string.
-