public class DebeziumContainer extends org.testcontainers.containers.GenericContainer<DebeziumContainer>
| Modifier and Type | Field and Description |
|---|---|
protected static okhttp3.OkHttpClient |
CLIENT |
private static String |
DEBEZIUM_VERSION |
static okhttp3.MediaType |
JSON |
private static int |
KAFKA_CONNECT_PORT |
protected static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
private static String |
TEST_PROPERTY_PREFIX |
| Modifier | Constructor and Description |
|---|---|
private |
DebeziumContainer(String containerImageName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
connectorIsNotRegistered(String connectorName) |
private void |
defaultConfig() |
void |
deleteAllConnectors() |
void |
deleteConnector(String connectorName) |
protected void |
deleteDebeziumConnector(String connectorName) |
DebeziumContainer |
enableApicurioConverters() |
void |
ensureConnectorRegistered(String connectorName) |
void |
ensureConnectorState(String connectorName,
Connector.State status) |
void |
ensureConnectorTaskState(String connectorName,
int taskNumber,
Connector.State status) |
protected static okhttp3.Response |
executeGETRequest(okhttp3.Request request) |
protected static okhttp3.Response |
executeGETRequestSuccessfully(okhttp3.Request request) |
Connector.State |
getConnectorState(String connectorName) |
String |
getConnectorStatusURI(String connectorName)
Returns the "/connectors/
|
String |
getConnectorsURI()
Returns the "/connectors/
|
Connector.State |
getConnectorTaskState(String connectorName,
int taskNumber) |
String |
getConnectorURI(String connectorName)
Returns the "/connectors/
|
String |
getPauseConnectorURI(String connectorName)
Returns the "/connectors/
|
List<String> |
getRegisteredConnectors() |
String |
getTarget() |
private static void |
handleFailedResponse(okhttp3.Response response) |
boolean |
isConnectorConfigured(String connectorName) |
static DebeziumContainer |
latestStable() |
void |
pauseConnector(String connectorName) |
void |
registerConnector(String name,
ConnectorConfiguration configuration) |
private void |
registerConnectorToDebezium(String payload,
String fullUrl) |
static int |
waitTimeForRecords() |
DebeziumContainer |
withKafka(org.testcontainers.containers.KafkaContainer kafkaContainer) |
DebeziumContainer |
withKafka(org.testcontainers.containers.Network network,
String bootstrapServers) |
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, configure, containerIsCreated, containerIsStarted, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, doStart, equals, failed, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDependencies, getDockerClient, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLabels, getLinkedContainers, getLivenessCheckPort, getLivenessCheckPortNumbers, getLivenessCheckPorts, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getShmSize, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getTmpFsMapping, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, waitUntilContainerStarted, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindcopyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunningprivate static final String DEBEZIUM_VERSION
private static final int KAFKA_CONNECT_PORT
private static final String TEST_PROPERTY_PREFIX
public static final okhttp3.MediaType JSON
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
protected static final okhttp3.OkHttpClient CLIENT
private DebeziumContainer(String containerImageName)
public static DebeziumContainer latestStable()
private void defaultConfig()
public DebeziumContainer withKafka(org.testcontainers.containers.KafkaContainer kafkaContainer)
public DebeziumContainer withKafka(org.testcontainers.containers.Network network, String bootstrapServers)
public DebeziumContainer enableApicurioConverters()
public static int waitTimeForRecords()
public String getTarget()
public String getConnectorsURI()
public String getConnectorURI(String connectorName)
public String getPauseConnectorURI(String connectorName)
public String getConnectorStatusURI(String connectorName)
public void registerConnector(String name, ConnectorConfiguration configuration)
private static void handleFailedResponse(okhttp3.Response response)
private void registerConnectorToDebezium(String payload, String fullUrl)
protected static okhttp3.Response executeGETRequest(okhttp3.Request request)
protected static okhttp3.Response executeGETRequestSuccessfully(okhttp3.Request request)
public boolean connectorIsNotRegistered(String connectorName)
protected void deleteDebeziumConnector(String connectorName)
public void deleteConnector(String connectorName)
public boolean isConnectorConfigured(String connectorName)
public void ensureConnectorRegistered(String connectorName)
public void deleteAllConnectors()
public Connector.State getConnectorState(String connectorName)
public Connector.State getConnectorTaskState(String connectorName, int taskNumber)
public void pauseConnector(String connectorName)
public void ensureConnectorState(String connectorName, Connector.State status)
public void ensureConnectorTaskState(String connectorName, int taskNumber, Connector.State status)
Copyright © 2021 JBoss by Red Hat. All rights reserved.