def changelog_distribution(self, value: HostToPartitionMap) -> None: self._changelog_distribution = value self._tps_url = { TP(topic, partition): url for url, tps in self._changelog_distribution.items() for topic, partitions in tps.items() for partition in partitions }
def assigned_actives(self) -> Set[TP]: return { TP(topic, partition) for topic, partitions in self._assignment.actives.items() for partition in partitions }
def assigned_standbys(self) -> Set[TP]: return { TP(topic, partition) for topic, partitions in self._assignment.standbys.items() for partition in partitions }