public class KafkaContainer extends org.testcontainers.containers.FixedHostPortGenericContainer<KafkaContainer> implements IContainer<KafkaContainer>
| Constructor and Description |
|---|
KafkaContainer(String version) |
KafkaContainer(String version,
int brokersMappingPort) |
withFixedExposedPort, withFixedExposedPortaddEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, apply, canEqual, containerIsCreated, containerIsStarted, containerIsStarting, copyFileFromContainer, copyFileFromContainer, copyFileToContainer, copyFileToContainer, createVolumeDirectory, doStart, execInContainer, execInContainer, failed, fetchDockerDaemonInfo, finished, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, 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, isPrivilegedMode, 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, starting, stop, succeeded, toString, waitingFor, waitUntilContainerStarted, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFileSystemBind, addLink, copyFileFromContainer, copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, fetchDockerDaemonInfo, followOutput, followOutput, getBinds, getCommandParts, getDockerClient, getDockerDaemonInfo, getDockerImageName, getEnv, getEnvMap, getExtraHosts, getImage, getLinkedContainers, getPortBindings, getTestHostIpAddress, self, setBinds, setCommand, setCommand, setCommandParts, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setImage, setLinkedContainers, setPortBindings, setWaitStrategy, waitingFor, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withEnv, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withFileSystemBind, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withStartupCheckStrategy, withStartupTimeout, withVolumesFrom, withWorkingDirectorygetContainerNamepublic KafkaContainer(String version)
version - public KafkaContainer(String version, int brokersMappingPort)
version - brokersMappingPort - protected void configure()
configure in class org.testcontainers.containers.GenericContainer<KafkaContainer>public boolean isSecured()
public String getURL()
getURL in interface IContainer<KafkaContainer>public String getInternalURL()
getInternalURL in interface IContainer<KafkaContainer>public void start()
start in interface org.testcontainers.lifecycle.Startablestart in class org.testcontainers.containers.GenericContainer<KafkaContainer>public KafkaContainer withZookeeperPort(Integer port)
port - public KafkaContainer withFormatMessageVersion(String version)
version - public KafkaContainer withZookeeperHostname(String zookeeperHostname)
zookeeperHostname - public KafkaContainer withBrokerServersSystemProperty(String brokerServersSystemProperty)
brokerServersSystemProperty - public KafkaContainer withSecurityProtocolSystemProperty(String securityProtocolSystemProperty)
public KafkaContainer withKeyPasswordSystemProperty(String keyPasswordSystemProperty)
public KafkaContainer withKeystoreLocationSystemProperty(String keystoreLocationSystemProperty)
public KafkaContainer withKeystorePasswordSystemProperty(String keystorePasswordSystemProperty)
public KafkaContainer withTruststoreLocationSystemProperty(String truststoreLocationSystemProperty)
public KafkaContainer withTruststorePasswordSystemProperty(String truststorePasswordSystemProperty)
public KafkaContainer withIdentificationAlgorithmSystemProperty(String identificationAlgorithmSystemProperty)
public KafkaContainer withRegisterSpringbootProperties(boolean registerProperties)
withRegisterSpringbootProperties in interface IContainer<KafkaContainer>registerProperties - public boolean registerSpringbootProperties()
registerSpringbootProperties in interface IContainer<KafkaContainer>@Deprecated public String getLocalURL()
protected void registerKafkaEnvironment()
public KafkaContainer withKafkaServerCertificates(Certificates certificates)
certificates - public KafkaContainer withKafkaClientCertificates(Certificates certificates)
certificates - public KafkaContainer withTopics(List<TopicConfiguration> topics)
topics - public KafkaContainer withAcls(List<AclsAddCmd> commands)
public boolean equals(Object o)
equals in class org.testcontainers.containers.GenericContainer<KafkaContainer>public int hashCode()
hashCode in class org.testcontainers.containers.GenericContainer<KafkaContainer>Copyright © 2019. All rights reserved.