ConnectionEntry.java
2.7 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
package com.sitech.ismp.coll.net.cisco;
public class ConnectionEntry {
private String connectionStatService;
private String connectionStatType;
private String connectionStatDescription;
private String connectionStatCount;
private String connectionStatValue;
public String getConnectionStatService() {
return connectionStatService;
}
public void setConnectionStatService(String connectionStatService) {
this.connectionStatService = connectionStatService;
}
public String getConnectionStatType() {
/**
* other : A generic connection event.
totalOpen : Total open connections since reboot.
currentOpen : The number of connections currently open.
currentClosing : The number of connections currently closing.
currentHalfOpen : The number of connections currently half-open.
currentInUse : The number of connections currently in use.
high : The highest number of connections in use at
any one time since system startup."
SYNTAX INTEGER {
other(1),
totalOpen(2),
currentOpen(3),
currentClosing(4),
currentHalfOpen(5),
currentInUse(6),
high(7)
*/
String statType="";
if(this.connectionStatType!=null&&this.connectionStatType.equals("1")){
statType="other";
}else if(this.connectionStatType!=null&&this.connectionStatType.equals("2")){
statType="totalOpen";
}else if(this.connectionStatType!=null&&this.connectionStatType.equals("3")){
statType="currentOpen";
}else if(this.connectionStatType!=null&&this.connectionStatType.equals("4")){
statType="currentClosing";
}else if(this.connectionStatType!=null&&this.connectionStatType.equals("5")){
statType="currentHalfOpen";
}else if(this.connectionStatType!=null&&this.connectionStatType.equals("6")){
statType="currentInUse";
}else if(this.connectionStatType!=null&&this.connectionStatType.equals("7")){
statType="high";
}
return statType;
}
public void setConnectionStatType(String connectionStatType) {
this.connectionStatType = connectionStatType;
}
public String getConnectionStatDescription() {
return connectionStatDescription;
}
public void setConnectionStatDescription(String connectionStatDescription) {
this.connectionStatDescription = connectionStatDescription;
}
public String getConnectionStatCount() {
return connectionStatCount;
}
public void setConnectionStatCount(String connectionStatCount) {
this.connectionStatCount = connectionStatCount;
}
public String getConnectionStatValue() {
return connectionStatValue;
}
public void setConnectionStatValue(String connectionStatValue) {
this.connectionStatValue = connectionStatValue;
}
}