S - public class ConfluentKafkaContainer<S extends ConfluentKafkaContainer<S>> extends org.junit.rules.ExternalResource implements ConfluentContainer<S>
| Constructor and Description |
|---|
ConfluentKafkaContainer() |
ConfluentKafkaContainer(String confluentVersion) |
public ConfluentKafkaContainer()
public ConfluentKafkaContainer(String confluentVersion)
confluentVersion - public S self()
self in interface ConfluentContainer<S extends ConfluentKafkaContainer<S>>public S withSchemaRegistry(boolean schemaRegistryEnabled)
schemaRegistryEnabled - public S withRegisterSpringbootProperties(boolean registerProperties)
withRegisterSpringbootProperties in interface ConfluentContainer<S extends ConfluentKafkaContainer<S>>registerProperties - public S withKafkaServerCertificates(Certificates certificates)
public S withKafkaClientCertificates(Certificates certificates)
public Certificates getKafkaServerCertificates()
public Certificates getKafkaClientCertificates()
public boolean isSecured()
public S withNetwork(org.testcontainers.containers.Network network)
withNetwork in interface ConfluentContainer<S extends ConfluentKafkaContainer<S>>network - public S withIdentificationAlgorithmSystemProperty(String property)
public S withFormatMessageVersion(String version)
version - public S withTopic(String topicName, int partitions, boolean compact)
topicName - partitions - compact - public S withTopic(TopicConfiguration topic)
topic - public S withAllAcls(Certificates certificates, String topic, String group)
public S withWriteAcls(Certificates certificates, String topic)
public S withDescribeAcls(Certificates certificates, String topic, String group)
public S withReadAcls(Certificates certificates, String topic, String group)
public S withAcls(AclsOperation operation, String topic, String group)
public S withAcls(Certificates certificates, AclsOperation operation, String topic, String group)
public S withAcls(AclsOperation[] operations, String topic, String group)
public S withAcls(Certificates certificates, AclsOperation[] operations, String topic, String group)
public String getZookeeperConnect()
public String getZookeeperServer()
public String getBootstrapServers()
public String getSchemaRegistryServers()
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void before()
before in class org.junit.rules.ExternalResourcepublic void after()
after in class org.junit.rules.ExternalResourcepublic boolean isRunning()
public void start()
start in interface org.testcontainers.lifecycle.Startablepublic void stop()
stop in interface org.testcontainers.lifecycle.StartableCopyright © 2019. All rights reserved.