RunningKafkaOps

io.github.embeddedkafka.ops.RunningKafkaOps

KafkaOps extension relying on RunningServersOps for keeping track of running EmbeddedK instances.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
KafkaOps & RunningServersOps

Members list

Value members

Concrete methods

def startKafka(kafkaLogsDir: Path, factory: Option[EmbeddedZ])(implicit config: EmbeddedKafkaConfig): EmbeddedK

Starts a Kafka broker in memory, storing logs in a specific location.

Starts a Kafka broker in memory, storing logs in a specific location.

Value parameters

config

an implicit EmbeddedKafkaConfig

factory

an EmbeddedZ server

kafkaLogsDir

the path for the Kafka logs

Attributes

Returns

an EmbeddedK server

def stopKafka(): Unit

Stops all in memory Kafka instances, preserving the logs directories.

Stops all in memory Kafka instances, preserving the logs directories.

Attributes