public class CollectSinkOperatorCoordinator extends Object implements org.apache.flink.runtime.operators.coordination.OperatorCoordinator, org.apache.flink.runtime.operators.coordination.CoordinationRequestHandler
OperatorCoordinator for CollectSinkFunction.
This coordinator only forwards requests and responses from clients and sinks and it does not store any results in itself.
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectSinkOperatorCoordinator.Provider
Provider for
CollectSinkOperatorCoordinator. |
| Constructor and Description |
|---|
CollectSinkOperatorCoordinator(int socketTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkpointCoordinator(long checkpointId,
CompletableFuture<byte[]> result) |
void |
close() |
void |
executionAttemptFailed(int subtask,
int attemptNumber,
Throwable reason) |
void |
executionAttemptReady(int subtask,
int attemptNumber,
org.apache.flink.runtime.operators.coordination.OperatorCoordinator.SubtaskGateway gateway) |
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> |
handleCoordinationRequest(org.apache.flink.runtime.operators.coordination.CoordinationRequest request) |
void |
handleEventFromOperator(int subtask,
int attemptNumber,
org.apache.flink.runtime.operators.coordination.OperatorEvent event) |
void |
notifyCheckpointComplete(long checkpointId) |
void |
resetToCheckpoint(long checkpointId,
byte[] checkpointData) |
void |
start() |
void |
subtaskReset(int subtask,
long checkpointId) |
public CollectSinkOperatorCoordinator(int socketTimeout)
public void start()
throws Exception
start in interface org.apache.flink.runtime.operators.coordination.OperatorCoordinatorExceptionpublic void close()
throws Exception
close in interface AutoCloseableclose in interface org.apache.flink.runtime.operators.coordination.OperatorCoordinatorExceptionpublic void handleEventFromOperator(int subtask,
int attemptNumber,
org.apache.flink.runtime.operators.coordination.OperatorEvent event)
throws Exception
handleEventFromOperator in interface org.apache.flink.runtime.operators.coordination.OperatorCoordinatorExceptionpublic CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> handleCoordinationRequest(org.apache.flink.runtime.operators.coordination.CoordinationRequest request)
handleCoordinationRequest in interface org.apache.flink.runtime.operators.coordination.CoordinationRequestHandlerpublic void executionAttemptFailed(int subtask,
int attemptNumber,
@Nullable
Throwable reason)
executionAttemptFailed in interface org.apache.flink.runtime.operators.coordination.OperatorCoordinatorpublic void subtaskReset(int subtask,
long checkpointId)
subtaskReset in interface org.apache.flink.runtime.operators.coordination.OperatorCoordinatorpublic void executionAttemptReady(int subtask,
int attemptNumber,
org.apache.flink.runtime.operators.coordination.OperatorCoordinator.SubtaskGateway gateway)
executionAttemptReady in interface org.apache.flink.runtime.operators.coordination.OperatorCoordinatorpublic void checkpointCoordinator(long checkpointId,
CompletableFuture<byte[]> result)
throws Exception
checkpointCoordinator in interface org.apache.flink.runtime.operators.coordination.OperatorCoordinatorExceptionpublic void notifyCheckpointComplete(long checkpointId)
notifyCheckpointComplete in interface org.apache.flink.api.common.state.CheckpointListenernotifyCheckpointComplete in interface org.apache.flink.runtime.operators.coordination.OperatorCoordinatorCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.