public abstract class AbstractMysqlEventParser extends AbstractEventParser
| 限定符和类型 | 字段和说明 |
|---|---|
protected static long |
BINLOG_START_OFFEST |
protected java.nio.charset.Charset |
connectionCharset |
protected byte |
connectionCharsetNumber |
protected boolean |
enableTsdb |
protected boolean |
filterQueryDcl |
protected boolean |
filterQueryDdl |
protected boolean |
filterQueryDml |
protected boolean |
filterRows |
protected boolean |
filterTableError |
protected java.util.concurrent.atomic.AtomicLong |
receivedBinlogBytes |
protected TableMetaTSDB |
tableMetaTSDB |
protected TableMetaTSDBFactory |
tableMetaTSDBFactory |
protected int |
tsdbSnapshotExpire |
protected int |
tsdbSnapshotInterval |
protected java.lang.String |
tsdbSpringXml |
protected boolean |
useDruidDdlFilter |
binlogParser, consumedEventCount, destination, detectingEnable, detectingIntervalInSeconds, eventBlackFilter, eventFilter, eventSink, exception, fieldBlackFilter, fieldBlackFilterMap, fieldFilter, fieldFilterMap, handler, heartBeatTimerTask, isGTIDMode, lastEntryTime, logger, logPositionManager, multiStageCoprocessor, needTransactionPosition, parallel, parallelBufferSize, parallelThreadSize, parsedEventCount, parserExceptionHandler, parseThread, parsingInterval, processingInterval, profilingEnabled, receivedEventCount, runningInfo, serverId, timer, transactionBuffer, transactionSizerunning| 构造器和说明 |
|---|
AbstractMysqlEventParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected MultiStageCoprocessor |
buildMultiStageCoprocessor() |
protected BinlogParser |
buildParser() |
java.util.concurrent.atomic.AtomicLong |
getEventsPublishBlockingTime() |
java.util.concurrent.atomic.AtomicLong |
getReceivedBinlogBytes() |
int |
getTsdbSnapshotExpire() |
int |
getTsdbSnapshotInterval() |
boolean |
isUseDruidDdlFilter() |
protected boolean |
processTableMeta(EntryPosition position)
回滚到指定位点
|
void |
setConnectionCharset(java.nio.charset.Charset connectionCharset) |
void |
setConnectionCharset(java.lang.String connectionCharset) |
void |
setConnectionCharsetNumber(byte connectionCharsetNumber) |
void |
setEnableTsdb(boolean enableTsdb) |
void |
setEventBlackFilter(CanalEventFilter eventBlackFilter) |
void |
setEventFilter(CanalEventFilter eventFilter) |
void |
setFieldBlackFilter(java.lang.String fieldBlackFilter) |
void |
setFieldFilter(java.lang.String fieldFilter) |
void |
setFilterQueryDcl(boolean filterQueryDcl) |
void |
setFilterQueryDdl(boolean filterQueryDdl) |
void |
setFilterQueryDml(boolean filterQueryDml) |
void |
setFilterRows(boolean filterRows) |
void |
setFilterTableError(boolean filterTableError) |
void |
setTableMetaTSDBFactory(TableMetaTSDBFactory tableMetaTSDBFactory) |
void |
setTsdbSnapshotExpire(int tsdbSnapshotExpire) |
void |
setTsdbSnapshotInterval(int tsdbSnapshotInterval) |
void |
setTsdbSpringXml(java.lang.String tsdbSpringXml) |
void |
setUseDruidDdlFilter(boolean useDruidDdlFilter) |
void |
start() |
void |
stop() |
afterDump, buildErosaConnection, buildHeartBeatTimeTask, buildLastPosition, buildLastTransactionPosition, consumeTheEventAndProfilingIfNecessary, findStartPosition, getAlarmHandler, getBinlogParser, getConsumedEventCount, getException, getFieldBlackFilter, getFieldBlackFilterMap, getFieldFilter, getFieldFilterMap, getLogPositionManager, getParallelBufferSize, getParallelThreadSize, getParsedEventCount, getParserExceptionHandler, getParsingInterval, getProcessingInterval, getProfilingEnabled, getServerId, isGTIDMode, isParallel, parseAndProfilingIfNecessary, preDump, processDumpError, processSinkError, sendAlarm, setAlarmHandler, setBinlogParser, setDestination, setDetectingEnable, setDetectingIntervalInSeconds, setEventSink, setIsGTIDMode, setLogPositionManager, setParallel, setParallelBufferSize, setParallelThreadSize, setParserExceptionHandler, setProfilingEnabled, setServerId, setTransactionSize, startHeartBeat, stopHeartBeatisStartclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisStartprotected static final long BINLOG_START_OFFEST
protected TableMetaTSDBFactory tableMetaTSDBFactory
protected boolean enableTsdb
protected int tsdbSnapshotInterval
protected int tsdbSnapshotExpire
protected java.lang.String tsdbSpringXml
protected TableMetaTSDB tableMetaTSDB
protected byte connectionCharsetNumber
protected java.nio.charset.Charset connectionCharset
protected boolean filterQueryDcl
protected boolean filterQueryDml
protected boolean filterQueryDdl
protected boolean filterRows
protected boolean filterTableError
protected boolean useDruidDdlFilter
protected final java.util.concurrent.atomic.AtomicLong receivedBinlogBytes
protected BinlogParser buildParser()
buildParser 在类中 AbstractEventParserpublic void setEventFilter(CanalEventFilter eventFilter)
setEventFilter 在类中 AbstractEventParserpublic void setEventBlackFilter(CanalEventFilter eventBlackFilter)
public void setFieldFilter(java.lang.String fieldFilter)
setFieldFilter 在类中 AbstractEventParserpublic void setFieldBlackFilter(java.lang.String fieldBlackFilter)
protected boolean processTableMeta(EntryPosition position)
processTableMeta 在类中 AbstractEventParserposition - public void start()
throws CanalParseException
start 在接口中 CanalLifeCyclestart 在类中 AbstractEventParserCanalParseExceptionpublic void stop()
throws CanalParseException
stop 在接口中 CanalLifeCyclestop 在类中 AbstractEventParserCanalParseExceptionprotected MultiStageCoprocessor buildMultiStageCoprocessor()
public void setConnectionCharsetNumber(byte connectionCharsetNumber)
public void setConnectionCharset(java.nio.charset.Charset connectionCharset)
public void setConnectionCharset(java.lang.String connectionCharset)
public void setFilterQueryDcl(boolean filterQueryDcl)
public void setFilterQueryDml(boolean filterQueryDml)
public void setFilterQueryDdl(boolean filterQueryDdl)
public void setFilterRows(boolean filterRows)
public void setFilterTableError(boolean filterTableError)
public boolean isUseDruidDdlFilter()
public void setUseDruidDdlFilter(boolean useDruidDdlFilter)
public void setEnableTsdb(boolean enableTsdb)
public void setTsdbSpringXml(java.lang.String tsdbSpringXml)
public void setTableMetaTSDBFactory(TableMetaTSDBFactory tableMetaTSDBFactory)
public java.util.concurrent.atomic.AtomicLong getEventsPublishBlockingTime()
public java.util.concurrent.atomic.AtomicLong getReceivedBinlogBytes()
public int getTsdbSnapshotInterval()
public void setTsdbSnapshotInterval(int tsdbSnapshotInterval)
public int getTsdbSnapshotExpire()
public void setTsdbSnapshotExpire(int tsdbSnapshotExpire)
Copyright © 2019. All rights reserved.