forked from apache/eventmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE apache#5081] Enhancement update for connectors & admin-server
- Loading branch information
Showing
42 changed files
with
1,777 additions
and
1,277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...java/org/apache/eventmesh/common/config/connector/rdb/canal/CanalSinkIncrementConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.common.config.connector.rdb.canal; | ||
|
||
import org.apache.eventmesh.common.remote.job.SyncMode; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class CanalSinkIncrementConfig extends CanalSinkConfig { | ||
|
||
// batchSize | ||
private Integer batchSize = 50; | ||
|
||
// enable batch | ||
private Boolean useBatch = true; | ||
|
||
// sink thread size for single channel | ||
private Integer poolSize = 5; | ||
|
||
// sync mode: field/row | ||
private SyncMode syncMode; | ||
|
||
private boolean isGTIDMode = true; | ||
|
||
private boolean isMariaDB = true; | ||
|
||
// skip sink process exception | ||
private Boolean skipException = false; | ||
|
||
public SinkConnectorConfig sinkConnectorConfig; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
...va/org/apache/eventmesh/common/config/connector/rdb/canal/CanalSourceIncrementConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.common.config.connector.rdb.canal; | ||
|
||
import org.apache.eventmesh.common.remote.job.SyncConsistency; | ||
import org.apache.eventmesh.common.remote.job.SyncMode; | ||
import org.apache.eventmesh.common.remote.offset.RecordPosition; | ||
|
||
import java.util.List; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class CanalSourceIncrementConfig extends CanalSourceConfig { | ||
|
||
private String destination; | ||
|
||
private Long canalInstanceId; | ||
|
||
private String desc; | ||
|
||
private boolean ddlSync = true; | ||
|
||
private boolean filterTableError = false; | ||
|
||
private Long slaveId; | ||
|
||
private Short clientId; | ||
|
||
private String serverUUID; | ||
|
||
private boolean isMariaDB = true; | ||
|
||
private boolean isGTIDMode = true; | ||
|
||
private Integer batchSize = 10000; | ||
|
||
private Long batchTimeout = -1L; | ||
|
||
private String tableFilter; | ||
|
||
private String fieldFilter; | ||
|
||
private List<RecordPosition> recordPositions; | ||
|
||
// ================================= channel parameter | ||
// ================================ | ||
|
||
// enable remedy | ||
private Boolean enableRemedy = false; | ||
|
||
// sync mode: field/row | ||
private SyncMode syncMode; | ||
|
||
// sync consistency | ||
private SyncConsistency syncConsistency; | ||
|
||
// ================================= system parameter | ||
// ================================ | ||
|
||
// Column name of the bidirectional synchronization mark | ||
private String needSyncMarkTableColumnName = "needSync"; | ||
|
||
// Column value of the bidirectional synchronization mark | ||
private String needSyncMarkTableColumnValue = "needSync"; | ||
|
||
private SourceConnectorConfig sourceConnectorConfig; | ||
|
||
} |
Oops, something went wrong.