KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > resource > deployment > ds > metadata > ConnectionPoolMetaData


1 /*
2  * JBoss, Home of Professional Open Source
3  * Copyright 2005, JBoss Inc., and individual contributors as indicated
4  * by the @authors tag. See the copyright.txt in the distribution for a
5  * full listing of individual contributors.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This software 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 software; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  */

22
23 package org.jboss.resource.deployment.ds.metadata;
24
25
26
27 /**
28  * A ConnectionPoolMetaData.
29  *
30  * @author <a HREF="weston.price@jboss.com">Weston Price</a>
31  * @version $Revision: 45634 $
32  */

33 public class ConnectionPoolMetaData implements DsElementMetaData
34 {
35
36    /** The serialVersionUID */
37    private static final long serialVersionUID = 6612257250227220680L;
38
39    /** The minPoolSize */
40    private int minPoolSize;
41
42    /** The maxPoolSize */
43    private int maxPoolSize;
44
45    /** The prefill */
46    private boolean prefill;
47
48    /** The blockingTimeoutMilliseconds */
49    private long blockingTimeoutMilliseconds;
50
51    /** The idleTimeoutMinutes */
52    private long idleTimeoutMinutes;
53
54    /** The connectionSql */
55    private String JavaDoc connectionSql;
56
57    /** The validConnectionSql */
58    private String JavaDoc validConnectionSql;
59
60    /** The noTxSeperatePool */
61    private boolean noTxSeperatePool;
62
63    /** The trackConnectionByTx */
64    private boolean trackConnectionByTx;
65
66    /** The backgroundValidation */
67    private boolean backgroundValidation;
68    
69    /** The backgroundValidationInterval */
70    private int backgroundValidationInterval;
71    
72    private PoolCriteriaMetaData poolCriteria = PoolCriteriaMetaData.NOTHING;
73    
74
75    public boolean isBackgroundValidation()
76    {
77       return backgroundValidation;
78    }
79
80    public void setBackgroundValidation(boolean backgroundValidation)
81    {
82       this.backgroundValidation = backgroundValidation;
83    }
84
85    public int getBackgroundValidationInterval()
86    {
87       return backgroundValidationInterval;
88    }
89
90    public void setBackgroundValidationInterval(int backgroundValidationInterval)
91    {
92       this.backgroundValidationInterval = backgroundValidationInterval;
93    }
94
95    public PoolCriteriaMetaData getPoolCriteria()
96    {
97       return poolCriteria;
98    }
99
100    public void setPoolCriteria(PoolCriteriaMetaData poolCriteria)
101    {
102       this.poolCriteria = poolCriteria;
103    }
104
105    public String JavaDoc getValidConnectionSql()
106    {
107       return validConnectionSql;
108    }
109
110    public void setValidConnectionSql(String JavaDoc validConnectionSql)
111    {
112       this.validConnectionSql = validConnectionSql;
113    }
114
115    /**
116     * Get the blockingTimeoutMilliseconds.
117     *
118     * @return the blockingTimeoutMilliseconds.
119     */

120    public long getBlockingTimeoutMilliseconds()
121    {
122       return blockingTimeoutMilliseconds;
123    }
124
125    /**
126     * Set the blockingTimeoutMilliseconds.
127     *
128     * @param blockingTimeoutMilliseconds The blockingTimeoutMilliseconds to set.
129     */

130    public void setBlockingTimeoutMilliseconds(long blockingTimeoutMilliseconds)
131    {
132       this.blockingTimeoutMilliseconds = blockingTimeoutMilliseconds;
133    }
134
135    /**
136     * Get the connectionSql.
137     *
138     * @return the connectionSql.
139     */

140    public String JavaDoc getConnectionSql()
141    {
142       return connectionSql;
143    }
144
145    /**
146     * Set the connectionSql.
147     *
148     * @param connectionSql The connectionSql to set.
149     */

150    public void setConnectionSql(String JavaDoc connectionSql)
151    {
152       this.connectionSql = connectionSql;
153    }
154
155    /**
156     * Get the idleTimeoutMinutes.
157     *
158     * @return the idleTimeoutMinutes.
159     */

160    public long getIdleTimeoutMinutes()
161    {
162       return idleTimeoutMinutes;
163    }
164
165    /**
166     * Set the idleTimeoutMinutes.
167     *
168     * @param idleTimeoutMinutes The idleTimeoutMinutes to set.
169     */

170    public void setIdleTimeoutMinutes(long idleTimeoutMinutes)
171    {
172       this.idleTimeoutMinutes = idleTimeoutMinutes;
173    }
174
175    /**
176     * Get the maxPoolSize.
177     *
178     * @return the maxPoolSize.
179     */

180    public int getMaxPoolSize()
181    {
182       return maxPoolSize;
183    }
184
185    /**
186     * Set the maxPoolSize.
187     *
188     * @param maxPoolSize The maxPoolSize to set.
189     */

190    public void setMaxPoolSize(int maxPoolSize)
191    {
192       this.maxPoolSize = maxPoolSize;
193    }
194
195    /**
196     * Get the minPoolSize.
197     *
198     * @return the minPoolSize.
199     */

200    public int getMinPoolSize()
201    {
202       return minPoolSize;
203    }
204
205    /**
206     * Set the minPoolSize.
207     *
208     * @param minPoolSize The minPoolSize to set.
209     */

210    public void setMinPoolSize(int minPoolSize)
211    {
212       this.minPoolSize = minPoolSize;
213    }
214
215    /**
216     * Get the noTxSeperatePool.
217     *
218     * @return the noTxSeperatePool.
219     */

220    public boolean isNoTxSeperatePool()
221    {
222       return noTxSeperatePool;
223    }
224
225    /**
226     * Set the noTxSeperatePool.
227     *
228     * @param noTxSeperatePool The noTxSeperatePool to set.
229     */

230    public void setNoTxSeperatePool(boolean noTxSeperatePool)
231    {
232       this.noTxSeperatePool = noTxSeperatePool;
233    }
234
235    /**
236     * Get the prefill.
237     *
238     * @return the prefill.
239     */

240    public boolean isPrefill()
241    {
242       return prefill;
243    }
244
245    /**
246     * Set the prefill.
247     *
248     * @param prefill The prefill to set.
249     */

250    public void setPrefill(boolean prefill)
251    {
252       this.prefill = prefill;
253    }
254
255    /**
256     * Get the trackConnectionByTx.
257     *
258     * @return the trackConnectionByTx.
259     */

260    public boolean isTrackConnectionByTx()
261    {
262       return trackConnectionByTx;
263    }
264
265    /**
266     * Set the trackConnectionByTx.
267     *
268     * @param trackConnectionByTx The trackConnectionByTx to set.
269     */

270    public void setTrackConnectionByTx(boolean trackConnectionByTx)
271    {
272       this.trackConnectionByTx = trackConnectionByTx;
273    }
274
275 }
276
Popular Tags