KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > model > config > PoolParameter


1 /*
2  * Copyright 2003-2006 the original author or authors.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  *
15  */

16 package com.jdon.model.config;
17
18 /**
19  * pack the pool size parameters
20  * create this class is for configuring in container.xml
21  * @author <a HREF="mailto:banqJdon<AT>jdon.com">banq</a>
22  *
23  */

24
25 public class PoolParameter {
26     
27     private int handlerPoolSize;
28     private int modelPoolSize;
29     
30     
31     
32
33     /**
34      * @param handlerPoolSize
35      * @param modelPoolSize
36      */

37     public PoolParameter(String JavaDoc handlerPoolSize, String JavaDoc modelPoolSize) {
38         this.handlerPoolSize = Integer.parseInt(handlerPoolSize);
39         this.modelPoolSize = Integer.parseInt(modelPoolSize);
40     }
41     
42     
43     
44     
45     
46     /**
47      * @return Returns the handlerPoolSize.
48      */

49     public int getHandlerPoolSize() {
50         return handlerPoolSize;
51     }
52     /**
53      * @param handlerPoolSize The handlerPoolSize to set.
54      */

55     public void setHandlerPoolSize(int handlerPoolSize) {
56         this.handlerPoolSize = handlerPoolSize;
57     }
58     /**
59      * @return Returns the modelPoolSize.
60      */

61     public int getModelPoolSize() {
62         return modelPoolSize;
63     }
64     /**
65      * @param modelPoolSize The modelPoolSize to set.
66      */

67     public void setModelPoolSize(int modelPoolSize) {
68         this.modelPoolSize = modelPoolSize;
69     }
70 }
71
Popular Tags