KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > runtime > BeanPoolDescriptor


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * @(#) BeanPool.java
26  *
27  * Copyright 2000-2001 by iPlanet/Sun Microsystems, Inc.,
28  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
29  * All rights reserved.
30  *
31  * This software is the confidential and proprietary information
32  * of iPlanet/Sun Microsystems, Inc. ("Confidential Information").
33  * You shall not disclose such Confidential Information and shall
34  * use it only in accordance with the terms of the license
35  * agreement you entered into with iPlanet/Sun Microsystems.
36  */

37 package com.sun.enterprise.deployment.runtime;
38
39 import com.sun.enterprise.deployment.Descriptor;
40 import com.sun.enterprise.deployment.DescriptorConstants;
41
42 /** iAS specific DD Element (see the ias-ejb-jar_2_0.dtd for this element)
43  * @author Ludo
44  * @since JDK 1.4
45  */

46 public class BeanPoolDescriptor extends Descriptor implements DescriptorConstants {
47        
48     private int maxPoolSize = MAX_POOL_SIZE_DEFAULT;
49     private int poolIdleTimeoutInSeconds = POOL_IDLE_TIMEOUT_DEFAULT;
50     private int maxWaitTimeInMillis = MAX_WAIT_TIME_DEFAULT;
51     private int poolResizeQuantity = POOL_RESIZE_QTY_DEFAULT;
52     private int steadyPoolSize = STEADY_POOL_SIZE_DEFAULT;
53
54     
55     /** Default constructor. */
56     public BeanPoolDescriptor() {
57     }
58
59      /** Getter for property poolIdleTimeoutInSeconds.
60      * @return Value of property idleTimeoutInSeconds.
61      */

62     public int getPoolIdleTimeoutInSeconds() {
63         return poolIdleTimeoutInSeconds;
64     }
65     
66     /** Setter for property poolIdleTimeoutInSeconds.
67      * @param poolIdleTimeoutInSeconds New value of property poolIdleTimeoutInSeconds.
68      */

69     public void setPoolIdleTimeoutInSeconds(int poolIdleTimeoutInSeconds) {
70         this.poolIdleTimeoutInSeconds = poolIdleTimeoutInSeconds;
71     }
72     
73     /** Getter for property maxPoolSize.
74      * @return Value of property maxPoolSize.
75      */

76     public int getMaxPoolSize() {
77         return maxPoolSize;
78     }
79     
80     /** Setter for property maxPoolSize.
81      * @param maxPoolSize New value of property maxPoolSize.
82      */

83     public void setMaxPoolSize(int maxPoolSize) {
84         this.maxPoolSize = maxPoolSize;
85     }
86     
87     /** Getter for property maxWaitTimeInMillis.
88      * @return Value of property maxWaitTimeInMillis.
89      */

90     public int getMaxWaitTimeInMillis() {
91         return maxWaitTimeInMillis;
92     }
93     
94     /** Setter for property maxWaitTimeInMillis.
95      * @param maxWaitTimeInMillis New value of property maxWaitTimeInMillis.
96      */

97     public void setMaxWaitTimeInMillis(int maxWaitTimeInMillis) {
98         this.maxWaitTimeInMillis = maxWaitTimeInMillis;
99     }
100     
101     /** Getter for property poolResizeQuantity
102      * @return Value of property poolResizeQuantity.
103      */

104     public int getPoolResizeQuantity() {
105         return poolResizeQuantity;
106     }
107     
108     /** Setter for property poolResizeQuantity.
109      * @param poolResizeQuantity New value of property poolResizeQuantity.
110      */

111     public void setPoolResizeQuantity(int poolResizeQuantity) {
112         this.poolResizeQuantity = poolResizeQuantity;
113     }
114     
115     /** Getter for property steadyPoolSize
116     * @return Value of property steadyPoolSize.
117     */

118     public int getSteadyPoolSize() {
119         return steadyPoolSize;
120     }
121   
122     /** Setter for property steadyPoolSize.
123      * @param steadyPoolSize New value of property steadyPoolSize.
124      */

125     public void setSteadyPoolSize(int steadyPoolSize) {
126         this.steadyPoolSize = steadyPoolSize;
127     }
128 }
129
130
Popular Tags