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

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

There is a newer version: 5.0.0.1.beta
Show newest version
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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy