Kemux Manager
Manager class for Kemux.
The main class that is used to initialize and start the Kemux receiver.
Manager
dataclass
Manager Class
The main class that is used to initialize and start the Kemux receiver and operate on the incoming and outgoing messages accordign to the specifications defined by the user in the Stream subclasses.
| Attributes: |
|
|---|
add_stream(name, stream_input_class, stream_outputs_class)
Add a stream to the Kemux manager.
| Parameters: |
|
|---|
create_processing_function(stream)
Create a processing function for a stream, specific to the name of its input topic.
| Parameters: |
|
|---|
| Returns: |
|
|---|
init(name, kafka_address, data_dir, streams_dir=None)
classmethod
Initialize the Kemux receiver.
| Parameters: |
|
|---|
| Returns: |
|
|---|
initialize_streams()
async
Initialize the streams i.e. initialize the input and output topic handlers and the stream agents.
| Raises: |
|
|---|
remove_stream(name)
Remove a stream from the Kemux manager.
| Parameters: |
|
|---|
start()
Start the Kemux receiver i.e. the underlying Faust application and the stream agents.
| Raises: |
|
|---|