Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A08210BD7 for ; Tue, 25 Feb 2014 19:28:39 +0000 (UTC) Received: (qmail 60395 invoked by uid 500); 25 Feb 2014 19:25:31 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 59673 invoked by uid 500); 25 Feb 2014 19:25:09 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 59543 invoked by uid 99); 25 Feb 2014 19:25:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 19:25:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Feb 2014 19:25:02 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 069DF2388CA6 for ; Tue, 25 Feb 2014 19:23:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r899186 [26/43] - in /websites/production/commons/content/proper/commons-pool: cobertura/ cobertura/js/ css/ guide/ js/ testapidocs/ testapidocs/org/apache/commons/pool2/ testapidocs/org/apache/commons/pool2/impl/ Date: Tue, 25 Feb 2014 19:23:45 -0000 To: commits@commons.apache.org From: markt@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140225192352.069DF2388CA6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.GenericObjectPoolConfig.html ============================================================================== --- websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.GenericObjectPoolConfig.html (original) +++ websites/production/commons/content/proper/commons-pool/cobertura/org.apache.commons.pool2.impl.GenericObjectPoolConfig.html Tue Feb 25 19:23:44 2014 @@ -12,288 +12,288 @@
 
-
Classes in this File Line Coverage Branch Coverage Complexity
GenericObjectPoolConfig
81%
13/16
N/A
1.429
GenericObjectPoolConfig
81%
13/16
N/A
1.429
 
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.apache.commons.pool2.impl;
 
 /**
  * A simple "struct" encapsulating the configuration for a
  * {@link GenericObjectPool}.
  *
  * <p>
  * This class is not thread-safe; it is only intended to be used to provide
  * attributes used when creating a pool.
  *
  * @version $Revision: $
  *
  * @since 2.0
  */
 
     /**
      * The default value for the {@code maxTotal} configuration attribute.
      * @see GenericObjectPool#getMaxTotal()
      */
     public static final int DEFAULT_MAX_TOTAL = 8;
 
     /**
      * The default value for the {@code maxIdle} configuration attribute.
      * @see GenericObjectPool#getMaxIdle()
      */
     public static final int DEFAULT_MAX_IDLE = 8;
 
     /**
      * The default value for the {@code minIdle} configuration attribute.
      * @see GenericObjectPool#getMinIdle()
      */
     public static final int DEFAULT_MIN_IDLE = 0;
 
 
 
 
 
     /**
      * Get the value for the {@code maxTotal} configuration attribute
      * for pools created with this configuration instance.
      *
      * @return  The current setting of {@code maxTotal} for this
      *          configuration instance
      *
      * @see GenericObjectPool#getMaxTotal()
      */
     public int getMaxTotal() {
     }
 
     /**
      * Set the value for the {@code maxTotal} configuration attribute for
      * pools created with this configuration instance.
      *
      * @param maxTotal The new setting of {@code maxTotal}
      *        for this configuration instance
      *
      * @see GenericObjectPool#setMaxTotal(int)
      */
     public void setMaxTotal(int maxTotal) {
 
 
     /**
      * Get the value for the {@code maxIdle} configuration attribute
      * for pools created with this configuration instance.
      *
      * @return  The current setting of {@code maxIdle} for this
      *          configuration instance
      *
      * @see GenericObjectPool#getMaxIdle()
      */
     public int getMaxIdle() {
     }
 
     /**
      * Set the value for the {@code maxIdle} configuration attribute for
      * pools created with this configuration instance.
      *
      * @param maxIdle The new setting of {@code maxIdle}
      *        for this configuration instance
      *
      * @see GenericObjectPool#setMaxIdle(int)
      */
     public void setMaxIdle(int maxIdle) {
 
 
     /**
      * Get the value for the {@code minIdle} configuration attribute
      * for pools created with this configuration instance.
      *
      * @return  The current setting of {@code minIdle} for this
      *          configuration instance
      *
      * @see GenericObjectPool#getMinIdle()
      */
     public int getMinIdle() {
     }
 
     /**
      * Set the value for the {@code minIdle} configuration attribute for
      * pools created with this configuration instance.
      *
      * @param minIdle The new setting of {@code minIdle}
      *        for this configuration instance
      *
      * @see GenericObjectPool#setMinIdle(int)
      */
     public void setMinIdle(int minIdle) {
 
     @Override
     public GenericObjectPoolConfig clone() {
         try {
         }
     }
 }
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 1  
 2  
 3  
 4  
 5  
 6  
 7  
 8  
 9  
 10  
 11  
 12  
 13  
 14  
 15  
 16  
 17  
 18  
 19  
 20  
 21  
 22  
 23  
 24  
 25  
 26  
 27  
 28  
 29  
 30  
 31  168
 public class GenericObjectPoolConfig extends BaseObjectPoolConfig {
 32  
 33  
 34  
 35  
 36  
 37  
 38  
 39  
 40  
 41  
 42  
 43  
 44  
 45  
 46  
 47  
 48  
 49  
 50  
 51  
 52  168
     private int maxTotal = DEFAULT_MAX_TOTAL;
 53  
 54  168
     private int maxIdle = DEFAULT_MAX_IDLE;
 55  
 56  168
     private int minIdle = DEFAULT_MIN_IDLE;
 57  
 58  
 59  
 60  
 61  
 62  
 63  
 64  
 65  
 66  
 67  
 68  170
         return maxTotal;
 69  
 70  
 71  
 72  
 73  
 74  
 75  
 76  
 77  
 78  
 79  
 80  
 81  14
         this.maxTotal = maxTotal;
 82  14
     }
 83  
 84  
 85  
 86  
 87  
 88  
 89  
 90  
 91  
 92  
 93  
 94  
 95  170
         return maxIdle;
 96  
 97  
 98  
 99  
 100  
 101  
 102  
 103  
 104  
 105  
 106  
 107  
 108  2
         this.maxIdle = maxIdle;
 109  2
     }
 110  
 111  
 112  
 113  
 114  
 115  
 116  
 117  
 118  
 119  
 120  
 121  
 122  167
         return minIdle;
 123  
 124  
 125  
 126  
 127  
 128  
 129  
 130  
 131  
 132  
 133  
 134  
 135  1
         this.minIdle = minIdle;
 136  1
     }
 137  
 138  
 139  
 140  
 141  0
             return (GenericObjectPoolConfig) super.clone();
 142  0
         } catch (CloneNotSupportedException e) {
 143  0
             throw new AssertionError(); // Can't happen
 144  
 145  
 146  
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.apache.commons.pool2.impl;
 18  
 
 19  
 /**
 20  
  * A simple "struct" encapsulating the configuration for a
 21  
  * {@link GenericObjectPool}.
 22  
  *
 23  
  * <p>
 24  
  * This class is not thread-safe; it is only intended to be used to provide
 25  
  * attributes used when creating a pool.
 26  
  *
 27  
  * @version $Revision: $
 28  
  *
 29  
  * @since 2.0
 30  
  */
 31  168
 public class GenericObjectPoolConfig extends BaseObjectPoolConfig {
 32  
 
 33  
     /**
 34  
      * The default value for the {@code maxTotal} configuration attribute.
 35  
      * @see GenericObjectPool#getMaxTotal()
 36  
      */
 37  
     public static final int DEFAULT_MAX_TOTAL = 8;
 38  
 
 39  
     /**
 40  
      * The default value for the {@code maxIdle} configuration attribute.
 41  
      * @see GenericObjectPool#getMaxIdle()
 42  
      */
 43  
     public static final int DEFAULT_MAX_IDLE = 8;
 44  
 
 45  
     /**
 46  
      * The default value for the {@code minIdle} configuration attribute.
 47  
      * @see GenericObjectPool#getMinIdle()
 48  
      */
 49  
     public static final int DEFAULT_MIN_IDLE = 0;
 50  
 
 51  
 
 52  168
     private int maxTotal = DEFAULT_MAX_TOTAL;
 53  
 
 54  168
     private int maxIdle = DEFAULT_MAX_IDLE;
 55  
 
 56  168
     private int minIdle = DEFAULT_MIN_IDLE;
 57  
 
 58  
     /**
 59  
      * Get the value for the {@code maxTotal} configuration attribute
 60  
      * for pools created with this configuration instance.
 61  
      *
 62  
      * @return  The current setting of {@code maxTotal} for this
 63  
      *          configuration instance
 64  
      *
 65  
      * @see GenericObjectPool#getMaxTotal()
 66  
      */
 67  
     public int getMaxTotal() {
 68  170
         return maxTotal;
 69  
     }
 70  
 
 71  
     /**
 72  
      * Set the value for the {@code maxTotal} configuration attribute for
 73  
      * pools created with this configuration instance.
 74  
      *
 75  
      * @param maxTotal The new setting of {@code maxTotal}
 76  
      *        for this configuration instance
 77  
      *
 78  
      * @see GenericObjectPool#setMaxTotal(int)
 79  
      */
 80  
     public void setMaxTotal(int maxTotal) {
 81  14
         this.maxTotal = maxTotal;
 82  14
     }
 83  
 
 84  
 
 85  
     /**
 86  
      * Get the value for the {@code maxIdle} configuration attribute
 87  
      * for pools created with this configuration instance.
 88  
      *
 89  
      * @return  The current setting of {@code maxIdle} for this
 90  
      *          configuration instance
 91  
      *
 92  
      * @see GenericObjectPool#getMaxIdle()
 93  
      */
 94  
     public int getMaxIdle() {
 95  170
         return maxIdle;
 96  
     }
 97  
 
 98  
     /**
 99  
      * Set the value for the {@code maxIdle} configuration attribute for
 100  
      * pools created with this configuration instance.
 101  
      *
 102  
      * @param maxIdle The new setting of {@code maxIdle}
 103  
      *        for this configuration instance
 104  
      *
 105  
      * @see GenericObjectPool#setMaxIdle(int)
 106  
      */
 107  
     public void setMaxIdle(int maxIdle) {
 108  2
         this.maxIdle = maxIdle;
 109  2
     }
 110  
 
 111  
 
 112  
     /**
 113  
      * Get the value for the {@code minIdle} configuration attribute
 114  
      * for pools created with this configuration instance.
 115  
      *
 116  
      * @return  The current setting of {@code minIdle} for this
 117  
      *          configuration instance
 118  
      *
 119  
      * @see GenericObjectPool#getMinIdle()
 120  
      */
 121  
     public int getMinIdle() {
 122  167
         return minIdle;
 123  
     }
 124  
 
 125  
     /**
 126  
      * Set the value for the {@code minIdle} configuration attribute for
 127  
      * pools created with this configuration instance.
 128  
      *
 129  
      * @param minIdle The new setting of {@code minIdle}
 130  
      *        for this configuration instance
 131  
      *
 132  
      * @see GenericObjectPool#setMinIdle(int)
 133  
      */
 134  
     public void setMinIdle(int minIdle) {
 135  1
         this.minIdle = minIdle;
 136  1
     }
 137  
 
 138  
     @Override
 139  
     public GenericObjectPoolConfig clone() {
 140  
         try {
 141  0
             return (GenericObjectPoolConfig) super.clone();
 142  0
         } catch (CloneNotSupportedException e) {
 143  0
             throw new AssertionError(); // Can't happen
 144  
         }
 145  
     }
 146  
 }