@Internal
public class Kafka08PartitionDiscoverer
extends org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscoverer
org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscoverer.ClosedException, org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscoverer.WakeupException| Constructor and Description |
|---|
Kafka08PartitionDiscoverer(org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicsDescriptor topicsDescriptor,
int indexOfThisSubtask,
int numParallelSubtasks,
Properties kafkaProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeConnections() |
List<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition> |
getAllPartitionsForTopics(List<String> topics) |
protected List<String> |
getAllTopics() |
List<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartitionLeader> |
getPartitionLeadersForTopics(List<String> topics)
Send request to Kafka to get partitions for topics.
|
protected void |
initializeConnections() |
protected void |
wakeupConnections() |
public Kafka08PartitionDiscoverer(org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicsDescriptor topicsDescriptor,
int indexOfThisSubtask,
int numParallelSubtasks,
Properties kafkaProperties)
protected void initializeConnections()
initializeConnections in class org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscovererprotected List<String> getAllTopics()
getAllTopics in class org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscovererpublic List<org.apache.flink.streaming.connectors.kafka.internals.KafkaTopicPartition> getAllPartitionsForTopics(List<String> topics)
getAllPartitionsForTopics in class org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscovererprotected void wakeupConnections()
wakeupConnections in class org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscovererprotected void closeConnections()
throws Exception
closeConnections in class org.apache.flink.streaming.connectors.kafka.internals.AbstractPartitionDiscovererExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.