Package io.debezium.connector.mysql
Class MySqlMetricsIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.mysql.MySqlMetricsIT
-
- All Implemented Interfaces:
Testing
public class MySqlMetricsIT extends AbstractConnectorTest
- Author:
- Chris Cranford
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description private UniqueDatabaseDATABASEprivate static PathDB_HISTORY_PATHprivate static StringINSERT1private static StringINSERT2private static StringSERVER_NAME-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description MySqlMetricsIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()private voidassertNoSnapshotMetricsExist()private voidassertNoStreamingMetricsExist()private voidassertSnapshotMetrics()private voidassertSnapshotMetricsExist()private voidassertStreamingMetrics(long events)private voidassertStreamingMetricsExist()voidbefore()private ObjectNamegetSnapshotMetricsObjectName()private ObjectNamegetStreamingMetricsObjectName()protected static booleanisLegacy()voidtestLifecycle()voidtestSnapshotAndStreamingMetrics()voidtestSnapshotOnlyMetrics()voidtestStreamingOnlyMetrics()private voidwaitForSnapshotToBeCompleted()private voidwaitForStreamingToStart()-
Methods inherited from class io.debezium.embedded.AbstractConnectorTest
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertOnlyTransactionRecordsToConsume, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Field Detail
-
DB_HISTORY_PATH
private static final Path DB_HISTORY_PATH
-
SERVER_NAME
private static final String SERVER_NAME
- See Also:
- Constant Field Values
-
DATABASE
private final UniqueDatabase DATABASE
-
INSERT1
private static final String INSERT1
- See Also:
- Constant Field Values
-
INSERT2
private static final String INSERT2
- See Also:
- Constant Field Values
-
-
Method Detail
-
testSnapshotAndStreamingMetrics
public void testSnapshotAndStreamingMetrics() throws Exception- Throws:
Exception
-
assertNoSnapshotMetricsExist
private void assertNoSnapshotMetricsExist() throws Exception- Throws:
Exception
-
assertNoStreamingMetricsExist
private void assertNoStreamingMetricsExist() throws Exception- Throws:
Exception
-
assertStreamingMetricsExist
private void assertStreamingMetricsExist() throws Exception- Throws:
Exception
-
assertSnapshotMetricsExist
private void assertSnapshotMetricsExist() throws Exception- Throws:
Exception
-
assertStreamingMetrics
private void assertStreamingMetrics(long events) throws Exception- Throws:
Exception
-
getSnapshotMetricsObjectName
private ObjectName getSnapshotMetricsObjectName() throws MalformedObjectNameException
- Throws:
MalformedObjectNameException
-
getStreamingMetricsObjectName
private ObjectName getStreamingMetricsObjectName() throws MalformedObjectNameException
- Throws:
MalformedObjectNameException
-
waitForSnapshotToBeCompleted
private void waitForSnapshotToBeCompleted() throws InterruptedException- Throws:
InterruptedException
-
waitForStreamingToStart
private void waitForStreamingToStart() throws InterruptedException- Throws:
InterruptedException
-
isLegacy
protected static boolean isLegacy()
-
-