Source Code Cross Referenced for ResourceAdapterCFForm.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » webapp » jonasadmin » service » resource » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.webapp.jonasadmin.service.resource 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * JOnAS: Java(TM) Open Application Server
003:         * Copyright (C) 1999 Bull S.A.
004:         * Contact: jonas-team@objectweb.org
005:         *
006:         * This library is free software; you can redistribute it and/or
007:         * modify it under the terms of the GNU Lesser General Public
008:         * License as published by the Free Software Foundation; either
009:         * version 2.1 of the License, or any later version.
010:         *
011:         * This library is distributed in the hope that it will be useful,
012:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
013:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014:         * Lesser General Public License for more details.
015:         *
016:         * You should have received a copy of the GNU Lesser General Public
017:         * License along with this library; if not, write to the Free Software
018:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
019:         * USA
020:         *
021:         * --------------------------------------------------------------------------
022:         * $Id: ResourceAdapterCFForm.java 7600 2005-10-25 12:29:44Z danesa $
023:         * --------------------------------------------------------------------------
024:         */
025:
026:        package org.objectweb.jonas.webapp.jonasadmin.service.resource;
027:
028:        import java.net.URL;
029:        import java.util.ArrayList;
030:        import java.util.Collections;
031:        import java.util.Enumeration;
032:        import java.util.Properties;
033:
034:        import javax.management.ObjectName;
035:
036:        import javax.servlet.http.HttpServletRequest;
037:
038:        import org.apache.struts.action.ActionErrors;
039:        import org.apache.struts.action.ActionForm;
040:        import org.apache.struts.action.ActionMapping;
041:        import org.objectweb.jonas.webapp.jonasadmin.Jlists;
042:        import org.objectweb.jonas.webapp.jonasadmin.JonasAdminJmx;
043:        import org.objectweb.jonas.webapp.jonasadmin.common.LabelValueByLabelComparator;
044:        import org.objectweb.jonas.webapp.taglib.LabelValueBean;
045:
046:        /**
047:         * @author Michel-Ange ANTON
048:         */
049:        public class ResourceAdapterCFForm extends ActionForm {
050:
051:            // --------------------------------------------------------- Properties variables
052:
053:            private String action = null;
054:            private String description = null;
055:            private String name = null;
056:            private ArrayList listProperties = new ArrayList();
057:            private ObjectName oName = null;
058:            private String path = null;
059:
060:            private String jdbcTestStatement = "1";
061:            private java.util.List checkingLevels = Jlists
062:                    .getJdbcConnectionCheckingLevels();
063:            private String currentOpened = null;
064:            private String currentBusy = null;
065:            private String busyMaxRecent = null;
066:            private String busyMinRecent = null;
067:            private String currentInTx = null;
068:            private String openedCount = null;
069:            private String connectionFailures = null;
070:            private String connectionLeaks = null;
071:            private String currentWaiters = null;
072:            private String waitersHigh = null;
073:            private String waitersHighRecent = null;
074:            private String waiterCount = null;
075:            private String waitingTime = null;
076:            private String waitingHigh = null;
077:            private String waitingHighRecent = null;
078:            private String servedOpen = null;
079:            private String rejectedOpen = null;
080:            private String rejectedFull = null;
081:            private String rejectedTimeout = null;
082:            private String rejectedOther = null;
083:            private String jdbcConnCheckLevel = "0";
084:            private String connMaxAge = "0";
085:            private String maxOpentime = "0";
086:            private String initSize = "0";
087:            private String maxSize = "0";
088:            private String minSize = "0";
089:            private String maxWaitTime = "0";
090:            private String maxWaiters = "0";
091:            private String samplingPeriod = "0";
092:            private String pstmtMax = "0";
093:
094:            private ArrayList listUsedByEjb = new ArrayList();
095:
096:            // --------------------------------------------------------- Public Methods
097:
098:            public void reset(ActionMapping mapping, HttpServletRequest request) {
099:            }
100:
101:            public ActionErrors validate(ActionMapping mapping,
102:                    HttpServletRequest request) {
103:                ActionErrors oErrors = new ActionErrors();
104:                return oErrors;
105:            }
106:
107:            // --------------------------------------------------------- Properties Methods
108:
109:            public String getAction() {
110:                return action;
111:            }
112:
113:            public void setAction(String action) {
114:                this .action = action;
115:            }
116:
117:            public String getDescription() {
118:                return description;
119:            }
120:
121:            public void setDescription(String desc) {
122:                description = desc;
123:            }
124:
125:            public String getName() {
126:                return name;
127:            }
128:
129:            public void setName(String name) {
130:                this .name = name;
131:            }
132:
133:            public String getPath() {
134:                return path;
135:            }
136:
137:            public void setPath(String path) {
138:                this .path = path;
139:            }
140:
141:            public ArrayList getListProperties() {
142:                return listProperties;
143:            }
144:
145:            public void setListProperties(Properties properties) {
146:                this .listProperties.clear();
147:                // Fill list with properties (keys and values)
148:                String sKey;
149:                Enumeration oEnum = properties.keys();
150:                while (oEnum.hasMoreElements()) {
151:                    sKey = oEnum.nextElement().toString();
152:                    this .listProperties.add(new LabelValueBean(sKey, properties
153:                            .getProperty(sKey, "")));
154:                }
155:                Collections.sort(this .listProperties,
156:                        new LabelValueByLabelComparator());
157:            }
158:
159:            public void setOName(ObjectName oName) {
160:                this .oName = oName;
161:            }
162:
163:            public ObjectName getOName() {
164:                return oName;
165:            }
166:
167:            // Statistics
168:            public String getCurrentOpened() {
169:                return currentOpened;
170:            }
171:
172:            public void setCurrentOpened(String s) {
173:                currentOpened = s;
174:            }
175:
176:            public String getCurrentBusy() {
177:                return currentBusy;
178:            }
179:
180:            public void setCurrentBusy(String s) {
181:                currentBusy = s;
182:            }
183:
184:            public String getCurrentInTx() {
185:                return currentInTx;
186:            }
187:
188:            public void setCurrentInTx(String s) {
189:                currentInTx = s;
190:            }
191:
192:            public String getOpenedCount() {
193:                return openedCount;
194:            }
195:
196:            public void setOpenedCount(String s) {
197:                openedCount = s;
198:            }
199:
200:            public String getConnectionFailures() {
201:                return connectionFailures;
202:            }
203:
204:            public void setConnectionFailures(String s) {
205:                connectionFailures = s;
206:            }
207:
208:            public String getConnectionLeaks() {
209:                return connectionLeaks;
210:            }
211:
212:            public void setConnectionLeaks(String s) {
213:                connectionLeaks = s;
214:            }
215:
216:            public String getCurrentWaiters() {
217:                return currentWaiters;
218:            }
219:
220:            public void setCurrentWaiters(String s) {
221:                currentWaiters = s;
222:            }
223:
224:            public String getWaitersHigh() {
225:                return waitersHigh;
226:            }
227:
228:            public void setWaitersHigh(String s) {
229:                waitersHigh = s;
230:            }
231:
232:            public String getWaitersHighRecent() {
233:                return waitersHighRecent;
234:            }
235:
236:            public void setWaitersHighRecent(String s) {
237:                waitersHighRecent = s;
238:            }
239:
240:            public String getBusyMaxRecent() {
241:                return busyMaxRecent;
242:            }
243:
244:            public void setBusyMaxRecent(String s) {
245:                busyMaxRecent = s;
246:            }
247:
248:            public String getBusyMinRecent() {
249:                return busyMinRecent;
250:            }
251:
252:            public void setBusyMinRecent(String s) {
253:                busyMinRecent = s;
254:            }
255:
256:            public String getWaiterCount() {
257:                return waiterCount;
258:            }
259:
260:            public void setWaiterCount(String s) {
261:                waiterCount = s;
262:            }
263:
264:            public String getWaitingTime() {
265:                return waitingTime;
266:            }
267:
268:            public void setWaitingTime(String s) {
269:                waitingTime = s;
270:            }
271:
272:            public String getWaitingHigh() {
273:                return waitingHigh;
274:            }
275:
276:            public void setWaitingHigh(String s) {
277:                waitingHigh = s;
278:            }
279:
280:            public String getWaitingHighRecent() {
281:                return waitingHighRecent;
282:            }
283:
284:            public void setWaitingHighRecent(String s) {
285:                waitingHighRecent = s;
286:            }
287:
288:            public String getServedOpen() {
289:                return servedOpen;
290:            }
291:
292:            public void setServedOpen(String s) {
293:                servedOpen = s;
294:            }
295:
296:            public String getRejectedOpen() {
297:                return rejectedOpen;
298:            }
299:
300:            public void setRejectedOpen(String s) {
301:                rejectedOpen = s;
302:            }
303:
304:            public String getRejectedFull() {
305:                return rejectedFull;
306:            }
307:
308:            public void setRejectedFull(String s) {
309:                rejectedFull = s;
310:            }
311:
312:            public String getRejectedTimeout() {
313:                return rejectedTimeout;
314:            }
315:
316:            public void setRejectedTimeout(String s) {
317:                rejectedTimeout = s;
318:            }
319:
320:            public String getRejectedOther() {
321:                return rejectedOther;
322:            }
323:
324:            public void setRejectedOther(String s) {
325:                rejectedOther = s;
326:            }
327:
328:            public String getJdbcConnCheckLevel() {
329:                return jdbcConnCheckLevel;
330:            }
331:
332:            public void setJdbcConnCheckLevel(String jdbcConnCheckLevel) {
333:                this .jdbcConnCheckLevel = jdbcConnCheckLevel;
334:            }
335:
336:            public String getConnMaxAge() {
337:                return connMaxAge;
338:            }
339:
340:            public void setConnMaxAge(String s) {
341:                connMaxAge = s;
342:            }
343:
344:            public String getMaxOpentime() {
345:                return maxOpentime;
346:            }
347:
348:            public void setMaxOpentime(String s) {
349:                maxOpentime = s;
350:            }
351:
352:            public String getMaxSize() {
353:                return maxSize;
354:            }
355:
356:            public void setMaxSize(String maxSize) {
357:                this .maxSize = maxSize;
358:            }
359:
360:            public String getMinSize() {
361:                return minSize;
362:            }
363:
364:            public void setMinSize(String minSize) {
365:                this .minSize = minSize;
366:            }
367:
368:            public String getMaxWaitTime() {
369:                return maxWaitTime;
370:            }
371:
372:            public void setMaxWaitTime(String maxWaitTime) {
373:                this .maxWaitTime = maxWaitTime;
374:            }
375:
376:            public String getMaxWaiters() {
377:                return maxWaiters;
378:            }
379:
380:            public void setMaxWaiters(String s) {
381:                this .maxWaiters = s;
382:            }
383:
384:            public String getSamplingPeriod() {
385:                return samplingPeriod;
386:            }
387:
388:            public void setSamplingPeriod(String s) {
389:                this .samplingPeriod = s;
390:            }
391:
392:            public String getJdbcTestStatement() {
393:                return jdbcTestStatement;
394:            }
395:
396:            public void setJdbcTestStatement(String jdbcTestStatement) {
397:                this .jdbcTestStatement = jdbcTestStatement;
398:            }
399:
400:            public java.util.List getCheckingLevels() {
401:                return checkingLevels;
402:            }
403:
404:            public ArrayList getListUsedByEjb() {
405:                return listUsedByEjb;
406:            }
407:
408:            public void setListUsedByEjb(ArrayList listUsedByEjb) {
409:                this .listUsedByEjb = listUsedByEjb;
410:            }
411:
412:            /**
413:             * @return Returns the initSize.
414:             */
415:            public String getInitSize() {
416:                return initSize;
417:            }
418:
419:            /**
420:             * @param initSize The initSize to set.
421:             */
422:            public void setInitSize(String initSize) {
423:                this .initSize = initSize;
424:            }
425:
426:            /**
427:             * @return Returns the pstmtMax.
428:             */
429:            public String getPstmtMax() {
430:                return pstmtMax;
431:            }
432:
433:            /**
434:             * @param pstmtMax The pstmtMax to set.
435:             */
436:            public void setPstmtMax(String pstmtMax) {
437:                this.pstmtMax = pstmtMax;
438:            }
439:
440:        }
ww___w_.__j_a___v__a___2___s___.c__o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.