mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
StatFilter refactor
This commit is contained in:
@@ -60,7 +60,8 @@ import com.alibaba.druid.support.logging.LogFactory;
|
||||
public class StatFilter extends FilterEventAdapter implements StatFilterMBean {
|
||||
|
||||
private final static Log LOG = LogFactory.getLog(StatFilter.class);
|
||||
|
||||
public final static String ATTR_NAME_CONNECTION_STAT = "stat.conn";
|
||||
public final static String ATTR_NAME_STATEMENT_STAT = "stat.stmt";
|
||||
public final static String ATTR_UPDATE_COUNT = "stat.updteCount";
|
||||
public final static String ATTR_TRANSACTION = "stat.tx";
|
||||
public final static String ATTR_RESULTSET_CLOSED = "stat.rs.closed";
|
||||
@@ -562,9 +563,6 @@ public class StatFilter extends FilterEventAdapter implements StatFilterMBean {
|
||||
chain.resultSet_close(resultSet);
|
||||
}
|
||||
|
||||
public final static String ATTR_NAME_CONNECTION_STAT = "stat.conn";
|
||||
public final static String ATTR_NAME_STATEMENT_STAT = "stat.stmt";
|
||||
|
||||
public JdbcConnectionStat.Entry getConnectionInfo(ConnectionProxy connection) {
|
||||
JdbcConnectionStat.Entry counter = (JdbcConnectionStat.Entry) connection.getAttributes().get(ATTR_NAME_CONNECTION_STAT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user