static ReplicationClient()
        {
            LogEventPackageDecoder.RegisterEmptyPayloadEventTypes(
                LogEventType.STOP_EVENT,
                LogEventType.INTVAR_EVENT,
                LogEventType.SLAVE_EVENT,
                LogEventType.RAND_EVENT,
                LogEventType.USER_VAR_EVENT,
                LogEventType.DELETE_ROWS_EVENT_V0,
                LogEventType.UPDATE_ROWS_EVENT_V0,
                LogEventType.WRITE_ROWS_EVENT_V0,
                LogEventType.HEARTBEAT_LOG_EVENT,
                LogEventType.ANONYMOUS_GTID_LOG_EVENT);

            LogEventPackageDecoder.RegisterLogEventType <RotateEvent>(LogEventType.ROTATE_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <FormatDescriptionEvent>(LogEventType.FORMAT_DESCRIPTION_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <TableMapEvent>(LogEventType.TABLE_MAP_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <QueryEvent>(LogEventType.QUERY_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <WriteRowsEvent>(LogEventType.WRITE_ROWS_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <DeleteRowsEvent>(LogEventType.DELETE_ROWS_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <UpdateRowsEvent>(LogEventType.UPDATE_ROWS_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <XIDEvent>(LogEventType.XID_EVENT);

            _logger = LoggerFactory
                      .Create(builder => builder.AddConsole())
                      .CreateLogger <ReplicationClient>();
        }
示例#2
0
        public ReplicationClient()
        {
            using (var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole()))
            {
                _logger = loggerFactory.CreateLogger <ReplicationClient>();
            }

            LogEventPackageDecoder.RegisterEmptyPayloadEventTypes(
                LogEventType.STOP_EVENT,
                LogEventType.INTVAR_EVENT,
                LogEventType.SLAVE_EVENT,
                LogEventType.RAND_EVENT,
                LogEventType.USER_VAR_EVENT,
                LogEventType.DELETE_ROWS_EVENT_V0,
                LogEventType.UPDATE_ROWS_EVENT_V0,
                LogEventType.WRITE_ROWS_EVENT_V0,
                LogEventType.HEARTBEAT_LOG_EVENT,
                LogEventType.ANONYMOUS_GTID_LOG_EVENT);

            LogEventPackageDecoder.RegisterLogEventType <RotateEvent>(LogEventType.ROTATE_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <FormatDescriptionEvent>(LogEventType.FORMAT_DESCRIPTION_EVENT);
            LogEventPackageDecoder.RegisterLogEventType <QueryEvent>(LogEventType.QUERY_EVENT);
        }
示例#3
0
 public LogEventPipelineFilter()
     : base(3)
 {
     Decoder = new LogEventPackageDecoder();
 }