Interface KafkaTestEnvironment

  • All Known Implementing Classes:
    KafkaTestEnvironmentImpl

    public interface KafkaTestEnvironment
    Abstract class providing a Kafka test environment.
    • Method Detail

      • shutdown

        void shutdown()
      • deleteTestTopic

        void deleteTestTopic​(String topic)
      • createTestTopic

        void createTestTopic​(String topic,
                             int numberOfPartitions,
                             short replicationFactor,
                             Properties properties)
      • createTestTopic

        void createTestTopic​(String topic,
                             int numberOfPartitions,
                             short replicationFactor)
      • getStandardProperties

        Properties getStandardProperties()
      • getSecureProperties

        Properties getSecureProperties()
      • getBrokerConnectionString

        String getBrokerConnectionString()
      • getVersion

        String getVersion()
      • getBrokers

        List<kafka.server.KafkaServer> getBrokers()
      • getAllRecordsFromTopic

        <K,​V> Collection<org.apache.kafka.clients.consumer.ConsumerRecord<K,​V>> getAllRecordsFromTopic​(Properties properties,
                                                                                                                   String topic,
                                                                                                                   int partition,
                                                                                                                   long timeout)
      • getBrokerId

        int getBrokerId​(kafka.server.KafkaServer server)
      • isSecureRunSupported

        boolean isSecureRunSupported()