com.alibaba.otter.canal.example
类 AbstractCanalClientTest

java.lang.Object
  继承者 com.alibaba.otter.canal.example.AbstractCanalClientTest
直接已知子类:
ClusterCanalClientTest, SimpleCanalClientTest

public class AbstractCanalClientTest
extends Object

测试基类

版本:
1.0.4
作者:
jianghang 2013-4-15 下午04:17:12

字段摘要
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
           
 
构造方法摘要
AbstractCanalClientTest(String destination)
           
AbstractCanalClientTest(String destination, CanalConnector connector)
           
 
方法摘要
protected  String buildPositionForDump(CanalEntry.Entry entry)
           
protected  void printColumn(List<CanalEntry.Column> columns)
           
protected  void printEntry(List<CanalEntry.Entry> entrys)
           
protected  void process()
           
 void setConnector(CanalConnector connector)
           
protected  void start()
           
protected  void stop()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

logger

protected static final org.slf4j.Logger logger

SEP

protected static final String SEP

DATE_FORMAT

protected static final String DATE_FORMAT
另请参见:
常量字段值

running

protected volatile boolean running

handler

protected Thread.UncaughtExceptionHandler handler

thread

protected Thread thread

connector

protected CanalConnector connector

context_format

protected static String context_format

row_format

protected static String row_format

destination

protected String destination
构造方法详细信息

AbstractCanalClientTest

public AbstractCanalClientTest(String destination)

AbstractCanalClientTest

public AbstractCanalClientTest(String destination,
                               CanalConnector connector)
方法详细信息

start

protected void start()

stop

protected void stop()

process

protected void process()

buildPositionForDump

protected String buildPositionForDump(CanalEntry.Entry entry)

printEntry

protected void printEntry(List<CanalEntry.Entry> entrys)

printColumn

protected void printColumn(List<CanalEntry.Column> columns)

setConnector

public void setConnector(CanalConnector connector)


Copyright © 2013. All Rights Reserved.