Java Code Examples for com.taobao.tddl.dbsync.binlog.event.LogHeader#getServerId()

The following examples show how to use com.taobao.tddl.dbsync.binlog.event.LogHeader#getServerId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LogEventConvert.java    From canal-1.1.3 with Apache License 2.0 4 votes vote down vote up
private EntryPosition createPosition(LogHeader logHeader) {
    return new EntryPosition(logHeader.getLogFileName(), logHeader.getLogPos() - logHeader.getEventLen(), // startPos
        logHeader.getWhen() * 1000L,
        logHeader.getServerId()); // 记录到秒
}
 
Example 2
Source File: LogEventConvert.java    From canal with Apache License 2.0 4 votes vote down vote up
private EntryPosition createPosition(LogHeader logHeader) {
    return new EntryPosition(logHeader.getLogFileName(), logHeader.getLogPos() - logHeader.getEventLen(), // startPos
        logHeader.getWhen() * 1000L,
        logHeader.getServerId()); // 记录到秒
}