|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | + * contributor license agreements. See the NOTICE file distributed with |
| 4 | + * this work for additional information regarding copyright ownership. |
| 5 | + * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | + * (the "License"); you may not use this file except in compliance with |
| 7 | + * the License. You may obtain a copy of the License at |
| 8 | + * |
| 9 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + * |
| 11 | + * Unless required by applicable law or agreed to in writing, software |
| 12 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + * See the License for the specific language governing permissions and |
| 15 | + * limitations under the License. |
| 16 | + */ |
| 17 | + |
| 18 | +package org.apache.eventmesh.common.config.connector.rdb.canal; |
| 19 | + |
| 20 | +import org.apache.eventmesh.common.remote.job.SyncConsistency; |
| 21 | +import org.apache.eventmesh.common.remote.job.SyncMode; |
| 22 | +import org.apache.eventmesh.common.remote.offset.RecordPosition; |
| 23 | + |
| 24 | +import java.util.List; |
| 25 | + |
| 26 | +import lombok.Data; |
| 27 | +import lombok.EqualsAndHashCode; |
| 28 | + |
| 29 | +@Data |
| 30 | +@EqualsAndHashCode(callSuper = true) |
| 31 | +public class CanalSourceIncrementConfig extends CanalSourceConfig { |
| 32 | + |
| 33 | + private String destination; |
| 34 | + |
| 35 | + private Long canalInstanceId; |
| 36 | + |
| 37 | + private String desc; |
| 38 | + |
| 39 | + private boolean ddlSync = true; |
| 40 | + |
| 41 | + private boolean filterTableError = false; |
| 42 | + |
| 43 | + private Long slaveId; |
| 44 | + |
| 45 | + private Short clientId; |
| 46 | + |
| 47 | + private String serverUUID; |
| 48 | + |
| 49 | + private boolean isMariaDB = true; |
| 50 | + |
| 51 | + private boolean isGTIDMode = true; |
| 52 | + |
| 53 | + private Integer batchSize = 10000; |
| 54 | + |
| 55 | + private Long batchTimeout = -1L; |
| 56 | + |
| 57 | + private String tableFilter; |
| 58 | + |
| 59 | + private String fieldFilter; |
| 60 | + |
| 61 | + private List<RecordPosition> recordPositions; |
| 62 | + |
| 63 | + // ================================= channel parameter |
| 64 | + // ================================ |
| 65 | + |
| 66 | + // enable remedy |
| 67 | + private Boolean enableRemedy = false; |
| 68 | + |
| 69 | + // sync mode: field/row |
| 70 | + private SyncMode syncMode; |
| 71 | + |
| 72 | + // sync consistency |
| 73 | + private SyncConsistency syncConsistency; |
| 74 | + |
| 75 | + // ================================= system parameter |
| 76 | + // ================================ |
| 77 | + |
| 78 | + // Column name of the bidirectional synchronization mark |
| 79 | + private String needSyncMarkTableColumnName = "needSync"; |
| 80 | + |
| 81 | + // Column value of the bidirectional synchronization mark |
| 82 | + private String needSyncMarkTableColumnValue = "needSync"; |
| 83 | + |
| 84 | + private SourceConnectorConfig sourceConnectorConfig; |
| 85 | + |
| 86 | +} |
0 commit comments