public class DebeziumContainer extends org.testcontainers.containers.GenericContainer<DebeziumContainer>
| Modifier and Type | Field and Description |
|---|---|
private okhttp3.OkHttpClient |
client |
static okhttp3.MediaType |
JSON |
private static int |
KAFKA_CONNECT_PORT |
| Constructor and Description |
|---|
DebeziumContainer(Future<String> image) |
DebeziumContainer(String containerImageName) |
| Modifier and Type | Method and Description |
|---|---|
private void |
defaultConfig() |
String |
getConnector(String connectorName)
Returns the "/connectors/
|
String |
getConnectors()
Returns the "/connectors" endpoint.
|
String |
getConnectorStatus(String connectorName)
Returns the "/connectors/
|
String |
getTarget() |
private boolean |
isConnectorConfigured(String connectorName) |
void |
registerConnector(String name,
ConnectorConfiguration configuration) |
private void |
registerConnectorToDebezium(String payload,
String fullUrl) |
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, doStart, equals, failed, fetchDockerDaemonInfo, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDependencies, getDockerClient, getDockerDaemonInfo, 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, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunningprivate static final int KAFKA_CONNECT_PORT
private final okhttp3.OkHttpClient client
public static final okhttp3.MediaType JSON
public DebeziumContainer(String containerImageName)
private void defaultConfig()
public DebeziumContainer withKafka(org.testcontainers.containers.KafkaContainer kafkaContainer)
public DebeziumContainer withKafka(org.testcontainers.containers.Network network, String bootstrapServers)
public void registerConnector(String name, ConnectorConfiguration configuration) throws IOException
IOExceptionprivate void registerConnectorToDebezium(String payload, String fullUrl) throws IOException
IOExceptionprivate boolean isConnectorConfigured(String connectorName) throws IOException
IOExceptionpublic String getConnectors()
public String getConnectorStatus(String connectorName)
public String getTarget()
Copyright © 2020 JBoss by Red Hat. All rights reserved.