KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > resource > statistic > pool > ManagedConnectionPoolStatistics


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 package org.jboss.resource.statistic.pool;
23
24 import java.util.Collection JavaDoc;
25
26 import org.jboss.resource.statistic.JBossStatistics;
27
28 /**
29  * A ManagedConnectionPoolStatistics.
30  *
31  * @author <a HREF="weston.price@jboss.com">Weston Price</a>
32  * @version $Revision: 44968 $
33  */

34 public interface ManagedConnectionPoolStatistics extends JBossStatistics
35 {
36   
37    /**
38     * Get the name of the managed connection pool as a string.
39     *
40     * @return the name of the managed connection pool.
41     */

42    public String JavaDoc getName();
43    
44    /**
45     * Set the name of the managed connection pool
46     *
47     * @param name the name of the managed connection pool.
48     */

49    public void setName(String JavaDoc name);
50    
51    /**
52     * Get the number of sub pools.
53     *
54     * @return the number of sub pools.
55     */

56    public int getSubPoolCount();
57
58    /**
59     * Get the total maximum connections used count
60     *
61     * @return the total maximum connections used count.
62     */

63    public int getTotalMaxConnectionsInUseCount();
64
65    /**
66     * Get the total connections in use count.
67     *
68     * @return the total connections in use count.
69     */

70    public int getTotalConnectionsInUseCount();
71
72    
73    /**
74     * Get the minimum connections for all pools
75     *
76     * @return the minimum connections for all pools
77     */

78    public int getMin();
79
80    public void setMin(int min);
81    public int getMax();
82    public void setMax(int max);
83    public long getBlockingTimeout();
84    public void setBlockingTimeout(long blockTime);
85    public long getIdleTimeout();
86    public void setIdleTimeout(long idleTimeout);
87    public String JavaDoc getCriteria();
88    public void setCriteria(String JavaDoc criteria);
89    public boolean getTrackByTxn();
90    public void setTrackByTxn(boolean trackByTxn);
91    public boolean getNoTxnSeperatePool();
92    public void setNoTxnSeperatePool(boolean noTxnSeperatePool);
93    public void setPrefill(boolean prefill);
94    public boolean getPrefill();
95    public JBossManagedConnectionPoolStatistics getStatistics();
96    public void addSubPool(JBossStatistics subPool);
97    public Collection JavaDoc getSubPools();
98    
99 }
100
Popular Tags