public class MySqlMetricsIT extends AbstractConnectorTest
AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private UniqueDatabase |
DATABASE |
private static Path |
DB_HISTORY_PATH |
private static String |
INSERT1 |
private static String |
INSERT2 |
private static String |
SERVER_NAME |
engine, logger, logTestName, NO_MONITORED_TABLES_WARNING, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
MySqlMetricsIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
private void |
assertNoSnapshotMetricsExist() |
private void |
assertNoStreamingMetricsExist() |
private void |
assertSnapshotMetrics() |
private void |
assertStreamingMetrics(long events) |
void |
before() |
private ObjectName |
getSnapshotMetricsObjectName() |
private ObjectName |
getStreamingMetricsObjectName() |
void |
testLifecycle() |
void |
testSnapshotAndStreamingMetrics() |
void |
testSnapshotOnlyMetrics() |
void |
testStreamingOnlyMetrics() |
private void |
waitForSnapshotToBeCompleted() |
private void |
waitForStreamingToStart() |
assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, initializeConnectorTestFramework, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, start, start, start, start, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprivate static final Path DB_HISTORY_PATH
private static final String SERVER_NAME
private final UniqueDatabase DATABASE
private static final String INSERT1
private static final String INSERT2
public void testSnapshotAndStreamingMetrics()
throws Exception
Exceptionprivate void assertNoSnapshotMetricsExist()
throws Exception
Exceptionprivate void assertNoStreamingMetricsExist()
throws Exception
Exceptionprivate void assertStreamingMetrics(long events)
throws Exception
Exceptionprivate ObjectName getSnapshotMetricsObjectName() throws MalformedObjectNameException
MalformedObjectNameExceptionprivate ObjectName getStreamingMetricsObjectName() throws MalformedObjectNameException
MalformedObjectNameExceptionprivate void waitForSnapshotToBeCompleted()
throws InterruptedException
InterruptedExceptionprivate void waitForStreamingToStart()
throws InterruptedException
InterruptedExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.