Interface TopologyDescriber
The topology describer is used by the
TaskAssignor to get topic and task metadata of the group's topology.-
Method Summary
Modifier and TypeMethodDescriptionbooleanisStateful(String subtopologyId) Checks whether the given subtopology is associated with a changelog topic.intmaxNumInputPartitions(String subtopologyId) The maximal number of input partitions among all source topics for the given subtopology.The IDs of all subtopologies in the group's topology.
-
Method Details
-
subtopologies
-
maxNumInputPartitions
The maximal number of input partitions among all source topics for the given subtopology.- Parameters:
subtopologyId- String identifying the subtopology.- Returns:
- The maximal number of input partitions among all source topics for the given subtopology.
- Throws:
NoSuchElementException- if the subtopology ID does not exist.IllegalStateException- if the subtopology contains no source topics.
-
isStateful
Checks whether the given subtopology is associated with a changelog topic.- Parameters:
subtopologyId- String identifying the subtopology.- Returns:
- true if the subtopology is associated with a changelog topic, false otherwise.
- Throws:
NoSuchElementException- if the subtopology ID does not exist.
-