Add missing readonly field (#1506)
Signed-off-by: Roman Zabaluev <rzabaluev@provectus.com>
This commit is contained in:
parent
1ae0d4d8aa
commit
afca54d374
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,7 @@ public class InternalClusterState {
|
||||||
private List<Feature> features;
|
private List<Feature> features;
|
||||||
private BigDecimal bytesInPerSec;
|
private BigDecimal bytesInPerSec;
|
||||||
private BigDecimal bytesOutPerSec;
|
private BigDecimal bytesOutPerSec;
|
||||||
|
private Boolean readOnly;
|
||||||
|
|
||||||
public InternalClusterState(KafkaCluster cluster, MetricsCache.Metrics metrics) {
|
public InternalClusterState(KafkaCluster cluster, MetricsCache.Metrics metrics) {
|
||||||
name = cluster.getName();
|
name = cluster.getName();
|
||||||
|
@ -66,6 +67,7 @@ public class InternalClusterState {
|
||||||
inSyncReplicasCount = partitionsStats.getInSyncReplicasCount();
|
inSyncReplicasCount = partitionsStats.getInSyncReplicasCount();
|
||||||
outOfSyncReplicasCount = partitionsStats.getOutOfSyncReplicasCount();
|
outOfSyncReplicasCount = partitionsStats.getOutOfSyncReplicasCount();
|
||||||
underReplicatedPartitionCount = partitionsStats.getUnderReplicatedPartitionCount();
|
underReplicatedPartitionCount = partitionsStats.getUnderReplicatedPartitionCount();
|
||||||
|
readOnly = cluster.getReadOnly();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue