mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
enhance mock driver
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.alibaba.druid.mock;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
|
||||
public interface MockDriverMBean {
|
||||
long getConnectionCloseCount();
|
||||
|
||||
int getMajorVersion();
|
||||
|
||||
int getMinorVersion();
|
||||
|
||||
boolean jdbcCompliant();
|
||||
|
||||
boolean acceptsURL(String url) throws SQLException;
|
||||
|
||||
boolean isLogExecuteQueryEnable();
|
||||
|
||||
void setLogExecuteQueryEnable(boolean logExecuteQueryEnable);
|
||||
|
||||
long getIdleTimeCount();
|
||||
|
||||
void setIdleTimeCount(long idleTimeCount);
|
||||
|
||||
void closeAllConnections() throws SQLException;
|
||||
|
||||
int getConnectionsSize();
|
||||
}
|
||||
Reference in New Issue
Block a user