public class BaseCanalClientTest extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected CanalConnector |
connector |
protected static String |
context_format |
protected static String |
DATE_FORMAT |
protected String |
destination |
protected Thread.UncaughtExceptionHandler |
handler |
protected static org.slf4j.Logger |
logger |
protected static String |
row_format |
protected boolean |
running |
protected static String |
SEP |
protected Thread |
thread |
protected static String |
transaction_format |
| 构造器和说明 |
|---|
BaseCanalClientTest() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
buildPositionForDump(CanalEntry.Entry entry) |
static String |
getCurrentGtid(CanalEntry.Header header)
获取当前Entry的 GTID信息示例
|
static String |
getCurrentGtidLct(CanalEntry.Header header)
获取当前Entry的 GTID Last Committed信息示例
|
static String |
getCurrentGtidSn(CanalEntry.Header header)
获取当前Entry的 GTID Sequence No信息示例
|
protected void |
printColumn(List<CanalEntry.Column> columns) |
protected void |
printEntry(List<CanalEntry.Entry> entrys) |
protected void |
printSummary(Message message,
long batchId,
int size) |
protected void |
printXAInfo(List<CanalEntry.Pair> pairs) |
void |
setConnector(CanalConnector connector) |
protected static final org.slf4j.Logger logger
protected static final String SEP
protected volatile boolean running
protected Thread.UncaughtExceptionHandler handler
protected Thread thread
protected CanalConnector connector
protected static String context_format
protected static String row_format
protected static String transaction_format
protected String destination
protected void printSummary(Message message, long batchId, int size)
protected String buildPositionForDump(CanalEntry.Entry entry)
protected void printEntry(List<CanalEntry.Entry> entrys)
protected void printColumn(List<CanalEntry.Column> columns)
protected void printXAInfo(List<CanalEntry.Pair> pairs)
public void setConnector(CanalConnector connector)
public static String getCurrentGtid(CanalEntry.Header header)
header - public static String getCurrentGtidSn(CanalEntry.Header header)
header - public static String getCurrentGtidLct(CanalEntry.Header header)
header - Copyright © 2019. All rights reserved.