BrokerMetrics.java 922 字节
Newer Older
Z
zengqiao 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
package com.xiaojukeji.kafka.manager.common.entity.metrics;

/**
 * @author zengqiao
 * @date 20/6/17
 */
public class BrokerMetrics extends BaseMetrics {
    private Long clusterId;

    private Integer brokerId;

    public BrokerMetrics(Long clusterId, Integer brokerId) {
        super();
        this.clusterId = clusterId;
        this.brokerId = brokerId;
    }

    public Long getClusterId() {
        return clusterId;
    }

    public void setClusterId(Long clusterId) {
        this.clusterId = clusterId;
    }

    public Integer getBrokerId() {
        return brokerId;
    }

    public void setBrokerId(Integer brokerId) {
        this.brokerId = brokerId;
    }

    @Override
    public String toString() {
        return "BrokerMetrics{" +
                "clusterId=" + clusterId +
                ", brokerId=" + brokerId +
                ", metricsMap=" + metricsMap +
                '}';
    }
}