1 22 23 24 package com.mchange.v2.c3p0.management; 25 26 import java.sql.SQLException ; 27 import java.util.Collection ; 28 29 public interface PooledDataSourceManagerMBean 30 { 31 public String getIdentityToken(); 32 public String getDataSourceName(); 33 public void setDataSourceName(String dataSourceName); 34 public int getNumConnectionsDefaultUser() throws SQLException ; 35 public int getNumIdleConnectionsDefaultUser() throws SQLException ; 36 public int getNumBusyConnectionsDefaultUser() throws SQLException ; 37 public int getNumUnclosedOrphanedConnectionsDefaultUser() throws SQLException ; 38 public float getEffectivePropertyCycleDefaultUser() throws SQLException ; 39 public void softResetDefaultUser() throws SQLException ; 40 public int getNumConnections(String username, String password) throws SQLException ; 41 public int getNumIdleConnections(String username, String password) throws SQLException ; 42 public int getNumBusyConnections(String username, String password) throws SQLException ; 43 public int getNumUnclosedOrphanedConnections(String username, String password) throws SQLException ; 44 public float getEffectivePropertyCycle(String username, String password) throws SQLException ; 45 public void softReset(String username, String password) throws SQLException ; 46 public int getNumBusyConnectionsAllUsers() throws SQLException ; 47 public int getNumIdleConnectionsAllUsers() throws SQLException ; 48 public int getNumConnectionsAllUsers() throws SQLException ; 49 public int getNumUnclosedOrphanedConnectionsAllUsers() throws SQLException ; 50 public int getThreadPoolSize() throws SQLException ; 51 public int getThreadPoolNumActiveThreads() throws SQLException ; 52 public int getThreadPoolNumIdleThreads() throws SQLException ; 53 public int getThreadPoolNumTasksPending() throws SQLException ; 54 public String sampleThreadPoolStackTraces() throws SQLException ; 55 public String sampleThreadPoolStatus() throws SQLException ; 56 public void softResetAllUsers() throws SQLException ; 57 public int getNumUserPools() throws SQLException ; 58 public Collection getAllUsers() throws SQLException ; 59 public void hardReset() throws SQLException ; 60 public void close() throws SQLException ; 61 } | Popular Tags |