com.taobao.drc.clusterclient.clustermanager.LocalConsumerStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consumer-core Show documentation
Show all versions of consumer-core Show documentation
The java consumer core component for Data Transmission Service
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);
}
}