KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_rar > deployment > api > PoolParamsDesc


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  *
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or 1any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20  * USA
21  *
22  * Initial developer: Eric Hardesty
23  * --------------------------------------------------------------------------
24  * $Id: PoolParamsDesc.java,v 1.2 2004/10/29 23:33:37 ehardesty Exp $
25  * --------------------------------------------------------------------------
26  */

27 package org.objectweb.jonas_rar.deployment.api;
28
29 import java.io.Serializable JavaDoc;
30
31 import org.objectweb.jonas_rar.deployment.xml.PoolParams;
32
33 /**
34  * This class defines the implementation of the element pool-params
35  *
36  * @author Eric Hardesty
37  */

38
39 public class PoolParamsDesc implements Serializable JavaDoc {
40
41     /**
42      * pool-init
43      */

44     private String JavaDoc poolInit = null;
45
46     /**
47      * pool-min
48      */

49     private String JavaDoc poolMin = null;
50
51     /**
52      * pool-max
53      */

54     private String JavaDoc poolMax = null;
55
56     /**
57      * pool-max-age
58      */

59     private String JavaDoc poolMaxAge = null;
60
61     /**
62      * pstmt-max
63      */

64     private String JavaDoc pstmtMax = null;
65
66     /**
67      * pool-max-age-minutes
68      */

69     private String JavaDoc poolMaxAgeMinutes = null;
70
71     /**
72      * pool-max-opentime
73      */

74     private String JavaDoc poolMaxOpentime = null;
75
76     /**
77      * pool-max-waiters
78      */

79     private String JavaDoc poolMaxWaiters = null;
80
81     /**
82      * pool-max-waittime
83      */

84     private String JavaDoc poolMaxWaittime = null;
85
86     /**
87      * pool-sampling-period
88      */

89     private String JavaDoc poolSamplingPeriod = null;
90
91     /**
92      * Constructor
93      * @param pp PoolParams to set
94      */

95     public PoolParamsDesc(PoolParams pp) {
96         if (pp != null) {
97             poolInit = pp.getPoolInit();
98             poolMin = pp.getPoolMin();
99             poolMax = pp.getPoolMax();
100             poolMaxAge = pp.getPoolMaxAge();
101             pstmtMax = pp.getPstmtMax();
102             poolMaxAgeMinutes = pp.getPoolMaxAgeMinutes();
103             poolMaxOpentime = pp.getPoolMaxOpentime();
104             poolMaxWaiters = pp.getPoolMaxWaiters();
105             poolMaxWaittime = pp.getPoolMaxWaittime();
106             poolSamplingPeriod = pp.getPoolSamplingPeriod();
107         }
108     }
109
110     /**
111      * Gets the pool-init
112      * @return the pool-init
113      */

114     public String JavaDoc getPoolInit() {
115         return poolInit;
116     }
117
118     /**
119      * Gets the pool-min
120      * @return the pool-min
121      */

122     public String JavaDoc getPoolMin() {
123         return poolMin;
124     }
125
126     /**
127      * Gets the pool-max
128      * @return the pool-max
129      */

130     public String JavaDoc getPoolMax() {
131         return poolMax;
132     }
133
134     /**
135      * Gets the pool-max-age
136      * @return the pool-max-age
137      */

138     public String JavaDoc getPoolMaxAge() {
139         return poolMaxAge;
140     }
141
142     /**
143      * Gets the pstmt-max
144      * @return the pstmt-max
145      */

146     public String JavaDoc getPstmtMax() {
147         return pstmtMax;
148     }
149
150     /**
151      * Gets the pool-max-age-minutes
152      * @return the pool-max-age-minutes
153      */

154     public String JavaDoc getPoolMaxAgeMinutes() {
155         return poolMaxAgeMinutes;
156     }
157
158     /**
159      * Gets the pool-max-opentime
160      * @return the pool-max-opentime
161      */

162     public String JavaDoc getPoolMaxOpentime() {
163         return poolMaxOpentime;
164     }
165
166     /**
167      * Gets the pool-max-waiters
168      * @return the pool-max-waiters
169      */

170     public String JavaDoc getPoolMaxWaiters() {
171         return poolMaxWaiters;
172     }
173
174     /**
175      * Gets the pool-max-waittime
176      * @return pool-max-waittime
177      */

178     public String JavaDoc getPoolMaxWaittime() {
179         return poolMaxWaittime;
180     }
181
182     /**
183      * Gets the pool-sampling-period
184      * @return pool-sampling-period
185      */

186     public String JavaDoc getPoolSamplingPeriod() {
187         return poolSamplingPeriod;
188     }
189 }
190
Popular Tags