CoherenceNodeBean.java
2.33 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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-7-14
* Time: 下午3:51
* To change this template use File | Settings | File Templates.
*/
public class CoherenceNodeBean implements Serializable {
private static final long serialVersionUID = -5809782578272947899L;
public String nodeId;
public String hostIp;
public String processNo;
public String role;
public Integer heapMemory;
public Integer honHeapMemory;
public String state;
public String getTest() {
return test;
}
public void setTest(String test) {
this.test = test;
}
public String test;
private static CoherenceNodeBean instance ;
public String getNodeId() {
return nodeId;
}
public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public Integer getHonHeapMemory() {
return honHeapMemory;
}
public void setHonHeapMemory(Integer honHeapMemory) {
this.honHeapMemory = honHeapMemory;
}
public Integer getHeapMemory() {
return heapMemory;
}
public void setHeapMemory(Integer heapMemory) {
this.heapMemory = heapMemory;
}
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public String getProcessNo() {
return processNo;
}
public void setProcessNo(String processNo) {
this.processNo = processNo;
}
public String getHostIp() {
return hostIp;
}
public void setHostIp(String hostIp) {
this.hostIp = hostIp;
}
public Map<String, CoherenceNodeBean> getNodeBeanM() {
return nodeBeanM;
}
public void setNodeBeanM(Map<String, CoherenceNodeBean> nodeBeanM) {
this.nodeBeanM = nodeBeanM;
}
//key为id
public Map<String,CoherenceNodeBean> nodeBeanM = new HashMap<String,CoherenceNodeBean>();
public static synchronized CoherenceNodeBean getInstance(){
if(instance == null){
instance = new CoherenceNodeBean();
}
return instance;
}
}