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: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: Eric Hardesty
023: * --------------------------------------------------------------------------
024: * $Id: PoolParamsDesc.java 5699 2004-10-29 23:33:37Z ehardesty $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_rar.deployment.api;
027:
028: import java.io.Serializable;
029:
030: import org.objectweb.jonas_rar.deployment.xml.PoolParams;
031:
032: /**
033: * This class defines the implementation of the element pool-params
034: *
035: * @author Eric Hardesty
036: */
037:
038: public class PoolParamsDesc implements Serializable {
039:
040: /**
041: * pool-init
042: */
043: private String poolInit = null;
044:
045: /**
046: * pool-min
047: */
048: private String poolMin = null;
049:
050: /**
051: * pool-max
052: */
053: private String poolMax = null;
054:
055: /**
056: * pool-max-age
057: */
058: private String poolMaxAge = null;
059:
060: /**
061: * pstmt-max
062: */
063: private String pstmtMax = null;
064:
065: /**
066: * pool-max-age-minutes
067: */
068: private String poolMaxAgeMinutes = null;
069:
070: /**
071: * pool-max-opentime
072: */
073: private String poolMaxOpentime = null;
074:
075: /**
076: * pool-max-waiters
077: */
078: private String poolMaxWaiters = null;
079:
080: /**
081: * pool-max-waittime
082: */
083: private String poolMaxWaittime = null;
084:
085: /**
086: * pool-sampling-period
087: */
088: private String poolSamplingPeriod = null;
089:
090: /**
091: * Constructor
092: * @param pp PoolParams to set
093: */
094: public PoolParamsDesc(PoolParams pp) {
095: if (pp != null) {
096: poolInit = pp.getPoolInit();
097: poolMin = pp.getPoolMin();
098: poolMax = pp.getPoolMax();
099: poolMaxAge = pp.getPoolMaxAge();
100: pstmtMax = pp.getPstmtMax();
101: poolMaxAgeMinutes = pp.getPoolMaxAgeMinutes();
102: poolMaxOpentime = pp.getPoolMaxOpentime();
103: poolMaxWaiters = pp.getPoolMaxWaiters();
104: poolMaxWaittime = pp.getPoolMaxWaittime();
105: poolSamplingPeriod = pp.getPoolSamplingPeriod();
106: }
107: }
108:
109: /**
110: * Gets the pool-init
111: * @return the pool-init
112: */
113: public String getPoolInit() {
114: return poolInit;
115: }
116:
117: /**
118: * Gets the pool-min
119: * @return the pool-min
120: */
121: public String getPoolMin() {
122: return poolMin;
123: }
124:
125: /**
126: * Gets the pool-max
127: * @return the pool-max
128: */
129: public String getPoolMax() {
130: return poolMax;
131: }
132:
133: /**
134: * Gets the pool-max-age
135: * @return the pool-max-age
136: */
137: public String getPoolMaxAge() {
138: return poolMaxAge;
139: }
140:
141: /**
142: * Gets the pstmt-max
143: * @return the pstmt-max
144: */
145: public String getPstmtMax() {
146: return pstmtMax;
147: }
148:
149: /**
150: * Gets the pool-max-age-minutes
151: * @return the pool-max-age-minutes
152: */
153: public String getPoolMaxAgeMinutes() {
154: return poolMaxAgeMinutes;
155: }
156:
157: /**
158: * Gets the pool-max-opentime
159: * @return the pool-max-opentime
160: */
161: public String getPoolMaxOpentime() {
162: return poolMaxOpentime;
163: }
164:
165: /**
166: * Gets the pool-max-waiters
167: * @return the pool-max-waiters
168: */
169: public String getPoolMaxWaiters() {
170: return poolMaxWaiters;
171: }
172:
173: /**
174: * Gets the pool-max-waittime
175: * @return pool-max-waittime
176: */
177: public String getPoolMaxWaittime() {
178: return poolMaxWaittime;
179: }
180:
181: /**
182: * Gets the pool-sampling-period
183: * @return pool-sampling-period
184: */
185: public String getPoolSamplingPeriod() {
186: return poolSamplingPeriod;
187: }
188: }
|