com.taobao.drc.clusterclient.clustermanager.BatchCommitResponse 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 com.alibaba.fastjson.annotation.JSONField;
import java.util.ArrayList;
import java.util.List;
/**
* @author yangyang
* @since 17/6/20
*/
public class BatchCommitResponse extends AbstractControllerResponse {
@JSONField(name = "data")
private ResponseData data;
public ResponseData getData() {
return data;
}
public void setData(ResponseData data) {
this.data = data;
}
public String toString(){
String retStr="success:"+isSuccess()+",errMsg:"+getErrMsg();
retStr += ",data:"+data.toString();
return retStr;
}
public static class ResponseData {
private String ip;
private Integer commitPeriodSeconds;
private Integer sessionTimeoutSeconds;
private List consumers = new ArrayList();
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public Integer getCommitPeriodSeconds() {
return commitPeriodSeconds;
}
public void setCommitPeriodSeconds(Integer commitPeriodSeconds) {
this.commitPeriodSeconds = commitPeriodSeconds;
}
public Integer getSessionTimeoutSeconds() {
return sessionTimeoutSeconds;
}
public void setSessionTimeoutSeconds(Integer sessionTimeoutSeconds) {
this.sessionTimeoutSeconds = sessionTimeoutSeconds;
}
public List getConsumers() {
return consumers;
}
public void setConsumers(List consumers) {
this.consumers = consumers;
}
public String toString(){
String retStr= "IP:"+ip+",commitPeriodSeconds:"+commitPeriodSeconds+",sessionTimeoutSeconds:"+sessionTimeoutSeconds;
return retStr;
}
}
}