All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.taobao.drc.clusterclient.clustermanager.LocalConsumerStatus Maven / Gradle / Ivy

There is a newer version: 5.0.0.1.beta
Show newest version
package com.taobao.drc.clusterclient.clustermanager;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yangyang
 * @since 17/6/20
 */
public class LocalConsumerStatus {
    private final String guid;
    private final String group;
    private final String consumer;
    private final String password;
    private final String version;
    private final String ip;
    private final int maxconns;
    private final String state;
    private final String message;
    private final List partitions = new ArrayList();
    private String seq;

    public LocalConsumerStatus(String guid, String group, String consumer, String password, String version, String ip,
                               int maxconns, String state, String message) {
        this.guid = guid;
        this.group = group;
        this.consumer = consumer;
        this.password = password;
        this.version = version;
        this.ip = ip;
        this.maxconns = maxconns;
        this.state = state;
        this.message = message;
    }

    public String getGuid() {
        return guid;
    }

    public String getGroup() {
        return group;
    }

    public String getConsumer() {
        return consumer;
    }

    public String getPassword() {
        return password;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    public String getSeq() {
        return seq;
    }

    public String getVersion() {
        return version;
    }

    public String getIp() {
        return ip;
    }

    public int getMaxconns() {
        return maxconns;
    }

    public String getState() {
        return state;
    }

    public List getPartitions() {
        return partitions;
    }

    public String getMessage() {
        return message;
    }

    public void addPartition(LocalPartitionStatus partitionStatus) {
        this.partitions.add(partitionStatus);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy