1 22 23 24 package com.mchange.v2.c3p0; 25 26 import java.sql.SQLException ; 27 import javax.sql.DataSource ; 28 import java.util.Collection ; 29 30 112 public interface PooledDataSource extends DataSource 113 { 114 public String getIdentityToken(); 115 public String getDataSourceName(); 116 public void setDataSourceName(String dataSourceName); 117 118 119 public int getNumConnections() throws SQLException ; 120 121 122 public int getNumIdleConnections() throws SQLException ; 123 124 125 public int getNumBusyConnections() throws SQLException ; 126 127 128 public int getNumUnclosedOrphanedConnections() throws SQLException ; 129 130 public int getNumConnectionsDefaultUser() throws SQLException ; 131 public int getNumIdleConnectionsDefaultUser() throws SQLException ; 132 public int getNumBusyConnectionsDefaultUser() throws SQLException ; 133 public int getNumUnclosedOrphanedConnectionsDefaultUser() throws SQLException ; 134 public int getStatementCacheNumStatementsDefaultUser() throws SQLException ; 135 public int getStatementCacheNumCheckedOutDefaultUser() throws SQLException ; 136 public int getStatementCacheNumConnectionsWithCachedStatementsDefaultUser() throws SQLException ; 137 public long getStartTimeMillisDefaultUser() throws SQLException ; 138 public long getUpTimeMillisDefaultUser() throws SQLException ; 139 public long getNumFailedCheckinsDefaultUser() throws SQLException ; 140 public long getNumFailedCheckoutsDefaultUser() throws SQLException ; 141 public long getNumFailedIdleTestsDefaultUser() throws SQLException ; 142 public float getEffectivePropertyCycleDefaultUser() throws SQLException ; 143 public int getNumThreadsAwaitingCheckoutDefaultUser() throws SQLException ; 144 145 153 public void softResetDefaultUser() throws SQLException ; 154 155 public int getNumConnections(String username, String password) throws SQLException ; 156 public int getNumIdleConnections(String username, String password) throws SQLException ; 157 public int getNumBusyConnections(String username, String password) throws SQLException ; 158 public int getNumUnclosedOrphanedConnections(String username, String password) throws SQLException ; 159 public int getStatementCacheNumStatements(String username, String password) throws SQLException ; 160 public int getStatementCacheNumCheckedOut(String username, String password) throws SQLException ; 161 public int getStatementCacheNumConnectionsWithCachedStatements(String username, String password) throws SQLException ; 162 public float getEffectivePropertyCycle(String username, String password) throws SQLException ; 163 public int getNumThreadsAwaitingCheckout(String username, String password) throws SQLException ; 164 165 173 public void softReset(String username, String password) throws SQLException ; 174 175 public int getNumBusyConnectionsAllUsers() throws SQLException ; 176 public int getNumIdleConnectionsAllUsers() throws SQLException ; 177 public int getNumConnectionsAllUsers() throws SQLException ; 178 public int getNumUnclosedOrphanedConnectionsAllUsers() throws SQLException ; 179 180 public int getStatementCacheNumStatementsAllUsers() throws SQLException ; 181 public int getStatementCacheNumCheckedOutStatementsAllUsers() throws SQLException ; 182 public int getStatementCacheNumConnectionsWithCachedStatementsAllUsers() throws SQLException ; 183 184 public int getThreadPoolSize() throws SQLException ; 185 public int getThreadPoolNumActiveThreads() throws SQLException ; 186 public int getThreadPoolNumIdleThreads() throws SQLException ; 187 public int getThreadPoolNumTasksPending() throws SQLException ; 188 189 public String sampleThreadPoolStackTraces() throws SQLException ; 190 public String sampleThreadPoolStatus() throws SQLException ; 191 192 public String sampleStatementCacheStatusDefaultUser() throws SQLException ; 193 public String sampleStatementCacheStatus(String username, String password) throws SQLException ; 194 195 public Throwable getLastAcquisitionFailureDefaultUser() throws SQLException ; 196 public Throwable getLastCheckinFailureDefaultUser() throws SQLException ; 197 public Throwable getLastCheckoutFailureDefaultUser() throws SQLException ; 198 public Throwable getLastIdleTestFailureDefaultUser() throws SQLException ; 199 public Throwable getLastConnectionTestFailureDefaultUser() throws SQLException ; 200 201 public Throwable getLastAcquisitionFailure(String username, String password) throws SQLException ; 202 public Throwable getLastCheckinFailure(String username, String password) throws SQLException ; 203 public Throwable getLastCheckoutFailure(String username, String password) throws SQLException ; 204 public Throwable getLastIdleTestFailure(String username, String password) throws SQLException ; 205 public Throwable getLastConnectionTestFailure(String username, String password) throws SQLException ; 206 207 public String sampleLastAcquisitionFailureStackTraceDefaultUser() throws SQLException ; 208 public String sampleLastCheckinFailureStackTraceDefaultUser() throws SQLException ; 209 public String sampleLastCheckoutFailureStackTraceDefaultUser() throws SQLException ; 210 public String sampleLastIdleTestFailureStackTraceDefaultUser() throws SQLException ; 211 public String sampleLastConnectionTestFailureStackTraceDefaultUser() throws SQLException ; 212 213 public String sampleLastAcquisitionFailureStackTrace(String username, String password) throws SQLException ; 214 public String sampleLastCheckinFailureStackTrace(String username, String password) throws SQLException ; 215 public String sampleLastCheckoutFailureStackTrace(String username, String password) throws SQLException ; 216 public String sampleLastIdleTestFailureStackTrace(String username, String password) throws SQLException ; 217 public String sampleLastConnectionTestFailureStackTrace(String username, String password) throws SQLException ; 218 219 227 public void softResetAllUsers() throws SQLException ; 228 229 public int getNumUserPools() throws SQLException ; 230 public int getNumHelperThreads() throws SQLException ; 231 232 public Collection getAllUsers() throws SQLException ; 233 234 240 public void hardReset() throws SQLException ; 241 242 257 public void close() throws SQLException ; 258 259 282 public void close(boolean force_destory) throws SQLException ; 283 } 284 | Popular Tags |