mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
[Optimize]优化Sonar扫描结果
This commit is contained in:
@@ -36,7 +36,7 @@ public abstract class BaseMetrics implements Serializable {
|
||||
return metrics.get(key);
|
||||
}
|
||||
|
||||
public BaseMetrics(Long clusterPhyId){
|
||||
protected BaseMetrics(Long clusterPhyId) {
|
||||
this.clusterPhyId = clusterPhyId;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
@Getter
|
||||
public class BrokerMetricEvent extends BaseMetricEvent{
|
||||
|
||||
private List<BrokerMetrics> brokerMetrics;
|
||||
private final List<BrokerMetrics> brokerMetrics;
|
||||
|
||||
public BrokerMetricEvent(Object source, List<BrokerMetrics> brokerMetrics) {
|
||||
super( source );
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
@Getter
|
||||
public class ClusterMetricEvent extends BaseMetricEvent{
|
||||
|
||||
private List<ClusterMetrics> clusterMetrics;
|
||||
private final List<ClusterMetrics> clusterMetrics;
|
||||
|
||||
public ClusterMetricEvent(Object source, List<ClusterMetrics> clusterMetrics) {
|
||||
super( source );
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
@Getter
|
||||
public class GroupMetricEvent extends BaseMetricEvent{
|
||||
|
||||
private List<GroupMetrics> groupMetrics;
|
||||
private final List<GroupMetrics> groupMetrics;
|
||||
|
||||
public GroupMetricEvent(Object source, List<GroupMetrics> groupMetrics) {
|
||||
super( source );
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
@Getter
|
||||
public class PartitionMetricEvent extends BaseMetricEvent{
|
||||
|
||||
private List<PartitionMetrics> partitionMetrics;
|
||||
private final List<PartitionMetrics> partitionMetrics;
|
||||
|
||||
public PartitionMetricEvent(Object source, List<PartitionMetrics> partitionMetrics) {
|
||||
super( source );
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
@Getter
|
||||
public class ReplicaMetricEvent extends BaseMetricEvent{
|
||||
|
||||
private List<ReplicationMetrics> replicationMetrics;
|
||||
private final List<ReplicationMetrics> replicationMetrics;
|
||||
|
||||
public ReplicaMetricEvent(Object source, List<ReplicationMetrics> replicationMetrics) {
|
||||
super( source );
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
@Getter
|
||||
public class TopicMetricEvent extends BaseMetricEvent{
|
||||
|
||||
private List<TopicMetrics> topicMetrics;
|
||||
private final List<TopicMetrics> topicMetrics;
|
||||
|
||||
public TopicMetricEvent(Object source, List<TopicMetrics> topicMetrics) {
|
||||
super( source );
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
@Getter
|
||||
public class ZookeeperMetricEvent extends BaseMetricEvent {
|
||||
|
||||
private List<ZookeeperMetrics> zookeeperMetrics;
|
||||
private final List<ZookeeperMetrics> zookeeperMetrics;
|
||||
|
||||
public ZookeeperMetricEvent(Object source, List<ZookeeperMetrics> zookeeperMetrics) {
|
||||
super( source );
|
||||
|
||||
Reference in New Issue
Block a user