Drop deprecated methods (#2837)
Co-authored-by: vrnsky <vrnsky@protonmail.com>
This commit is contained in:
parent
2853b34b5f
commit
7044e57095
3 changed files with 0 additions and 40 deletions
|
@ -53,17 +53,6 @@ public class ConsumerGroupsController extends AbstractController implements Cons
|
||||||
.map(ResponseEntity::ok);
|
.map(ResponseEntity::ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Mono<ResponseEntity<Flux<ConsumerGroupDTO>>> getConsumerGroups(String clusterName,
|
|
||||||
ServerWebExchange exchange) {
|
|
||||||
return consumerGroupService.getAllConsumerGroups(getCluster(clusterName))
|
|
||||||
.map(Flux::fromIterable)
|
|
||||||
.map(f -> f.map(ConsumerGroupMapper::toDto))
|
|
||||||
.map(ResponseEntity::ok)
|
|
||||||
.switchIfEmpty(Mono.just(ResponseEntity.notFound().build()));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Mono<ResponseEntity<Flux<ConsumerGroupDTO>>> getTopicConsumerGroups(
|
public Mono<ResponseEntity<Flux<ConsumerGroupDTO>>> getTopicConsumerGroups(
|
||||||
String clusterName, String topicName, ServerWebExchange exchange) {
|
String clusterName, String topicName, ServerWebExchange exchange) {
|
||||||
|
|
|
@ -64,13 +64,6 @@ public class ConsumerGroupService {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated // need to migrate to pagination
|
|
||||||
public Mono<List<InternalConsumerGroup>> getAllConsumerGroups(KafkaCluster cluster) {
|
|
||||||
return adminClientService.get(cluster)
|
|
||||||
.flatMap(ac -> describeConsumerGroups(ac, null)
|
|
||||||
.flatMap(descriptions -> getConsumerGroups(ac, descriptions)));
|
|
||||||
}
|
|
||||||
|
|
||||||
public Mono<List<InternalTopicConsumerGroup>> getConsumerGroupsForTopic(KafkaCluster cluster,
|
public Mono<List<InternalTopicConsumerGroup>> getConsumerGroupsForTopic(KafkaCluster cluster,
|
||||||
String topic) {
|
String topic) {
|
||||||
return adminClientService.get(cluster)
|
return adminClientService.get(cluster)
|
||||||
|
|
|
@ -862,28 +862,6 @@ paths:
|
||||||
200:
|
200:
|
||||||
description: OK
|
description: OK
|
||||||
|
|
||||||
/api/clusters/{clusterName}/consumer-groups:
|
|
||||||
get:
|
|
||||||
tags:
|
|
||||||
- Consumer Groups
|
|
||||||
summary: get all ConsumerGroups
|
|
||||||
operationId: getConsumerGroups
|
|
||||||
parameters:
|
|
||||||
- name: clusterName
|
|
||||||
in: path
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
responses:
|
|
||||||
200:
|
|
||||||
description: OK
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ConsumerGroup'
|
|
||||||
|
|
||||||
/api/clusters/{clusterName}/consumer-groups/{id}/offsets:
|
/api/clusters/{clusterName}/consumer-groups/{id}/offsets:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Reference in a new issue