adding sorting parameter (#646)
Co-authored-by: marselakhmetov <makhmetov@provectus.com>
This commit is contained in:
parent
0ec40dd7e4
commit
df1d3bbfc7
2 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,8 @@ public class ClusterService {
|
|||
return Comparator.comparing(InternalTopic::getPartitionCount);
|
||||
case OUT_OF_SYNC_REPLICAS:
|
||||
return Comparator.comparing(t -> t.getReplicas() - t.getInSyncReplicas());
|
||||
case REPLICATION_FACTOR:
|
||||
return Comparator.comparing(InternalTopic::getReplicationFactor);
|
||||
case NAME:
|
||||
default:
|
||||
return defaultComparator;
|
||||
|
|
|
@ -1457,6 +1457,7 @@ components:
|
|||
- NAME
|
||||
- OUT_OF_SYNC_REPLICAS
|
||||
- TOTAL_PARTITIONS
|
||||
- REPLICATION_FACTOR
|
||||
|
||||
Topic:
|
||||
type: object
|
||||
|
|
Loading…
Add table
Reference in a new issue