com.alibaba.tmq.common.domain.FlushServer Maven / Gradle / Ivy
package com.alibaba.tmq.common.domain;
import java.io.Serializable;
import java.util.Date;
import com.alibaba.tmq.common.constants.Constants;
public class FlushServer implements Constants, Serializable {
private static final long serialVersionUID = -825604027480736420L;
/** 唯一自增ID */
private long id;
/** 创建时间 */
private Date gmtCreate;
/** 修改时间 */
private Date gmtModified;
//服务器分组ID
private long serverGroupId;
//分桶
private String bucket;
//时间分区
private String timePeriod;
//服务器
private String server;
/** 状态 */
private int status;
//偏移量ID
private long offsetId;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public Date getGmtCreate() {
return gmtCreate;
}
public void setGmtCreate(Date gmtCreate) {
this.gmtCreate = gmtCreate;
}
public Date getGmtModified() {
return gmtModified;
}
public void setGmtModified(Date gmtModified) {
this.gmtModified = gmtModified;
}
public long getServerGroupId() {
return serverGroupId;
}
public void setServerGroupId(long serverGroupId) {
this.serverGroupId = serverGroupId;
}
public String getBucket() {
return bucket;
}
public void setBucket(String bucket) {
this.bucket = bucket;
}
public String getTimePeriod() {
return timePeriod;
}
public void setTimePeriod(String timePeriod) {
this.timePeriod = timePeriod;
}
public String getServer() {
return server;
}
public void setServer(String server) {
this.server = server;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public long getOffsetId() {
return offsetId;
}
public void setOffsetId(long offsetId) {
this.offsetId = offsetId;
}
@Override
public String toString() {
return "FlushServer [id=" + id + ", gmtCreate=" + gmtCreate
+ ", gmtModified=" + gmtModified + ", serverGroupId="
+ serverGroupId + ", bucket=" + bucket + ", timePeriod="
+ timePeriod + ", server=" + server + ", status=" + status
+ ", offsetId=" + offsetId + "]";
}
}