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

com.alibaba.dts.common.domain.store.Cluster Maven / Gradle / Ivy

package com.alibaba.dts.common.domain.store;

import java.util.Date;

import com.alibaba.dts.common.constants.Constants;

/**
 * 服务端集群信息
 * @author tianyao.myc
 *
 */
public class Cluster implements Constants {

	/** 主键 */
	private long id;
	
	/** 创建时间 */
	private Date gmtCreate;
	
	/** 修改时间 */
	private Date gmtModified;
	
	/** 集群描述 */
	private String description;
	
	/** job备份数量 */
	private int jobBackupAmount = DEFAULT_JOB_BACKUP_AMOUNT;

	/**
	 * 集群代码
	 */
	private String clusterCode;

/*
	*//**
	 * json转换成对象
	 *  json
	 *
	 *//*
	public static Cluster newInstance(String json) {
		return RemotingSerializable.fromJson(json, Cluster.class);
	}
	
	*//**
	 * 对象转换成json
	 *//*
	@Override
	public String toString() {
		return RemotingSerializable.toJson(this, false);
	}*/
	
	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 String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getJobBackupAmount() {
		return jobBackupAmount;
	}

	public void setJobBackupAmount(int jobBackupAmount) {
		this.jobBackupAmount = jobBackupAmount;
	}

	public String getClusterCode() {
		return clusterCode;
	}

	public void setClusterCode(String clusterCode) {
		this.clusterCode = clusterCode;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy