View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
10   */
11  package psiprobe.model.jmx;
12  
13  /**
14   * The Class ClusterSender.
15   */
16  public class ClusterSender {
17  
18    /** The address. */
19    private String address;
20  
21    /** The port. */
22    private int port;
23  
24    /** The avg message size. */
25    private long avgMessageSize;
26  
27    /** The avg processing time. */
28    private long avgProcessingTime;
29  
30    /** The connect counter. */
31    private long connectCounter;
32  
33    /** The disconnect counter. */
34    private long disconnectCounter;
35  
36    /** The connected. */
37    private boolean connected;
38  
39    /** The keep alive timeout. */
40    private long keepAliveTimeout;
41  
42    /** The nr of requests. */
43    private long nrOfRequests;
44  
45    /** The total bytes. */
46    private long totalBytes;
47  
48    /** The resend. */
49    private boolean resend;
50  
51    /** The suspect. */
52    private boolean suspect;
53  
54    /**
55     * Gets the address.
56     *
57     * @return the address
58     */
59    public String getAddress() {
60      return address;
61    }
62  
63    /**
64     * Sets the address.
65     *
66     * @param address the new address
67     */
68    public void setAddress(String address) {
69      this.address = address;
70    }
71  
72    /**
73     * Gets the port.
74     *
75     * @return the port
76     */
77    public int getPort() {
78      return port;
79    }
80  
81    /**
82     * Sets the port.
83     *
84     * @param port the new port
85     */
86    public void setPort(int port) {
87      this.port = port;
88    }
89  
90    /**
91     * Gets the avg message size.
92     *
93     * @return the avg message size
94     */
95    public long getAvgMessageSize() {
96      return avgMessageSize;
97    }
98  
99    /**
100    * Sets the avg message size.
101    *
102    * @param avgMessageSize the new avg message size
103    */
104   public void setAvgMessageSize(long avgMessageSize) {
105     this.avgMessageSize = avgMessageSize;
106   }
107 
108   /**
109    * Gets the connect counter.
110    *
111    * @return the connect counter
112    */
113   public long getConnectCounter() {
114     return connectCounter;
115   }
116 
117   /**
118    * Sets the connect counter.
119    *
120    * @param connectCounter the new connect counter
121    */
122   public void setConnectCounter(long connectCounter) {
123     this.connectCounter = connectCounter;
124   }
125 
126   /**
127    * Gets the disconnect counter.
128    *
129    * @return the disconnect counter
130    */
131   public long getDisconnectCounter() {
132     return disconnectCounter;
133   }
134 
135   /**
136    * Sets the disconnect counter.
137    *
138    * @param disconnectCounter the new disconnect counter
139    */
140   public void setDisconnectCounter(long disconnectCounter) {
141     this.disconnectCounter = disconnectCounter;
142   }
143 
144   /**
145    * Checks if is connected.
146    *
147    * @return true, if is connected
148    */
149   public boolean isConnected() {
150     return connected;
151   }
152 
153   /**
154    * Sets the connected.
155    *
156    * @param connected the new connected
157    */
158   public void setConnected(boolean connected) {
159     this.connected = connected;
160   }
161 
162   /**
163    * Gets the keep alive timeout.
164    *
165    * @return the keep alive timeout
166    */
167   public long getKeepAliveTimeout() {
168     return keepAliveTimeout;
169   }
170 
171   /**
172    * Sets the keep alive timeout.
173    *
174    * @param keepAliveTimeout the new keep alive timeout
175    */
176   public void setKeepAliveTimeout(long keepAliveTimeout) {
177     this.keepAliveTimeout = keepAliveTimeout;
178   }
179 
180   /**
181    * Gets the nr of requests.
182    *
183    * @return the nr of requests
184    */
185   public long getNrOfRequests() {
186     return nrOfRequests;
187   }
188 
189   /**
190    * Sets the nr of requests.
191    *
192    * @param nrOfRequests the new nr of requests
193    */
194   public void setNrOfRequests(long nrOfRequests) {
195     this.nrOfRequests = nrOfRequests;
196   }
197 
198   /**
199    * Gets the total bytes.
200    *
201    * @return the total bytes
202    */
203   public long getTotalBytes() {
204     return totalBytes;
205   }
206 
207   /**
208    * Sets the total bytes.
209    *
210    * @param totalBytes the new total bytes
211    */
212   public void setTotalBytes(long totalBytes) {
213     this.totalBytes = totalBytes;
214   }
215 
216   /**
217    * Checks if is resend.
218    *
219    * @return true, if is resend
220    */
221   public boolean isResend() {
222     return resend;
223   }
224 
225   /**
226    * Sets the resend.
227    *
228    * @param resend the new resend
229    */
230   public void setResend(boolean resend) {
231     this.resend = resend;
232   }
233 
234   /**
235    * Checks if is suspect.
236    *
237    * @return true, if is suspect
238    */
239   public boolean isSuspect() {
240     return suspect;
241   }
242 
243   /**
244    * Sets the suspect.
245    *
246    * @param suspect the new suspect
247    */
248   public void setSuspect(boolean suspect) {
249     this.suspect = suspect;
250   }
251 
252   /**
253    * Gets the avg processing time.
254    *
255    * @return the avg processing time
256    */
257   public long getAvgProcessingTime() {
258     return avgProcessingTime;
259   }
260 
261   /**
262    * Sets the avg processing time.
263    *
264    * @param avgProcessingTime the new avg processing time
265    */
266   public void setAvgProcessingTime(long avgProcessingTime) {
267     this.avgProcessingTime = avgProcessingTime;
268   }
269 
270 }