| Modifier and Type | Class and Description |
|---|---|
private static class |
ReadBinLogIT.AnyValue |
protected static class |
ReadBinLogIT.EventQueue |
static class |
ReadBinLogIT.Row |
static class |
ReadBinLogIT.RowBuilder |
protected static class |
ReadBinLogIT.TraceLifecycleListener |
static interface |
ReadBinLogIT.UpdateBuilder |
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private static Serializable |
ANY_OBJECT |
private com.github.shyiko.mysql.binlog.BinaryLogClient |
client |
private io.debezium.jdbc.JdbcConfiguration |
config |
private MySQLConnection |
conn |
private ReadBinLogIT.EventQueue |
counters |
private UniqueDatabase |
DATABASE |
protected static long |
DEFAULT_TIMEOUT |
private List<com.github.shyiko.mysql.binlog.event.Event> |
events |
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
ReadBinLogIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEach() |
protected Serializable |
any() |
protected void |
assertRow(Serializable[] data,
Serializable... expected) |
protected void |
assertRows(com.github.shyiko.mysql.binlog.event.DeleteRowsEventData eventData,
ReadBinLogIT.RowBuilder rows) |
protected void |
assertRows(com.github.shyiko.mysql.binlog.event.UpdateRowsEventData eventData,
ReadBinLogIT.RowBuilder rows) |
protected void |
assertRows(com.github.shyiko.mysql.binlog.event.WriteRowsEventData eventData,
int numRowsInEvent,
Serializable... expectedValuesInRows) |
protected void |
assertRows(com.github.shyiko.mysql.binlog.event.WriteRowsEventData eventData,
ReadBinLogIT.RowBuilder rows) |
void |
beforeEach() |
protected void |
logConsumedEvent(com.github.shyiko.mysql.binlog.event.Event event) |
protected void |
logIgnoredEvent(com.github.shyiko.mysql.binlog.event.Event event) |
protected <T extends com.github.shyiko.mysql.binlog.event.EventData> |
recordedEventData(Class<T> eventType,
int expectedCount) |
protected void |
recordEvent(com.github.shyiko.mysql.binlog.event.Event event) |
protected ReadBinLogIT.RowBuilder |
rows() |
void |
shouldCaptureMultipleWriteUpdateDeleteEvents() |
void |
shouldCaptureMultipleWriteUpdateDeletesInSingleEvents() |
void |
shouldCaptureQueryEventData()
Test case that is normally commented out since it is only useful to print out the DDL statements recorded by
the binlog during a MySQL server initialization and startup.
|
void |
shouldCaptureSingleWriteUpdateDeleteEvents() |
void |
shouldFailToConnectToInvalidBinlogFile() |
void |
shouldQueryInformationSchema() |
void |
shouldReadMultipleBinlogFiles() |
protected void |
startClient() |
protected void |
startClient(Consumer<com.github.shyiko.mysql.binlog.BinaryLogClient> preConnect) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprotected static final org.slf4j.Logger LOGGER
protected static final long DEFAULT_TIMEOUT
private static final Serializable ANY_OBJECT
private ReadBinLogIT.EventQueue counters
private com.github.shyiko.mysql.binlog.BinaryLogClient client
private MySQLConnection conn
private List<com.github.shyiko.mysql.binlog.event.Event> events
private io.debezium.jdbc.JdbcConfiguration config
private final UniqueDatabase DATABASE
public void beforeEach()
throws TimeoutException,
IOException,
SQLException,
InterruptedException
public void afterEach()
throws IOException,
SQLException
IOExceptionSQLExceptionprotected void startClient()
throws IOException,
TimeoutException,
SQLException
IOExceptionTimeoutExceptionSQLExceptionprotected void startClient(Consumer<com.github.shyiko.mysql.binlog.BinaryLogClient> preConnect) throws IOException, TimeoutException, SQLException
IOExceptionTimeoutExceptionSQLExceptionpublic void shouldFailToConnectToInvalidBinlogFile()
throws Exception
Exceptionpublic void shouldReadMultipleBinlogFiles()
throws Exception
Exceptionpublic void shouldCaptureSingleWriteUpdateDeleteEvents()
throws Exception
Exceptionpublic void shouldCaptureMultipleWriteUpdateDeleteEvents()
throws Exception
Exceptionpublic void shouldCaptureMultipleWriteUpdateDeletesInSingleEvents()
throws Exception
Exceptionpublic void shouldCaptureQueryEventData()
throws Exception
Exception - if there are problemspublic void shouldQueryInformationSchema()
throws Exception
Exceptionprotected void logConsumedEvent(com.github.shyiko.mysql.binlog.event.Event event)
protected void logIgnoredEvent(com.github.shyiko.mysql.binlog.event.Event event)
protected void recordEvent(com.github.shyiko.mysql.binlog.event.Event event)
protected <T extends com.github.shyiko.mysql.binlog.event.EventData> List<T> recordedEventData(Class<T> eventType, int expectedCount)
protected void assertRow(Serializable[] data, Serializable... expected)
protected void assertRows(com.github.shyiko.mysql.binlog.event.WriteRowsEventData eventData,
int numRowsInEvent,
Serializable... expectedValuesInRows)
protected Serializable any()
protected ReadBinLogIT.RowBuilder rows()
protected void assertRows(com.github.shyiko.mysql.binlog.event.UpdateRowsEventData eventData,
ReadBinLogIT.RowBuilder rows)
protected void assertRows(com.github.shyiko.mysql.binlog.event.WriteRowsEventData eventData,
ReadBinLogIT.RowBuilder rows)
protected void assertRows(com.github.shyiko.mysql.binlog.event.DeleteRowsEventData eventData,
ReadBinLogIT.RowBuilder rows)
Copyright © 2018 JBoss by Red Hat. All rights reserved.