package com.nms.server.bean;

import java.util.LinkedList;
import java.util.List;

/**
 * ServerTable entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class ServerTable implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long id;	//数据库DC 注册ID
	private String serverName;	//当前DC名称
	private Long serverState;	//当前DC状态
	private String serverIp;	//当前DC IP
	private Long serverIpn;		//当前DC IPN
	private int index; //当前dc 在数据库的排序
	private int conut; //当前dc 总数
	//- 当前DC 的IP管理范围（空时 过滤条件为空，即为管理全部 注意）
	private List<ServerIpSegment> ipSegList = new LinkedList<ServerIpSegment>();

	// Constructors

	/** default constructor */
	public ServerTable() {
	}

	/** full constructor */
	public ServerTable(String serverName, Long serverState, String serverIp,
			Long serverIpn) {
		this.serverName = serverName;
		this.serverState = serverState;
		this.serverIp = serverIp;
		this.serverIpn = serverIpn;

	}
	
	/** All constructor */
	public ServerTable(Long id,String serverName, Long serverState, String serverIp,
			Long serverIpn) {
		this.id = id;
		this.serverName = serverName;
		this.serverState = serverState;
		this.serverIp = serverIp;
		this.serverIpn = serverIpn;
	}
	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getServerName() {
		return this.serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public Long getServerState() {
		return this.serverState;
	}

	public void setServerState(Long serverState) {
		this.serverState = serverState;
	}

	public String getServerIp() {
		return this.serverIp;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	public Long getServerIpn() {
		return this.serverIpn;
	}

	public void setServerIpn(Long serverIpn) {
		this.serverIpn = serverIpn;
	}

	public List<ServerIpSegment> getIpSegList() {
		return ipSegList;
	}

	public void setIpSegList(List<ServerIpSegment> ipSegList) {
		this.ipSegList = ipSegList;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public int getConut() {
		return conut;
	}

	public void setConut(int conut) {
		this.conut = conut;
	}
	
}