SupervisorBean.java
1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.sitech.ismp.coll.centercoll.bean;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: ZhouYou
* Date: 15-6-26
* Time: 上午9:32
* To change this template use File | Settings | File Templates.
*/
public class SupervisorBean implements Serializable {
private static final long serialVersionUID = -5809782578272943999L;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
private String id;
public String getSlots() {
return slots;
}
public void setSlots(String slots) {
this.slots = slots;
}
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
private String host;
private String slots;
public String getUsedSlots() {
return usedSlots;
}
public void setUsedSlots(String usedSlots) {
this.usedSlots = usedSlots;
}
private String usedSlots;
public String getUpTime() {
return upTime;
}
public void setUpTime(String upTime) {
this.upTime = upTime;
}
private String upTime;
private static SupervisorBean instance ;
public Map<String, SupervisorBean> getSupervisorBeanM() {
return supervisorBeanM;
}
public void setSupervisorBeanM(Map<String, SupervisorBean> supervisorBeanM) {
this.supervisorBeanM = supervisorBeanM;
}
//key为id
public Map<String,SupervisorBean> supervisorBeanM = new HashMap<String,SupervisorBean>();
public static synchronized SupervisorBean getInstance(){
if(instance == null){
instance = new SupervisorBean();
}
return instance;
} ;
}