编写CDC 、api采集
这个提交包含在:
+27
@@ -46,6 +46,33 @@ public interface DataCollectionIntegrationService {
|
||||
|
||||
FileSubmissionResult submitFile(FileSubmissionRequest request);
|
||||
|
||||
/** API polling is executed inside Integration so source credentials never enter a SeaTunnel job. */
|
||||
default ApiPollResult pollApi(ApiPollRequest request) {
|
||||
return new ApiPollResult("UNKNOWN", 0, null, "API_POLL_ADAPTER_UNAVAILABLE");
|
||||
}
|
||||
|
||||
record ApiPollRequest(long actorId, long orgScopeId, long intakeId, String watermark,
|
||||
FileExecutionSnapshot snapshot, StorageExecutionProfile targetProfile,
|
||||
ApiPollProfile profile) implements Serializable {
|
||||
public ApiPollRequest(long actorId, long orgScopeId, long intakeId, String watermark,
|
||||
FileExecutionSnapshot snapshot, StorageExecutionProfile targetProfile) {
|
||||
this(actorId, orgScopeId, intakeId, watermark, snapshot, targetProfile, null);
|
||||
}
|
||||
}
|
||||
|
||||
/** Only references to managed secrets cross the service boundary. */
|
||||
record ApiPollProfile(String authKind, String tokenEndpoint, String tokenFormat, String clientId,
|
||||
String tokenClientField, String tokenSecretField, String tokenCredentialStyle,
|
||||
String tokenPath, String expiresPath, String requestMethod,
|
||||
Map<String, String> headers, Map<String, String> queryParameters,
|
||||
String requestBody, Integer pageSize, Integer lookbackSeconds,
|
||||
String successPath, String successValue, String signatureKind,
|
||||
String signatureTemplate, String signaturePlacement, String signatureHeader, String signatureEncoding,
|
||||
String signingSecretRef) implements Serializable { }
|
||||
|
||||
record ApiPollResult(String status, int writtenRows, String watermark, String errorCode)
|
||||
implements Serializable { }
|
||||
|
||||
FileBatchResult observeFileBatches(FileBatchRequest request);
|
||||
|
||||
FileActionResult quarantineFile(FileActionRequest request);
|
||||
|
||||
+4
@@ -6,8 +6,12 @@ import java.util.List;
|
||||
/** Internal owner-authorized CDC execution contract; never exposed as a public request. */
|
||||
public interface RealtimeCollectionService {
|
||||
Check check(Command command);
|
||||
Check prepare(Command command);
|
||||
Result execute(Command command, String action, String externalId, String restoreId);
|
||||
List<RelayOption> relays(long actorId,long orgId,long sourceId);
|
||||
SourceDefaults sourceDefaults(long actorId,long orgId,long sourceId);
|
||||
record SourceDefaults(long sourceVersion,String sourceSchema,String oracleDatabase,String oraclePdb,
|
||||
String oracleCdbService,String warning) implements Serializable { }
|
||||
record RelayOption(String id,String name,String schema,String table,String format) implements Serializable { }
|
||||
record Spec(String name, long sourceId, long sourceVersion, String sourceDatabase, String sourceTable,
|
||||
long targetResourceId, long targetSpaceId, String targetTable, int httpPort,
|
||||
|
||||
在新工单中引用
屏蔽一个用户