001: package org.objectweb.jonas.webapp.jonasadmin.monitoring;
002:
003: import org.apache.struts.action.ActionForm;
004:
005: public class NodeInfoForm extends ActionForm {
006:
007: private String serverName = "N/A";
008: private String hostName = "N/A";
009: private String JOnASVersion = "N/A";
010: private String javaVendor = "N/A";
011: private String javaVersion = "N/A";
012: private String state = "N/A";
013: private int currentUsedMemory = -1;
014: private int currentTotalMemory = -1;
015: private int allThreadsCount = -1;
016: private String protocols = "N/A";
017: private String connectionUrl = null;
018: // infos jdk5
019: private String loadCPU = "N/A";
020: // Tomcat
021: /**
022: * Set to true if Tomcat info are provided for the node
023: */
024: private boolean tomcat = false;
025: private int maxThreadsByConnectorTomcat = -1;
026: private int currentThreadCountByConnectorTomcat = -1;
027: private int currentThreadBusyByConnectorTomcat = -1;
028: private long bytesReceivedByConnectorTomcat = -1;
029: private long bytesSentByConnectorTomcat = -1;
030: private int errorCountByConnectorTomcat = -1;
031: private long processingTimeByConnectorTomcat = -1;
032: private int requestCountByConnectorTomcat = -1;
033: //Tx
034: private boolean transaction = false;
035: private int totalBegunTransactions = -1;
036: private int totalCommittedTransactions = -1;
037: private int totalCurrentTransactions = -1;
038: private int totalExpiredTransactions = -1;
039: private int totalRolledbackTransactions = -1;
040: // Worker Pool
041: private boolean workers = false;
042: private int currentWorkerPoolSize = -1;
043: private int maxWorkerPoolSize = -1;
044: private int minWorkerPoolSize = -1;
045: // JCA
046: private boolean jcaConnection = false;
047: private int connectionFailuresJCAConnection = -1;
048: private int connectionLeaksJCAConnection = -1;
049: private int currentBusyJCAConnection = -1;
050: private int currentOpenedJCAConnection = -1;
051: private int rejectedOpenJCAConnection = -1;
052: private int servedOpenJCAConnection = -1;
053: private int waiterCountJCAConnection = -1;
054: private long waitingTimeJCAConnection = -1;
055: // JDBC
056: private boolean jdbcDatasource = false;
057: private int connectionFailuresJDBCDatasource = -1;
058: private int connectionLeaksJDBCDatasource = -1;
059: private int currentBusyJDBCDatasource = -1;
060: private int currentOpenedJDBCDatasource = -1;
061: private int rejectedOpenJDBCDatasource = -1;
062: private int servedOpenJDBCDatasource = -1;
063: private int waiterCountJDBCDatasource = -1;
064: private long waitingTimeJDBCDatasource = -1;
065: // JMS
066: private boolean jmsJoram = false;
067: private int jmsQueuesNbMsgsReceiveSinceCreation = -1;
068: private int jmsQueuesNbMsgsSendToDMQSinceCreation = -1;
069: private int jmsQueuesNbMsgsDeliverSinceCreation = -1;
070: private int jmsTopicsNbMsgsReceiveSinceCreation = -1;
071: private int jmsTopicsNbMsgsSendToDMQSinceCreation = -1;
072: private int jmsTopicsNbMsgsDeliverSinceCreation = -1;
073: private int jmsNbMsgsSendToDMQSinceCreation = -1;
074: // EJB
075: private int currentNumberOfEntity = -1;
076: private int currentNumberOfMDB = -1;
077: private int currentNumberOfSBF = -1;
078: private int currentNumberOfSBL = -1;
079: private int currentNumberOfEJB = -1;
080:
081: public void setServerName(String val) {
082: this .serverName = val;
083: }
084:
085: public String getServerName() {
086: return this .serverName;
087: }
088:
089: public void setJOnASVersion(String val) {
090: this .JOnASVersion = val;
091: }
092:
093: public String getJOnASVersion() {
094: return this .JOnASVersion;
095: }
096:
097: public void setJavaVersion(String val) {
098: this .javaVersion = val;
099: }
100:
101: public String getJavaVersion() {
102: return this .javaVersion;
103: }
104:
105: public void setHostName(String val) {
106: this .hostName = val;
107: }
108:
109: public String getHostName() {
110: return this .hostName;
111: }
112:
113: public void setJavaVendor(String val) {
114: this .javaVendor = val;
115: }
116:
117: public String getJavaVendor() {
118: return this .javaVendor;
119: }
120:
121: public void setState(String val) {
122: this .state = val;
123: }
124:
125: public String getState() {
126: return this .state;
127: }
128:
129: public void setLoadCPU(String val) {
130: this .loadCPU = val;
131: }
132:
133: public String getLoadCPU() {
134: return this .loadCPU;
135: }
136:
137: public void setCurrentUsedMemory(int val) {
138: this .currentUsedMemory = val;
139: }
140:
141: public int getCurrentUsedMemory() {
142: return this .currentUsedMemory;
143: }
144:
145: public void setCurrentTotalMemory(int val) {
146: this .currentTotalMemory = val;
147: }
148:
149: public int getCurrentTotalMemory() {
150: return this .currentTotalMemory;
151: }
152:
153: public void setAllThreadsCount(int val) {
154: this .allThreadsCount = val;
155: }
156:
157: public int getAllThreadsCount() {
158: return this .allThreadsCount;
159: }
160:
161: public long getBytesReceivedByConnectorTomcat() {
162: return bytesReceivedByConnectorTomcat;
163: }
164:
165: public void setBytesReceivedByConnectorTomcat(long l) {
166: this .bytesReceivedByConnectorTomcat = l;
167: }
168:
169: public long getBytesSentByConnectorTomcat() {
170: return bytesSentByConnectorTomcat;
171: }
172:
173: public void setBytesSentByConnectorTomcat(
174: long bytesSentByConnectorTomcat) {
175: this .bytesSentByConnectorTomcat = bytesSentByConnectorTomcat;
176: }
177:
178: public int getConnectionFailuresJCAConnection() {
179: return connectionFailuresJCAConnection;
180: }
181:
182: public void setConnectionFailuresJCAConnection(
183: int connectionFailuresJCAConnection) {
184: this .connectionFailuresJCAConnection = connectionFailuresJCAConnection;
185: }
186:
187: public int getConnectionLeaksJCAConnection() {
188: return connectionLeaksJCAConnection;
189: }
190:
191: public void setConnectionLeaksJCAConnection(
192: int connectionLeaksJCAConnection) {
193: this .connectionLeaksJCAConnection = connectionLeaksJCAConnection;
194: }
195:
196: public int getCurrentBusyJCAConnection() {
197: return currentBusyJCAConnection;
198: }
199:
200: public void setCurrentBusyJCAConnection(int currentBusyJCAConnection) {
201: this .currentBusyJCAConnection = currentBusyJCAConnection;
202: }
203:
204: public int getCurrentNumberOfEJB() {
205: return currentNumberOfEJB;
206: }
207:
208: public void setCurrentNumberOfEJB(int currentNumberOfEJB) {
209: this .currentNumberOfEJB = currentNumberOfEJB;
210: }
211:
212: public int getCurrentNumberOfMDB() {
213: return currentNumberOfMDB;
214: }
215:
216: public void setCurrentNumberOfMDB(int currentNumberOfMDB) {
217: this .currentNumberOfMDB = currentNumberOfMDB;
218: }
219:
220: public int getCurrentNumberOfSBF() {
221: return currentNumberOfSBF;
222: }
223:
224: public void setCurrentNumberOfSBF(int currentNumberOfSBF) {
225: this .currentNumberOfSBF = currentNumberOfSBF;
226: }
227:
228: public int getCurrentNumberOfSBL() {
229: return currentNumberOfSBL;
230: }
231:
232: public void setCurrentNumberOfSBL(int currentNumberOfSBL) {
233: this .currentNumberOfSBL = currentNumberOfSBL;
234: }
235:
236: public int getCurrentOpenedJCAConnection() {
237: return currentOpenedJCAConnection;
238: }
239:
240: public void setCurrentOpenedJCAConnection(
241: int currentOpenedJCAConnection) {
242: this .currentOpenedJCAConnection = currentOpenedJCAConnection;
243: }
244:
245: public int getCurrentThreadBusyByConnectorTomcat() {
246: return currentThreadBusyByConnectorTomcat;
247: }
248:
249: public void setCurrentThreadBusyByConnectorTomcat(
250: int currentThreadBusyByConnectorTomcat) {
251: this .currentThreadBusyByConnectorTomcat = currentThreadBusyByConnectorTomcat;
252: }
253:
254: public int getCurrentThreadCountByConnectorTomcat() {
255: return currentThreadCountByConnectorTomcat;
256: }
257:
258: public void setCurrentThreadCountByConnectorTomcat(
259: int currentThreadCountByConnectorTomcat) {
260: this .currentThreadCountByConnectorTomcat = currentThreadCountByConnectorTomcat;
261: }
262:
263: public int getCurrentWorkerPoolSize() {
264: return currentWorkerPoolSize;
265: }
266:
267: public void setCurrentWorkerPoolSize(int currentWorkerPoolSize) {
268: this .currentWorkerPoolSize = currentWorkerPoolSize;
269: }
270:
271: public int getErrorCountByConnectorTomcat() {
272: return errorCountByConnectorTomcat;
273: }
274:
275: public void setErrorCountByConnectorTomcat(
276: int errorCountByConnectorTomcat) {
277: this .errorCountByConnectorTomcat = errorCountByConnectorTomcat;
278: }
279:
280: public int getJmsQueuesNbMsgsDeliverSinceCreation() {
281: return jmsQueuesNbMsgsDeliverSinceCreation;
282: }
283:
284: public void setJmsQueuesNbMsgsDeliverSinceCreation(
285: int jmsQueuesNbMsgsDeliverSinceCreation) {
286: this .jmsQueuesNbMsgsDeliverSinceCreation = jmsQueuesNbMsgsDeliverSinceCreation;
287: }
288:
289: public int getJmsQueuesNbMsgsReceiveSinceCreation() {
290: return jmsQueuesNbMsgsReceiveSinceCreation;
291: }
292:
293: public void setJmsQueuesNbMsgsReceiveSinceCreation(
294: int jmsQueuesNbMsgsReceiveSinceCreation) {
295: this .jmsQueuesNbMsgsReceiveSinceCreation = jmsQueuesNbMsgsReceiveSinceCreation;
296: }
297:
298: public int getJmsQueuesNbMsgsSendToDMQSinceCreation() {
299: return jmsQueuesNbMsgsSendToDMQSinceCreation;
300: }
301:
302: public void setJmsQueuesNbMsgsSendToDMQSinceCreation(
303: int jmsQueuesNbMsgsSendToDMQSinceCreation) {
304: this .jmsQueuesNbMsgsSendToDMQSinceCreation = jmsQueuesNbMsgsSendToDMQSinceCreation;
305: }
306:
307: public int getJmsTopicsNbMsgsDeliverSinceCreation() {
308: return jmsTopicsNbMsgsDeliverSinceCreation;
309: }
310:
311: public void setJmsTopicsNbMsgsDeliverSinceCreation(
312: int jmsTopicsNbMsgsDeliverSinceCreation) {
313: this .jmsTopicsNbMsgsDeliverSinceCreation = jmsTopicsNbMsgsDeliverSinceCreation;
314: }
315:
316: public int getJmsTopicsNbMsgsReceiveSinceCreation() {
317: return jmsTopicsNbMsgsReceiveSinceCreation;
318: }
319:
320: public void setJmsTopicsNbMsgsReceiveSinceCreation(
321: int jmsTopicsNbMsgsReceiveSinceCreation) {
322: this .jmsTopicsNbMsgsReceiveSinceCreation = jmsTopicsNbMsgsReceiveSinceCreation;
323: }
324:
325: public int getJmsTopicsNbMsgsSendToDMQSinceCreation() {
326: return jmsTopicsNbMsgsSendToDMQSinceCreation;
327: }
328:
329: public void setJmsTopicsNbMsgsSendToDMQSinceCreation(
330: int jmsTopicsNbMsgsSendToDMQSinceCreation) {
331: this .jmsTopicsNbMsgsSendToDMQSinceCreation = jmsTopicsNbMsgsSendToDMQSinceCreation;
332: }
333:
334: public int getMaxThreadsByConnectorTomcat() {
335: return maxThreadsByConnectorTomcat;
336: }
337:
338: public void setMaxThreadsByConnectorTomcat(
339: int maxThreadsByConnectorTomcat) {
340: this .maxThreadsByConnectorTomcat = maxThreadsByConnectorTomcat;
341: }
342:
343: public int getMaxWorkerPoolSize() {
344: return maxWorkerPoolSize;
345: }
346:
347: public void setMaxWorkerPoolSize(int maxWorkerPoolSize) {
348: this .maxWorkerPoolSize = maxWorkerPoolSize;
349: }
350:
351: public int getMinWorkerPoolSize() {
352: return minWorkerPoolSize;
353: }
354:
355: public void setMinWorkerPoolSize(int minWorkerPoolSize) {
356: this .minWorkerPoolSize = minWorkerPoolSize;
357: }
358:
359: public long getProcessingTimeByConnectorTomcat() {
360: return processingTimeByConnectorTomcat;
361: }
362:
363: public void setProcessingTimeByConnectorTomcat(long value) {
364: processingTimeByConnectorTomcat = value;
365: }
366:
367: public String getProtocols() {
368: return protocols;
369: }
370:
371: public void setProtocols(String protocols) {
372: this .protocols = protocols;
373: }
374:
375: public int getRejectedOpenJCAConnection() {
376: return rejectedOpenJCAConnection;
377: }
378:
379: public void setRejectedOpenJCAConnection(
380: int rejectedOpenJCAConnection) {
381: this .rejectedOpenJCAConnection = rejectedOpenJCAConnection;
382: }
383:
384: public int getRequestCountByConnectorTomcat() {
385: return requestCountByConnectorTomcat;
386: }
387:
388: public void setRequestCountByConnectorTomcat(
389: int requestCountByConnectorTomcat) {
390: this .requestCountByConnectorTomcat = requestCountByConnectorTomcat;
391: }
392:
393: public int getTotalBegunTransactions() {
394: return totalBegunTransactions;
395: }
396:
397: public void setTotalBegunTransactions(int totalBegunTransactions) {
398: this .totalBegunTransactions = totalBegunTransactions;
399: }
400:
401: public int getTotalCommittedTransactions() {
402: return totalCommittedTransactions;
403: }
404:
405: public void setTotalCommittedTransactions(
406: int totalCommittedTransactions) {
407: this .totalCommittedTransactions = totalCommittedTransactions;
408: }
409:
410: public int getTotalCurrentTransactions() {
411: return totalCurrentTransactions;
412: }
413:
414: public void setTotalCurrentTransactions(int totalCurrentTransactions) {
415: this .totalCurrentTransactions = totalCurrentTransactions;
416: }
417:
418: public int getTotalExpiredTransactions() {
419: return totalExpiredTransactions;
420: }
421:
422: public void setTotalExpiredTransactions(int totalExpiredTransactions) {
423: this .totalExpiredTransactions = totalExpiredTransactions;
424: }
425:
426: public int getTotalRolledbackTransactions() {
427: return totalRolledbackTransactions;
428: }
429:
430: public void setTotalRolledbackTransactions(
431: int totalRolledbackTransactions) {
432: this .totalRolledbackTransactions = totalRolledbackTransactions;
433: }
434:
435: public int getWaiterCountJCAConnection() {
436: return waiterCountJCAConnection;
437: }
438:
439: public void setWaiterCountJCAConnection(int waiterCountJCAConnection) {
440: this .waiterCountJCAConnection = waiterCountJCAConnection;
441: }
442:
443: public long getWaitingTimeJCAConnection() {
444: return waitingTimeJCAConnection;
445: }
446:
447: public void setWaitingTimeJCAConnection(
448: long waitingTimeJCAConnection) {
449: this .waitingTimeJCAConnection = waitingTimeJCAConnection;
450: }
451:
452: public String getConnectionUrl() {
453: return connectionUrl;
454: }
455:
456: public void setConnectionUrl(String connectionUrl) {
457: this .connectionUrl = connectionUrl;
458: }
459:
460: public boolean getTomcat() {
461: return tomcat;
462: }
463:
464: public void setTomcat(boolean tomcat) {
465: this .tomcat = tomcat;
466: }
467:
468: public boolean getTransaction() {
469: return transaction;
470: }
471:
472: public void setTransaction(boolean transaction) {
473: this .transaction = transaction;
474: }
475:
476: public boolean getWorkers() {
477: return workers;
478: }
479:
480: public void setWorkers(boolean workers) {
481: this .workers = workers;
482: }
483:
484: public int getConnectionFailuresJDBCDatasource() {
485: return connectionFailuresJDBCDatasource;
486: }
487:
488: public void setConnectionFailuresJDBCDatasource(
489: int connectionFailuresJDBCDatasource) {
490: this .connectionFailuresJDBCDatasource = connectionFailuresJDBCDatasource;
491: }
492:
493: public int getConnectionLeaksJDBCDatasource() {
494: return connectionLeaksJDBCDatasource;
495: }
496:
497: public void setConnectionLeaksJDBCDatasource(
498: int connectionLeaksJDBCDatasource) {
499: this .connectionLeaksJDBCDatasource = connectionLeaksJDBCDatasource;
500: }
501:
502: public int getCurrentBusyJDBCDatasource() {
503: return currentBusyJDBCDatasource;
504: }
505:
506: public void setCurrentBusyJDBCDatasource(
507: int currentBusyJDBCDatasource) {
508: this .currentBusyJDBCDatasource = currentBusyJDBCDatasource;
509: }
510:
511: public int getCurrentOpenedJDBCDatasource() {
512: return currentOpenedJDBCDatasource;
513: }
514:
515: public void setCurrentOpenedJDBCDatasource(
516: int currentOpenedJDBCDatasource) {
517: this .currentOpenedJDBCDatasource = currentOpenedJDBCDatasource;
518: }
519:
520: public boolean getJcaConnection() {
521: return jcaConnection;
522: }
523:
524: public void setJcaConnection(boolean jcaConnection) {
525: this .jcaConnection = jcaConnection;
526: }
527:
528: public boolean getJdbcDatasource() {
529: return jdbcDatasource;
530: }
531:
532: public void setJdbcDatasource(boolean jdbcDatasource) {
533: this .jdbcDatasource = jdbcDatasource;
534: }
535:
536: public int getRejectedOpenJDBCDatasource() {
537: return rejectedOpenJDBCDatasource;
538: }
539:
540: public void setRejectedOpenJDBCDatasource(
541: int rejectedOpenJDBCDatasource) {
542: this .rejectedOpenJDBCDatasource = rejectedOpenJDBCDatasource;
543: }
544:
545: public int getServedOpenJCAConnection() {
546: return servedOpenJCAConnection;
547: }
548:
549: public void setServedOpenJCAConnection(int servedOpenJCAConnection) {
550: this .servedOpenJCAConnection = servedOpenJCAConnection;
551: }
552:
553: public int getServedOpenJDBCDatasource() {
554: return servedOpenJDBCDatasource;
555: }
556:
557: public void setServedOpenJDBCDatasource(int servedOpenJDBCDatasource) {
558: this .servedOpenJDBCDatasource = servedOpenJDBCDatasource;
559: }
560:
561: public int getWaiterCountJDBCDatasource() {
562: return waiterCountJDBCDatasource;
563: }
564:
565: public void setWaiterCountJDBCDatasource(
566: int waiterCountJDBCDatasource) {
567: this .waiterCountJDBCDatasource = waiterCountJDBCDatasource;
568: }
569:
570: public long getWaitingTimeJDBCDatasource() {
571: return waitingTimeJDBCDatasource;
572: }
573:
574: public void setWaitingTimeJDBCDatasource(
575: long waitingTimeJDBCDatasource) {
576: this .waitingTimeJDBCDatasource = waitingTimeJDBCDatasource;
577: }
578:
579: public int getCurrentNumberOfEntity() {
580: return currentNumberOfEntity;
581: }
582:
583: public void setCurrentNumberOfEntity(int currentNumberOfEntity) {
584: this .currentNumberOfEntity = currentNumberOfEntity;
585: }
586:
587: public boolean getJmsJoram() {
588: return jmsJoram;
589: }
590:
591: public void setJmsJoram(boolean joramJms) {
592: this .jmsJoram = joramJms;
593: }
594:
595: public int getJmsNbMsgsSendToDMQSinceCreation() {
596: return jmsNbMsgsSendToDMQSinceCreation;
597: }
598:
599: public void setJmsNbMsgsSendToDMQSinceCreation(
600: int jmsNbMsgsSendToDMQSinceCreation) {
601: this.jmsNbMsgsSendToDMQSinceCreation = jmsNbMsgsSendToDMQSinceCreation;
602: }
603: }
|