package com.fgkj.dto.ram;
|
|
import org.apache.ibatis.type.Alias;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
@Alias("Server_state")
|
public class Server_state implements Serializable{
|
private Integer num;
|
private Float server_version;
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
|
private Date server_datetime;
|
private Long max_mem;
|
private Long total_mem;
|
private Long free_men;
|
private Long total_disc_space;
|
private Long free_disc_space;
|
private Integer db_conn_max;
|
private Integer db_conn_count;
|
|
private int app_conn_max; //主程序数据库连接池最大连接数
|
private int app_busy_conn_cnt; //主程序数据库连接池正在使用的连接数
|
private int app_idle_conn_cnt; //主程序数据库连接池空余连接数
|
private float server_cpu_rate; //服务器cpu使用率
|
private float server_network_rate;//服务器网络使用率
|
|
private String note;
|
public Server_state() {
|
super();
|
// TODO Auto-generated constructor stub
|
}
|
public Integer getNum() {
|
return num;
|
}
|
public void setNum(Integer num) {
|
this.num = num;
|
}
|
public Float getServer_version() {
|
return server_version;
|
}
|
public void setServer_version(Float server_version) {
|
this.server_version = server_version;
|
}
|
public Date getServer_datetime() {
|
return server_datetime;
|
}
|
public void setServer_datetime(Date server_datetime) {
|
this.server_datetime = server_datetime;
|
}
|
|
public Long getMax_mem() {
|
return max_mem;
|
}
|
public void setMax_mem(Long max_mem) {
|
this.max_mem = max_mem;
|
}
|
public Long getTotal_mem() {
|
return total_mem;
|
}
|
public void setTotal_mem(Long total_mem) {
|
this.total_mem = total_mem;
|
}
|
public Long getFree_men() {
|
return free_men;
|
}
|
public void setFree_men(Long free_men) {
|
this.free_men = free_men;
|
}
|
public Long getTotal_disc_space() {
|
return total_disc_space;
|
}
|
public void setTotal_disc_space(Long total_disc_space) {
|
this.total_disc_space = total_disc_space;
|
}
|
public Long getFree_disc_space() {
|
return free_disc_space;
|
}
|
public void setFree_disc_space(Long free_disc_space) {
|
this.free_disc_space = free_disc_space;
|
}
|
public Integer getDb_conn_max() {
|
return db_conn_max;
|
}
|
public void setDb_conn_max(Integer db_conn_max) {
|
this.db_conn_max = db_conn_max;
|
}
|
public Integer getDb_conn_count() {
|
return db_conn_count;
|
}
|
public void setDb_conn_count(Integer db_conn_count) {
|
this.db_conn_count = db_conn_count;
|
}
|
public int getApp_conn_max() {
|
return app_conn_max;
|
}
|
public void setApp_conn_max(int app_conn_max) {
|
this.app_conn_max = app_conn_max;
|
}
|
public int getApp_busy_conn_cnt() {
|
return app_busy_conn_cnt;
|
}
|
public void setApp_busy_conn_cnt(int app_busy_conn_cnt) {
|
this.app_busy_conn_cnt = app_busy_conn_cnt;
|
}
|
public int getApp_idle_conn_cnt() {
|
return app_idle_conn_cnt;
|
}
|
public void setApp_idle_conn_cnt(int app_idle_conn_cnt) {
|
this.app_idle_conn_cnt = app_idle_conn_cnt;
|
}
|
public float getServer_cpu_rate() {
|
return server_cpu_rate;
|
}
|
public void setServer_cpu_rate(float server_cpu_rate) {
|
this.server_cpu_rate = server_cpu_rate;
|
}
|
public float getServer_network_rate() {
|
return server_network_rate;
|
}
|
public void setServer_network_rate(float server_network_rate) {
|
this.server_network_rate = server_network_rate;
|
}
|
public String getNote() {
|
return note;
|
}
|
public void setNote(String note) {
|
this.note = note;
|
}
|
@Override
|
public String toString() {
|
return "Server_state [num=" + num + ", server_version=" + server_version + ", server_datetime="
|
+ server_datetime + ", max_mem=" + max_mem + ", total_mem=" + total_mem + ", free_men=" + free_men
|
+ ", total_disc_space=" + total_disc_space + ", free_disc_space=" + free_disc_space + ", db_conn_max="
|
+ db_conn_max + ", db_conn_count=" + db_conn_count + ", app_conn_max=" + app_conn_max
|
+ ", app_busy_conn_cnt=" + app_busy_conn_cnt + ", app_idle_conn_cnt=" + app_idle_conn_cnt
|
+ ", server_cpu_rate=" + server_cpu_rate + ", server_network_rate=" + server_network_rate + ", note="
|
+ note + "]";
|
}
|
|
|
}
|