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.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CollectSinkOperatorCoordinator.Provider
Provider for
CollectSinkOperatorCoordinator. |
| 构造器和说明 |
|---|
CollectSinkOperatorCoordinator(int socketTimeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkpointCoordinator(long checkpointId,
CompletableFuture<byte[]> result) |
void |
close() |
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> |
handleCoordinationRequest(org.apache.flink.runtime.operators.coordination.CoordinationRequest request) |
void |
handleEventFromOperator(int subtask,
org.apache.flink.runtime.operators.coordination.OperatorEvent event) |
void |
notifyCheckpointComplete(long checkpointId) |
void |
resetToCheckpoint(long checkpointId,
byte[] checkpointData) |
void |
start() |
void |
subtaskFailed(int subtask,
Throwable reason) |
void |
subtaskReset(int subtask,
long checkpointId) |
public void start()
throws Exception
start 在接口中 org.apache.flink.runtime.operators.coordination.OperatorCoordinatorExceptionpublic void close()
throws Exception
close 在接口中 AutoCloseableclose 在接口中 org.apache.flink.runtime.operators.coordination.OperatorCoordinatorExceptionpublic void handleEventFromOperator(int subtask,
org.apache.flink.runtime.operators.coordination.OperatorEvent event)
throws Exception
handleEventFromOperator 在接口中 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 在接口中 org.apache.flink.runtime.operators.coordination.CoordinationRequestHandlerpublic void subtaskFailed(int subtask,
@Nullable
Throwable reason)
subtaskFailed 在接口中 org.apache.flink.runtime.operators.coordination.OperatorCoordinatorpublic void subtaskReset(int subtask,
long checkpointId)
subtaskReset 在接口中 org.apache.flink.runtime.operators.coordination.OperatorCoordinatorpublic void checkpointCoordinator(long checkpointId,
CompletableFuture<byte[]> result)
throws Exception
checkpointCoordinator 在接口中 org.apache.flink.runtime.operators.coordination.OperatorCoordinatorExceptionpublic void notifyCheckpointComplete(long checkpointId)
notifyCheckpointComplete 在接口中 org.apache.flink.runtime.operators.coordination.OperatorCoordinatornotifyCheckpointComplete 在接口中 org.apache.flink.runtime.state.CheckpointListenerCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.