Class KafkaUiUtils
- java.lang.Object
-
- io.quarkus.kafka.client.runtime.devui.KafkaUiUtils
-
@Singleton public class KafkaUiUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description KafkaUiUtils(KafkaAdminClient kafkaAdminClient, KafkaTopicClient kafkaTopicClient, Map<String,Object> config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createMessage(KafkaMessageCreateRequest request)
io.vertx.core.json.JsonObject
fromJson(io.vertx.core.buffer.Buffer buffer)
<T> T
fromJson(io.vertx.core.buffer.Buffer buffer, Class<T> type)
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, @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
-
fromJson
public io.vertx.core.json.JsonObject fromJson(io.vertx.core.buffer.Buffer buffer)
-
fromJson
public <T> T fromJson(io.vertx.core.buffer.Buffer buffer, Class<T> type)
-
-