public class SchemaCoordinator extends SchemaRegistry
SchemaOperator. Registry actor in regular topology.org.apache.flink.runtime.operators.coordination.OperatorCoordinator.Context, org.apache.flink.runtime.operators.coordination.OperatorCoordinator.Provider, org.apache.flink.runtime.operators.coordination.OperatorCoordinator.SubtaskGatewayactiveSinkWriters, behavior, context, coordinatorExecutor, currentParallelism, failedReasons, metadataApplier, operatorName, router, routingRules, rpcTimeout, schemaManager| 构造器和说明 |
|---|
SchemaCoordinator(String operatorName,
org.apache.flink.runtime.operators.coordination.OperatorCoordinator.Context context,
ExecutorService coordinatorExecutor,
org.apache.flink.cdc.common.sink.MetadataApplier metadataApplier,
List<org.apache.flink.cdc.common.route.RouteRule> routes,
org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior schemaChangeBehavior,
java.time.Duration rpcTimeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected void |
handleCustomCoordinationRequest(org.apache.flink.runtime.operators.coordination.CoordinationRequest request,
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> responseFuture)
Coordination handler for customized
CoordinationRequests. |
protected void |
handleFlushSuccessEvent(FlushSuccessEvent event)
Overridable handler for
FlushSuccessEvents. |
void |
handleSchemaChangeRequest(SchemaChangeRequest request,
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> responseFuture)
Handle the
SchemaChangeRequest and wait for all sink subtasks flushing. |
protected void |
handleUnrecoverableError(String taskDescription,
Throwable t)
Last chance to execute codes before job fails globally.
|
protected void |
restore(byte[] checkpointData)
Restore schema registry state from byte array.
|
protected void |
snapshot(CompletableFuture<byte[]> resultFuture)
Snapshot current schema registry state in byte array form.
|
void |
start() |
checkpointCoordinator, emplaceEvolvedSchema, emplaceOriginalSchema, executionAttemptFailed, executionAttemptReady, failJob, handleCoordinationRequest, handleEventFromOperator, handleGetEvolvedSchemaRequest, handleGetOriginalSchemaRequest, handleSinkWriterRegisterEvent, loopUntil, loopWhen, notifyCheckpointComplete, resetToCheckpoint, runInEventLoop, subtaskResetpublic SchemaCoordinator(String operatorName, org.apache.flink.runtime.operators.coordination.OperatorCoordinator.Context context, ExecutorService coordinatorExecutor, org.apache.flink.cdc.common.sink.MetadataApplier metadataApplier, List<org.apache.flink.cdc.common.route.RouteRule> routes, org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior schemaChangeBehavior, java.time.Duration rpcTimeout)
public void start()
throws Exception
start 在接口中 org.apache.flink.runtime.operators.coordination.OperatorCoordinatorstart 在类中 SchemaRegistryExceptionpublic void close()
throws Exception
close 在接口中 AutoCloseableclose 在接口中 org.apache.flink.runtime.operators.coordination.OperatorCoordinatorclose 在类中 SchemaRegistryExceptionprotected void snapshot(CompletableFuture<byte[]> resultFuture) throws Exception
SchemaRegistrysnapshot 在类中 SchemaRegistryExceptionprotected void restore(byte[] checkpointData)
throws Exception
SchemaRegistryrestore 在类中 SchemaRegistryExceptionprotected void handleCustomCoordinationRequest(org.apache.flink.runtime.operators.coordination.CoordinationRequest request,
CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> responseFuture)
SchemaRegistryCoordinationRequests.protected void handleFlushSuccessEvent(FlushSuccessEvent event)
SchemaRegistryFlushSuccessEvents.handleFlushSuccessEvent 在类中 SchemaRegistryprotected void handleUnrecoverableError(String taskDescription, Throwable t)
SchemaRegistrypublic void handleSchemaChangeRequest(SchemaChangeRequest request, CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> responseFuture)
SchemaChangeRequest and wait for all sink subtasks flushing.request - the received SchemaChangeRequestCopyright © 2025 The Apache Software Foundation. All rights reserved.