mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
testcase
This commit is contained in:
@@ -1,157 +1,157 @@
|
||||
package com.alibaba.druid.pool;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface DruidAbstractDataSourceMBean {
|
||||
|
||||
int getLoginTimeout();
|
||||
|
||||
String getDbType();
|
||||
|
||||
String getName();
|
||||
|
||||
int getInitialSize();
|
||||
|
||||
String getUsername();
|
||||
|
||||
String getUrl();
|
||||
|
||||
String getDriverClassName();
|
||||
|
||||
long getConnectCount();
|
||||
|
||||
long getCloseCount();
|
||||
|
||||
long getConnectErrorCount();
|
||||
|
||||
int getPoolingCount();
|
||||
|
||||
long getRecycleCount();
|
||||
|
||||
int getActiveCount();
|
||||
|
||||
long getCreateCount();
|
||||
|
||||
long getDestroyCount();
|
||||
|
||||
long getCreateTimespanMillis();
|
||||
|
||||
long getCommitCount();
|
||||
|
||||
long getRollbackCount();
|
||||
|
||||
long getStartTransactionCount();
|
||||
|
||||
int getQueryTimeout();
|
||||
|
||||
int getTransactionQueryTimeout();
|
||||
|
||||
String getValidationQuery();
|
||||
|
||||
int getValidationQueryTimeout();
|
||||
|
||||
int getMaxWaitThreadCount();
|
||||
|
||||
long getTimeBetweenEvictionRunsMillis();
|
||||
|
||||
long getMinEvictableIdleTimeMillis();
|
||||
|
||||
boolean isRemoveAbandoned();
|
||||
|
||||
long getRemoveAbandonedTimeoutMillis();
|
||||
|
||||
List<String> getActiveConnectionStackTrace();
|
||||
|
||||
List<String> getFilterClassNames();
|
||||
|
||||
boolean isTestOnBorrow();
|
||||
|
||||
void setTestOnBorrow(boolean testOnBorrow);
|
||||
|
||||
boolean isTestOnReturn();
|
||||
|
||||
boolean isTestWhileIdle();
|
||||
|
||||
void setTestWhileIdle(boolean testWhileIdle);
|
||||
|
||||
boolean isDefaultAutoCommit();
|
||||
|
||||
Boolean getDefaultReadOnly();
|
||||
|
||||
Integer getDefaultTransactionIsolation();
|
||||
|
||||
String getDefaultCatalog();
|
||||
|
||||
boolean isPoolPreparedStatements();
|
||||
|
||||
boolean isSharePreparedStatements();
|
||||
|
||||
long getMaxWait();
|
||||
|
||||
int getMinIdle();
|
||||
|
||||
int getMaxIdle();
|
||||
|
||||
long getCreateErrorCount();
|
||||
|
||||
int getMaxActive();
|
||||
|
||||
long getTimeBetweenConnectErrorMillis();
|
||||
|
||||
int getMaxOpenPreparedStatements();
|
||||
|
||||
long getRemoveAbandonedCount();
|
||||
|
||||
boolean isLogAbandoned();
|
||||
|
||||
void setLogAbandoned(boolean logAbandoned);
|
||||
|
||||
long getDupCloseCount();
|
||||
|
||||
boolean isBreakAfterAcquireFailure();
|
||||
|
||||
int getConnectionErrorRetryAttempts();
|
||||
|
||||
int getMaxPoolPreparedStatementPerConnectionSize();
|
||||
|
||||
void setMaxPoolPreparedStatementPerConnectionSize(int maxPoolPreparedStatementPerConnectionSize);
|
||||
|
||||
String getProperties();
|
||||
|
||||
int getRawDriverMinorVersion();
|
||||
|
||||
int getRawDriverMajorVersion();
|
||||
|
||||
Date getCreatedTime();
|
||||
|
||||
String getValidConnectionCheckerClassName();
|
||||
|
||||
long[] getTransactionHistogramValues();
|
||||
|
||||
void setTransactionThresholdMillis(long transactionThresholdMillis);
|
||||
|
||||
long getTransactionThresholdMillis();
|
||||
|
||||
long getPreparedStatementCount();
|
||||
|
||||
long getClosedPreparedStatementCount();
|
||||
|
||||
long getCachedPreparedStatementCount();
|
||||
|
||||
long getCachedPreparedStatementDeleteCount();
|
||||
|
||||
long getCachedPreparedStatementAccessCount();
|
||||
|
||||
long getCachedPreparedStatementMissCount();
|
||||
|
||||
long getCachedPreparedStatementHitCount();
|
||||
|
||||
boolean isUseOracleImplicitCache();
|
||||
|
||||
void setUseOracleImplicitCache(boolean useOracleImplicitCache);
|
||||
|
||||
int getDriverMajorVersion();
|
||||
|
||||
int getDriverMinorVersion();
|
||||
}
|
||||
package com.alibaba.druid.pool;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface DruidAbstractDataSourceMBean {
|
||||
|
||||
int getLoginTimeout();
|
||||
|
||||
String getDbType();
|
||||
|
||||
String getName();
|
||||
|
||||
int getInitialSize();
|
||||
|
||||
String getUsername();
|
||||
|
||||
String getUrl();
|
||||
|
||||
String getDriverClassName();
|
||||
|
||||
long getConnectCount();
|
||||
|
||||
long getCloseCount();
|
||||
|
||||
long getConnectErrorCount();
|
||||
|
||||
int getPoolingCount();
|
||||
|
||||
long getRecycleCount();
|
||||
|
||||
int getActiveCount();
|
||||
|
||||
long getCreateCount();
|
||||
|
||||
long getDestroyCount();
|
||||
|
||||
long getCreateTimespanMillis();
|
||||
|
||||
long getCommitCount();
|
||||
|
||||
long getRollbackCount();
|
||||
|
||||
long getStartTransactionCount();
|
||||
|
||||
int getQueryTimeout();
|
||||
|
||||
int getTransactionQueryTimeout();
|
||||
|
||||
String getValidationQuery();
|
||||
|
||||
int getValidationQueryTimeout();
|
||||
|
||||
int getMaxWaitThreadCount();
|
||||
|
||||
long getTimeBetweenEvictionRunsMillis();
|
||||
|
||||
long getMinEvictableIdleTimeMillis();
|
||||
|
||||
boolean isRemoveAbandoned();
|
||||
|
||||
long getRemoveAbandonedTimeoutMillis();
|
||||
|
||||
List<String> getActiveConnectionStackTrace();
|
||||
|
||||
List<String> getFilterClassNames();
|
||||
|
||||
boolean isTestOnBorrow();
|
||||
|
||||
void setTestOnBorrow(boolean testOnBorrow);
|
||||
|
||||
boolean isTestOnReturn();
|
||||
|
||||
boolean isTestWhileIdle();
|
||||
|
||||
void setTestWhileIdle(boolean testWhileIdle);
|
||||
|
||||
boolean isDefaultAutoCommit();
|
||||
|
||||
Boolean getDefaultReadOnly();
|
||||
|
||||
Integer getDefaultTransactionIsolation();
|
||||
|
||||
String getDefaultCatalog();
|
||||
|
||||
boolean isPoolPreparedStatements();
|
||||
|
||||
boolean isSharePreparedStatements();
|
||||
|
||||
long getMaxWait();
|
||||
|
||||
int getMinIdle();
|
||||
|
||||
int getMaxIdle();
|
||||
|
||||
long getCreateErrorCount();
|
||||
|
||||
int getMaxActive();
|
||||
|
||||
long getTimeBetweenConnectErrorMillis();
|
||||
|
||||
int getMaxOpenPreparedStatements();
|
||||
|
||||
long getRemoveAbandonedCount();
|
||||
|
||||
boolean isLogAbandoned();
|
||||
|
||||
void setLogAbandoned(boolean logAbandoned);
|
||||
|
||||
long getDupCloseCount();
|
||||
|
||||
boolean isBreakAfterAcquireFailure();
|
||||
|
||||
int getConnectionErrorRetryAttempts();
|
||||
|
||||
int getMaxPoolPreparedStatementPerConnectionSize();
|
||||
|
||||
void setMaxPoolPreparedStatementPerConnectionSize(int maxPoolPreparedStatementPerConnectionSize);
|
||||
|
||||
String getProperties();
|
||||
|
||||
int getRawDriverMinorVersion();
|
||||
|
||||
int getRawDriverMajorVersion();
|
||||
|
||||
Date getCreatedTime();
|
||||
|
||||
String getValidConnectionCheckerClassName();
|
||||
|
||||
long[] getTransactionHistogramValues();
|
||||
|
||||
void setTransactionThresholdMillis(long transactionThresholdMillis);
|
||||
|
||||
long getTransactionThresholdMillis();
|
||||
|
||||
long getPreparedStatementCount();
|
||||
|
||||
long getClosedPreparedStatementCount();
|
||||
|
||||
long getCachedPreparedStatementCount();
|
||||
|
||||
long getCachedPreparedStatementDeleteCount();
|
||||
|
||||
long getCachedPreparedStatementAccessCount();
|
||||
|
||||
long getCachedPreparedStatementMissCount();
|
||||
|
||||
long getCachedPreparedStatementHitCount();
|
||||
|
||||
boolean isUseOracleImplicitCache();
|
||||
|
||||
void setUseOracleImplicitCache(boolean useOracleImplicitCache);
|
||||
|
||||
int getDriverMajorVersion();
|
||||
|
||||
int getDriverMinorVersion();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user