Class KafkaUiUtils
- java.lang.Object
-
- io.quarkus.kafka.client.runtime.ui.KafkaUiUtils
-
@Singleton public class KafkaUiUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description KafkaUiUtils(KafkaAdminClient kafkaAdminClient, KafkaTopicClient kafkaTopicClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Map<String,Object> config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createMessage(KafkaMessageCreateRequest request)
KafkaAclInfo
getAclInfo()
KafkaClusterInfo
getClusterInfo()
List<KafkaConsumerGroup>
getConsumerGroups()
KafkaInfo
getKafkaInfo()
KafkaMessagePage
getMessages(KafkaMessagesRequest request)
Map<Integer,Long>
getOffset(KafkaOffsetRequest request)
long
getTopicMessageCount(String topicName, Collection<Integer> partitions)
List<KafkaTopic>
getTopics()
Collection<Integer>
partitions(String topicName)
String
toJson(Object o)
-
-
-
Constructor Detail
-
KafkaUiUtils
public KafkaUiUtils(KafkaAdminClient kafkaAdminClient, KafkaTopicClient kafkaTopicClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Identifier("default-kafka-broker") Map<String,Object> config)
-
-
Method Detail
-
getKafkaInfo
public KafkaInfo getKafkaInfo() throws ExecutionException, InterruptedException
-
getClusterInfo
public KafkaClusterInfo getClusterInfo() throws ExecutionException, InterruptedException
-
getTopics
public List<KafkaTopic> getTopics() throws InterruptedException, ExecutionException
-
getTopicMessageCount
public long getTopicMessageCount(String topicName, Collection<Integer> partitions) throws ExecutionException, InterruptedException
-
partitions
public Collection<Integer> partitions(String topicName) throws ExecutionException, InterruptedException
-
getMessages
public KafkaMessagePage getMessages(KafkaMessagesRequest request) throws ExecutionException, InterruptedException
-
createMessage
public void createMessage(KafkaMessageCreateRequest request)
-
getConsumerGroups
public List<KafkaConsumerGroup> getConsumerGroups() throws InterruptedException, ExecutionException
-
getOffset
public Map<Integer,Long> getOffset(KafkaOffsetRequest request) throws ExecutionException, InterruptedException
-
getAclInfo
public KafkaAclInfo getAclInfo() throws InterruptedException, ExecutionException
-
-