public class KafkaContainer extends org.testcontainers.containers.GenericContainer<KafkaContainer>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
externalZookeeperConnect |
static int |
KAFKA_PORT |
static int |
ZOOKEEPER_PORT |
Constructor and Description |
---|
KafkaContainer()
Deprecated.
use
KafkaContainer(DockerImageName) instead |
KafkaContainer(org.testcontainers.utility.DockerImageName dockerImageName) |
KafkaContainer(java.lang.String confluentPlatformVersion)
Deprecated.
use
KafkaContainer(DockerImageName) instead |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
brokerAdvertisedListener(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) |
protected void |
configure() |
protected void |
containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo) |
java.lang.String |
getBootstrapServers() |
KafkaContainer |
withEmbeddedZookeeper() |
KafkaContainer |
withExternalZookeeper(java.lang.String connectString) |
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canBeReused, containerIsCreated, 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, isHostAccessible, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setHostAccessible, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, starting, stop, succeeded, toString, waitingFor, waitUntilContainerStarted, withAccessToHost, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCopyToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectory
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBind
copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunning
public static final int KAFKA_PORT
public static final int ZOOKEEPER_PORT
protected java.lang.String externalZookeeperConnect
@Deprecated public KafkaContainer()
KafkaContainer(DockerImageName)
instead@Deprecated public KafkaContainer(java.lang.String confluentPlatformVersion)
KafkaContainer(DockerImageName)
insteadpublic KafkaContainer(org.testcontainers.utility.DockerImageName dockerImageName)
public KafkaContainer withEmbeddedZookeeper()
public KafkaContainer withExternalZookeeper(java.lang.String connectString)
public java.lang.String getBootstrapServers()
protected void configure()
configure
in class org.testcontainers.containers.GenericContainer<KafkaContainer>
protected void containerIsStarted(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)
containerIsStarted
in class org.testcontainers.containers.GenericContainer<KafkaContainer>
protected java.lang.String brokerAdvertisedListener(com.github.dockerjava.api.command.InspectContainerResponse containerInfo)