Trait

net.manub.embeddedkafka.schemaregistry.streams

EmbeddedKafkaStreamsWithSchemaRegistry

Related Doc: package streams

Permalink

trait EmbeddedKafkaStreamsWithSchemaRegistry extends EmbeddedKafkaWithSchemaRegistry with TestStreamsConfig

Helper trait for testing Kafka Streams. It creates an embedded Kafka Instance for each test case. Use runStreams to execute your streams.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EmbeddedKafkaStreamsWithSchemaRegistry
  2. TestStreamsConfig
  3. EmbeddedKafkaWithSchemaRegistry
  4. EmbeddedKafkaWithSchemaRegistrySupport
  5. EmbeddedKafkaSupport
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def baseConsumerConfig(implicit config: EmbeddedKafkaConfigWithSchemaRegistry): Map[String, AnyRef]

    Permalink
    Definition Classes
    EmbeddedKafkaWithSchemaRegistry → EmbeddedKafkaSupport
  6. def baseProducerConfig(implicit config: EmbeddedKafkaConfigWithSchemaRegistry): Map[String, AnyRef]

    Permalink
    Definition Classes
    EmbeddedKafkaWithSchemaRegistry → EmbeddedKafkaSupport
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def consumeFirstKeyedMessageFrom[K, V](topic: String, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): (K, V)

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
    Annotations
    @throws( ... ) @throws( ... )
  9. def consumeFirstMessageFrom[V](topic: String, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, valueDeserializer: Deserializer[V]): V

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
    Annotations
    @throws( ... ) @throws( ... )
  10. def consumeFirstStringMessageFrom(topic: String, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry): String

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  11. def consumeNumberKeyedMessagesFrom[K, V](topic: String, number: Int, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): List[(K, V)]

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  12. def consumeNumberKeyedMessagesFromTopics[K, V](topics: Set[String], number: Int, autoCommit: Boolean, timeout: Duration, resetTimeoutOnEachMessage: Boolean)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V]): Map[String, List[(K, V)]]

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  13. def consumeNumberMessagesFrom[V](topic: String, number: Int, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, valueDeserializer: Deserializer[V]): List[V]

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  14. def consumeNumberMessagesFromTopics[V](topics: Set[String], number: Int, autoCommit: Boolean, timeout: Duration, resetTimeoutOnEachMessage: Boolean)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, valueDeserializer: Deserializer[V]): Map[String, List[V]]

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  15. def consumeNumberStringMessagesFrom(topic: String, number: Int, autoCommit: Boolean)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry): List[String]

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  16. def createCustomTopic(topic: String, topicConfig: Map[String, String], partitions: Int, replicationFactor: Int)(implicit config: EmbeddedKafkaConfig): Unit

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def kafkaConsumer[K, T](implicit config: EmbeddedKafkaConfigWithSchemaRegistry, keyDeserializer: Deserializer[K], deserializer: Deserializer[T]): KafkaConsumer[K, T]

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  24. def kafkaProducer[K, T](topic: String, key: K, message: T)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, keySerializer: Serializer[K], serializer: Serializer[T]): KafkaProducer[K, T]

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def publishStringMessageToKafka(topic: String, message: String)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry): Unit

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  29. def publishToKafka[K, T](topic: String, messages: Seq[(K, T)])(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, keySerializer: Serializer[K], serializer: Serializer[T]): Unit

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
    Annotations
    @throws( ... )
  30. def publishToKafka[K, T](topic: String, key: K, message: T)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, keySerializer: Serializer[K], serializer: Serializer[T]): Unit

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
    Annotations
    @throws( ... )
  31. def publishToKafka[T](producerRecord: ProducerRecord[String, T])(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, serializer: Serializer[T]): Unit

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
    Annotations
    @throws( ... )
  32. def publishToKafka[T](topic: String, message: T)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry, serializer: Serializer[T]): Unit

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
    Annotations
    @throws( ... )
  33. def runStreams[T](topicsToCreate: Seq[String], topology: Topology, extraConfig: Map[String, AnyRef] = Map.empty)(block: ⇒ T)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry): T

    Permalink

    Execute Kafka streams and pass a block of code that can operate while the streams are active.

    Execute Kafka streams and pass a block of code that can operate while the streams are active. The code block can be used for publishing and consuming messages in Kafka.

    topicsToCreate

    the topics that should be created in Kafka before launching the streams.

    topology

    the streams topology that will be used to instantiate the streams with a default configuration (all state directories are different and in temp folders)

    extraConfig

    additional KafkaStreams configuration (overwrite existing keys in default config)

    block

    the code block that will executed while the streams are active. Once the block has been executed the streams will be closed.

  34. def startKafka(config: EmbeddedKafkaConfig, kafkaLogDir: Directory): KafkaServer

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  35. def startSchemaRegistry(schemaRegistryPort: Int, zooKeeperPort: Int, avroCompatibilityLevel: AvroCompatibilityLevel = AvroCompatibilityLevel.NONE, properties: Properties = new Properties): RestApp

    Permalink
    Attributes
    protected
    Definition Classes
    EmbeddedKafkaWithSchemaRegistrySupport
  36. def startZooKeeper(zooKeeperPort: Int, zkLogsDir: Directory): ServerCnxnFactory

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  37. def streamConfig(streamName: String, extraConfig: Map[String, AnyRef])(implicit kafkaConfig: EmbeddedKafkaConfig): StreamsConfig

    Permalink
    Definition Classes
    TestStreamsConfig
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def withRunningKafka[T](body: ⇒ T)(implicit config: EmbeddedKafkaConfigWithSchemaRegistry): T

    Permalink

    Starts a ZooKeeper instance, a Kafka broker and a Schema Registry app, then executes the body passed as a parameter.

    Starts a ZooKeeper instance, a Kafka broker and a Schema Registry app, then executes the body passed as a parameter.

    body

    the function to execute

    config

    an implicit EmbeddedKafkaConfig

    Definition Classes
    EmbeddedKafkaWithSchemaRegistrySupport
  44. def withRunningKafka[T](body: ⇒ T)(implicit config: EmbeddedKafkaConfig): T

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  45. def withRunningKafkaOnFoundPort[T](config: EmbeddedKafkaConfigWithSchemaRegistry)(body: (EmbeddedKafkaConfigWithSchemaRegistry) ⇒ T): T

    Permalink

    Starts a ZooKeeper instance, a Kafka broker and a Schema Registry app, then executes the body passed as a parameter.

    Starts a ZooKeeper instance, a Kafka broker and a Schema Registry app, then executes the body passed as a parameter. The actual ZooKeeper, Kafka, and Schema Registry ports will be detected and inserted into a copied version of the EmbeddedKafkaConfig that gets passed to body. This is useful if you set any port to 0, which will listen on an arbitrary available port.

    config

    the user-defined EmbeddedKafkaConfig

    body

    the function to execute, given an EmbeddedKafkaConfig with the actual ports Kafka, ZooKeeper, and Schema Registry are running on

    Definition Classes
    EmbeddedKafkaWithSchemaRegistrySupport
  46. def withRunningKafkaOnFoundPort[T](config: EmbeddedKafkaConfig)(body: (EmbeddedKafkaConfig) ⇒ T): T

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  47. val zkConnectionTimeoutMs: Int

    Permalink
    Definition Classes
    EmbeddedKafkaSupport
  48. val zkSessionTimeoutMs: Int

    Permalink
    Definition Classes
    EmbeddedKafkaSupport

Inherited from TestStreamsConfig

Inherited from EmbeddedKafkaSupport[EmbeddedKafkaConfigWithSchemaRegistry]

Inherited from AnyRef

Inherited from Any

Ungrouped