001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999-2004 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: Pool.java 7968 2006-02-02 15:04:23Z danesa $
023: * --------------------------------------------------------------------------
024: */package org.objectweb.jonas.dbm;
025:
026: import java.sql.SQLException;
027:
028: public interface Pool {
029:
030: public int getPoolMin();
031:
032: public void setPoolMin(int min);
033:
034: public int getPoolMax();
035:
036: public void setPoolMax(int max);
037:
038: public int getMaxAge();
039:
040: public long getMaxAgeMilli();
041:
042: public void setMaxAge(int mn);
043:
044: public int getMaxOpenTime();
045:
046: public long getMaxOpenTimeMilli();
047:
048: public void setMaxOpenTime(int mn);
049:
050: public int getMaxWaitTime();
051:
052: public void setMaxWaitTime(int sec);
053:
054: public int getMaxWaiters();
055:
056: public void setMaxWaiters(int nb);
057:
058: public int getSamplingPeriod();
059:
060: public void setSamplingPeriod(int sec);
061:
062: public int getCheckLevel();
063:
064: public void setCheckLevel(int level);
065:
066: public String getTestStatement();
067:
068: public void setTestStatement(String s);
069:
070: public String checkConnection(String s) throws SQLException;
071:
072: public int getBusyMaxRecent();
073:
074: public int getBusyMinRecent();
075:
076: public int getCurrentWaiters();
077:
078: public int getOpenedCount();
079:
080: public int getConnectionFailures();
081:
082: public int getConnectionLeaks();
083:
084: public int getServedOpen();
085:
086: public int getRejectedFull();
087:
088: public int getRejectedTimeout();
089:
090: public int getRejectedOther();
091:
092: public int getRejectedOpen();
093:
094: public int getWaitersHigh();
095:
096: public int getWaitersHighRecent();
097:
098: public int getWaiterCount();
099:
100: public long getWaitingTime();
101:
102: public long getWaitingHigh();
103:
104: public long getWaitingHighRecent();
105:
106: public int getCurrentOpened();
107:
108: public int getCurrentBusy();
109:
110: public int getCurrentInTx();
111: }
|