Class AbstractNotificationsIT<T extends org.apache.kafka.connect.source.SourceConnector>
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.pipeline.notification.AbstractNotificationsIT<T>
- All Implemented Interfaces:
Testing
public abstract class AbstractNotificationsIT<T extends org.apache.kafka.connect.source.SourceConnector>
extends AbstractConnectorTest
-
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, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.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, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForNotInitialState, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Constructor Details
-
AbstractNotificationsIT
public AbstractNotificationsIT()
-
-
Method Details
-
connectorClass
-
config
-
connector
-
server
-
task
-
database
-
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
-
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
-