1
2
3
4
5
6
7
8
9
10
11 package psiprobe.model;
12
13 import java.util.ArrayList;
14 import java.util.List;
15
16
17
18
19 public class Connector {
20
21
22 private String protocolHandler;
23
24
25 private long maxTime;
26
27
28 private long processingTime;
29
30
31 private int requestCount;
32
33
34 private String status;
35
36
37 private String protocol;
38
39
40 private Integer localPort;
41
42
43 private Integer port;
44
45
46 private String schema;
47
48
49 private boolean secure;
50
51
52 private int errorCount;
53
54
55 private long bytesReceived;
56
57
58 private long bytesSent;
59
60
61 private List<RequestProcessor> requestProcessors = new ArrayList<>();
62
63
64
65
66
67
68 public String getProtocolHandler() {
69 return protocolHandler;
70 }
71
72
73
74
75
76
77 public void setProtocolHandler(String protocolHandler) {
78 this.protocolHandler = protocolHandler;
79 }
80
81
82
83
84
85
86 public long getMaxTime() {
87 return maxTime;
88 }
89
90
91
92
93
94
95 public void setMaxTime(long maxTime) {
96 this.maxTime = maxTime;
97 }
98
99
100
101
102
103
104 public long getProcessingTime() {
105 return processingTime;
106 }
107
108
109
110
111
112
113 public void setProcessingTime(long processingTime) {
114 this.processingTime = processingTime;
115 }
116
117
118
119
120
121
122 public int getRequestCount() {
123 return requestCount;
124 }
125
126
127
128
129
130
131 public void setRequestCount(int requestCount) {
132 this.requestCount = requestCount;
133 }
134
135
136
137
138
139
140 public long getBytesReceived() {
141 return bytesReceived;
142 }
143
144
145
146
147
148
149 public void setBytesReceived(long bytesReceived) {
150 this.bytesReceived = bytesReceived;
151 }
152
153
154
155
156
157
158 public long getBytesSent() {
159 return bytesSent;
160 }
161
162
163
164
165
166
167 public void setBytesSent(long bytesSent) {
168 this.bytesSent = bytesSent;
169 }
170
171
172
173
174
175
176 public int getErrorCount() {
177 return errorCount;
178 }
179
180
181
182
183
184
185 public void setErrorCount(int errorCount) {
186 this.errorCount = errorCount;
187 }
188
189
190
191
192
193
194 public List<RequestProcessor> getRequestProcessors() {
195 return requestProcessors;
196 }
197
198
199
200
201
202
203 public void setRequestProcessors(List<RequestProcessor> requestProcessors) {
204 this.requestProcessors = requestProcessors;
205 }
206
207
208
209
210
211
212 public void addRequestProcessor(RequestProcessor rp) {
213 requestProcessors.add(rp);
214 }
215
216
217
218
219
220
221 public String getStatus() {
222 return status;
223 }
224
225
226
227
228
229
230 public void setStatus(String status) {
231 this.status = status;
232 }
233
234
235
236
237
238
239 public String getProtocol() {
240 return protocol;
241 }
242
243
244
245
246
247
248 public void setProtocol(String protocol) {
249 this.protocol = protocol;
250 }
251
252
253
254
255
256
257 public Integer getLocalPort() {
258 return localPort;
259 }
260
261
262
263
264
265
266 public void setLocalPort(Integer localPort) {
267 this.localPort = localPort;
268 }
269
270
271
272
273
274
275 public Integer getPort() {
276 return port;
277 }
278
279
280
281
282
283
284 public void setPort(Integer port) {
285 this.port = port;
286 }
287
288
289
290
291
292
293 public String getSchema() {
294 return schema;
295 }
296
297
298
299
300
301
302 public void setSchema(String schema) {
303 this.schema = schema;
304 }
305
306
307
308
309
310
311 public boolean isSecure() {
312 return secure;
313 }
314
315
316
317
318
319
320 public void setSecure(boolean secure) {
321 this.secure = secure;
322 }
323
324 }