Class AbstractNotificationsIT<T extends org.apache.kafka.connect.source.SourceConnector>
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
io.debezium.pipeline.notification.AbstractNotificationsIT<T>
- All Implemented Interfaces:
Testing
public abstract class AbstractNotificationsIT<T extends org.apache.kafka.connect.source.SourceConnector>
extends AbstractAsyncEngineConnectorTest
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertTableNotificationsSentToJmx(List<Notification> notifications, String tableName) private voidassertTableNotificationsSentToTopic(List<org.apache.kafka.connect.source.SourceRecord> notifications, String tableName) private intprotected abstract Configuration.Builderconfig()protected abstract Stringprotected Stringdatabase()voidprivate ObjectNamevoidvoidvoidprivate MBeanNotificationInfo[]private List<Notification>private List<Notification>voidprivate voidprotected abstract Stringserver()protected abstract Stringprotected voidstartConnector(Function<Configuration.Builder, Configuration.Builder> custConfig) protected Stringtask()Methods inherited from class io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
createEngine, createEngineBuilderMethods 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, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, storeOffsets, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Constructor Details
-
AbstractNotificationsIT
public AbstractNotificationsIT()
-
-
Method Details
-
connectorClass
-
config
-
connector
-
server
-
task
-
database
-
collections
-
startConnector
-
snapshotStatusResult
-
notificationCorrectlySentOnItsTopic
- Throws:
InterruptedException
-
notificationNotSentIfNoChannelIsConfigured
public void notificationNotSentIfNoChannelIsConfigured() -
reportErrorWhenSinkChannelIsEnabledAndNoTopicConfigurationProvided
public void reportErrorWhenSinkChannelIsEnabledAndNoTopicConfigurationProvided() -
notificationCorrectlySentOnJmx
public void notificationCorrectlySentOnJmx() throws ReflectionException, MalformedObjectNameException, InstanceNotFoundException, IntrospectionException, AttributeNotFoundException, MBeanException, InterruptedException -
emittingDebeziumNotificationWillGenerateAJmxNotification
public void emittingDebeziumNotificationWillGenerateAJmxNotification() throws ReflectionException, MalformedObjectNameException, InstanceNotFoundException, IntrospectionException, AttributeNotFoundException, MBeanException, InterruptedException, com.fasterxml.jackson.core.JsonProcessingException- Throws:
ReflectionExceptionMalformedObjectNameExceptionInstanceNotFoundExceptionIntrospectionExceptionAttributeNotFoundExceptionMBeanExceptionInterruptedExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
assertTableNotificationsSentToJmx
-
assertTableNotificationsSentToTopic
-
readNotificationFromJmx
private List<Notification> readNotificationFromJmx() throws MalformedObjectNameException, ReflectionException, InstanceNotFoundException, IntrospectionException, AttributeNotFoundException, MBeanException -
readJmxNotifications
private MBeanNotificationInfo[] readJmxNotifications() throws MalformedObjectNameException, ReflectionException, InstanceNotFoundException, IntrospectionException, AttributeNotFoundException, MBeanException -
getObjectName
- Throws:
MalformedObjectNameException
-
registerJmxNotificationListener
private List<Notification> registerJmxNotificationListener() throws MalformedObjectNameException, InstanceNotFoundException -
resetNotifications
private void resetNotifications() throws MalformedObjectNameException, ReflectionException, InstanceNotFoundException, MBeanException -
calculateNotificationSize
private int calculateNotificationSize()
-