public interface IKafka<T>
Boolean testCon(ISourceDTO source)
source - ExceptionString getAllBrokersAddress(ISourceDTO source)
source - ExceptionList<String> getTopicList(ISourceDTO source)
source - ExceptionBoolean createTopic(ISourceDTO source, KafkaTopicDTO kafkaTopic)
source - kafkaTopic - Exception@Deprecated List<T> getAllPartitions(ISourceDTO source, String topic)
source - topic - ExceptionList<KafkaOffsetDTO> getOffset(ISourceDTO source, String topic)
source - topic - Exception@Deprecated List<List<Object>> getPreview(ISourceDTO source, SqlQueryDTO queryDTO)
getPreview(ISourceDTO source, SqlQueryDTO queryDTO, String prevMode)source - queryDTO - ExceptionList<List<Object>> getPreview(ISourceDTO source, SqlQueryDTO queryDTO, String prevMode)
source - 数据源信息queryDTO - 查询条件prevMode - 预览模式ExceptionList<KafkaPartitionDTO> getTopicPartitions(ISourceDTO source, String topic)
source - 数据源信息topic - topic名称List<String> consumeData(ISourceDTO source, String topic, Integer collectNum, String offsetReset, Long timestampOffset, Integer maxTimeWait)
source - 数据源信息topic - topiccollectNum - 最大条数offsetReset - 从哪里开始消费timestampOffset - 消费启始位置maxTimeWait - 最大等待时间,单位秒List<String> listConsumerGroup(ISourceDTO source)
source - 数据源信息List<String> listConsumerGroupByTopic(ISourceDTO source, String topic)
source - 数据源信息List<KafkaConsumerDTO> getGroupInfoByGroupId(ISourceDTO source, String groupId)
source - 数据源信息groupId - 消费者组List<KafkaConsumerDTO> getGroupInfoByTopic(ISourceDTO source, String topic)
source - 数据源信息topic - kafka主题List<KafkaConsumerDTO> getGroupInfoByGroupIdAndTopic(ISourceDTO source, String groupId, String topic)
source - 数据源信息groupId - 消费者组topic - kafka主题Copyright © 2022. All rights reserved.