TopicNames¶
- class lsst.ts.salkafka.TopicNames(partitions: int, add_ackcmd: bool = False, commands: Sequence[str] = (), events: Sequence[str] = (), telemetry: Sequence[str] = ())¶
Bases:
objectA collection of topic names.
Topic names must omit the
command_andlogevent_prefix. For example specify “start” instead of “command_start”, and “summaryState” instead of “logevent_summaryState”.- Parameters:
- partitions
int The desired number of Kafka partitions for these topics.
- add_ackcmd
bool, optional Add
ackcmdtopic to the producer?- commands
listofstr, optional Commands to add to the producer, with no prefix, e.g. “enable”. Converted to a sorted list.
- events
listofstr, optional Events to add to the producer, with no prefix, e.g. “summaryState”. Converted to a sorted list.
- telemetry
listofstr, optional Telemtry topics to add to the producer. Converted to a sorted list.
- partitions
Attributes Summary
Attributes Documentation