public class StatFilter extends FilterEventAdapter implements StatFilterMBean
限定符和类型 | 类和说明 |
---|---|
static class |
StatFilter.Feature |
限定符和类型 | 字段和说明 |
---|---|
static String |
ATTR_NAME_CONNECTION_STAT |
static String |
ATTR_NAME_STATEMENT_STAT |
static String |
ATTR_RESULTSET_CLOSED |
static String |
ATTR_TRANSACTION |
static String |
ATTR_UPDATE_COUNT |
构造器和说明 |
---|
StatFilter() |
connection_connectAfter, connection_connectBefore, connection_createStatement, connection_createStatement, connection_createStatement, connection_prepareCall, connection_prepareCall, connection_prepareCall, connection_prepareStatement, connection_prepareStatement, connection_prepareStatement, connection_prepareStatement, connection_prepareStatement, connection_prepareStatement, preparedStatement_execute, preparedStatement_executeQuery, preparedStatement_executeUpdate, statement_execute, statement_execute, statement_execute, statement_execute, statement_executeBatch, statement_executeQuery, statement_executeUpdate, statement_executeUpdate, statement_executeUpdate, statement_executeUpdate, statement_getGeneratedKeys, statement_getResultSet
callableStatement_getArray, callableStatement_getArray, callableStatement_getBigDecimal, callableStatement_getBigDecimal, callableStatement_getBigDecimal, callableStatement_getBlob, callableStatement_getBlob, callableStatement_getBoolean, callableStatement_getBoolean, callableStatement_getByte, callableStatement_getByte, callableStatement_getBytes, callableStatement_getBytes, callableStatement_getCharacterStream, callableStatement_getCharacterStream, callableStatement_getClob, callableStatement_getClob, callableStatement_getDate, callableStatement_getDate, callableStatement_getDate, callableStatement_getDate, callableStatement_getDouble, callableStatement_getDouble, callableStatement_getFloat, callableStatement_getFloat, callableStatement_getInt, callableStatement_getInt, callableStatement_getLong, callableStatement_getLong, callableStatement_getNCharacterStream, callableStatement_getNCharacterStream, callableStatement_getNClob, callableStatement_getNClob, callableStatement_getNString, callableStatement_getNString, callableStatement_getObject, callableStatement_getObject, callableStatement_getObject, callableStatement_getObject, callableStatement_getRef, callableStatement_getRef, callableStatement_getRowId, callableStatement_getRowId, callableStatement_getShort, callableStatement_getShort, callableStatement_getSQLXML, callableStatement_getSQLXML, callableStatement_getString, callableStatement_getString, callableStatement_getTime, callableStatement_getTime, callableStatement_getTime, callableStatement_getTime, callableStatement_getTimestamp, callableStatement_getTimestamp, callableStatement_getTimestamp, callableStatement_getTimestamp, callableStatement_getURL, callableStatement_getURL, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_setAsciiStream, callableStatement_setAsciiStream, callableStatement_setAsciiStream, callableStatement_setBigDecimal, callableStatement_setBinaryStream, callableStatement_setBinaryStream, callableStatement_setBinaryStream, callableStatement_setBlob, callableStatement_setBlob, callableStatement_setBlob, callableStatement_setBoolean, callableStatement_setByte, callableStatement_setBytes, callableStatement_setCharacterStream, callableStatement_setCharacterStream, callableStatement_setCharacterStream, callableStatement_setClob, callableStatement_setClob, callableStatement_setClob, callableStatement_setDate, callableStatement_setDate, callableStatement_setDouble, callableStatement_setFloat, callableStatement_setInt, callableStatement_setLong, callableStatement_setNCharacterStream, callableStatement_setNCharacterStream, callableStatement_setNClob, callableStatement_setNClob, callableStatement_setNClob, callableStatement_setNString, callableStatement_setNull, callableStatement_setNull, callableStatement_setObject, callableStatement_setObject, callableStatement_setObject, callableStatement_setRowId, callableStatement_setShort, callableStatement_setSQLXML, callableStatement_setString, callableStatement_setTime, callableStatement_setTime, callableStatement_setTimestamp, callableStatement_setTimestamp, callableStatement_setURL, callableStatement_wasNull, clob_free, clob_getAsciiStream, clob_getCharacterStream, clob_getCharacterStream, clob_getSubString, clob_length, clob_position, clob_position, clob_setAsciiStream, clob_setCharacterStream, clob_setString, clob_setString, clob_truncate, connection_clearWarnings, connection_createArrayOf, connection_createBlob, connection_createClob, connection_createNClob, connection_createSQLXML, connection_createStruct, connection_getAutoCommit, connection_getCatalog, connection_getClientInfo, connection_getClientInfo, connection_getHoldability, connection_getMetaData, connection_getTransactionIsolation, connection_getTypeMap, connection_getWarnings, connection_isClosed, connection_isReadOnly, connection_isValid, connection_nativeSQL, connection_releaseSavepoint, connection_setAutoCommit, connection_setCatalog, connection_setClientInfo, connection_setClientInfo, connection_setHoldability, connection_setReadOnly, connection_setSavepoint, connection_setSavepoint, connection_setTransactionIsolation, connection_setTypeMap, isWrapperFor, loadConfig, preparedStatement_addBatch, preparedStatement_clearParameters, preparedStatement_getMetaData, preparedStatement_getParameterMetaData, preparedStatement_setArray, preparedStatement_setAsciiStream, preparedStatement_setAsciiStream, preparedStatement_setAsciiStream, preparedStatement_setBigDecimal, preparedStatement_setBinaryStream, preparedStatement_setBinaryStream, preparedStatement_setBinaryStream, preparedStatement_setBlob, preparedStatement_setBlob, preparedStatement_setBlob, preparedStatement_setBoolean, preparedStatement_setByte, preparedStatement_setBytes, preparedStatement_setCharacterStream, preparedStatement_setCharacterStream, preparedStatement_setCharacterStream, preparedStatement_setClob, preparedStatement_setClob, preparedStatement_setClob, preparedStatement_setDate, preparedStatement_setDate, preparedStatement_setDouble, preparedStatement_setFloat, preparedStatement_setInt, preparedStatement_setLong, preparedStatement_setNCharacterStream, preparedStatement_setNCharacterStream, preparedStatement_setNClob, preparedStatement_setNClob, preparedStatement_setNClob, preparedStatement_setNString, preparedStatement_setNull, preparedStatement_setNull, preparedStatement_setObject, preparedStatement_setObject, preparedStatement_setObject, preparedStatement_setRef, preparedStatement_setRowId, preparedStatement_setShort, preparedStatement_setSQLXML, preparedStatement_setString, preparedStatement_setTime, preparedStatement_setTime, preparedStatement_setTimestamp, preparedStatement_setTimestamp, preparedStatement_setUnicodeStream, preparedStatement_setURL, resultSet_absolute, resultSet_afterLast, resultSet_beforeFirst, resultSet_cancelRowUpdates, resultSet_clearWarnings, resultSet_deleteRow, resultSet_findColumn, resultSet_first, resultSet_getArray, resultSet_getArray, resultSet_getAsciiStream, resultSet_getAsciiStream, resultSet_getBigDecimal, resultSet_getBigDecimal, resultSet_getBigDecimal, resultSet_getBigDecimal, resultSet_getBinaryStream, resultSet_getBinaryStream, resultSet_getBlob, resultSet_getBlob, resultSet_getBoolean, resultSet_getBoolean, resultSet_getByte, resultSet_getByte, resultSet_getBytes, resultSet_getBytes, resultSet_getCharacterStream, resultSet_getCharacterStream, resultSet_getClob, resultSet_getClob, resultSet_getConcurrency, resultSet_getCursorName, resultSet_getDate, resultSet_getDate, resultSet_getDate, resultSet_getDate, resultSet_getDouble, resultSet_getDouble, resultSet_getFetchDirection, resultSet_getFetchSize, resultSet_getFloat, resultSet_getFloat, resultSet_getHoldability, resultSet_getInt, resultSet_getInt, resultSet_getLong, resultSet_getLong, resultSet_getMetaData, resultSet_getNCharacterStream, resultSet_getNCharacterStream, resultSet_getNClob, resultSet_getNClob, resultSet_getNString, resultSet_getNString, resultSet_getObject, resultSet_getObject, resultSet_getObject, resultSet_getObject, resultSet_getRef, resultSet_getRef, resultSet_getRow, resultSet_getRowId, resultSet_getRowId, resultSet_getShort, resultSet_getShort, resultSet_getSQLXML, resultSet_getSQLXML, resultSet_getStatement, resultSet_getString, resultSet_getString, resultSet_getTime, resultSet_getTime, resultSet_getTime, resultSet_getTime, resultSet_getTimestamp, resultSet_getTimestamp, resultSet_getTimestamp, resultSet_getTimestamp, resultSet_getType, resultSet_getUnicodeStream, resultSet_getUnicodeStream, resultSet_getURL, resultSet_getURL, resultSet_getWarnings, resultSet_insertRow, resultSet_isAfterLast, resultSet_isBeforeFirst, resultSet_isClosed, resultSet_isFirst, resultSet_isLast, resultSet_last, resultSet_moveToCurrentRow, resultSet_moveToInsertRow, resultSet_next, resultSet_previous, resultSet_refreshRow, resultSet_relative, resultSet_rowDeleted, resultSet_rowInserted, resultSet_rowUpdated, resultSet_setFetchDirection, resultSet_setFetchSize, resultSet_updateArray, resultSet_updateArray, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateBigDecimal, resultSet_updateBigDecimal, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBoolean, resultSet_updateBoolean, resultSet_updateByte, resultSet_updateByte, resultSet_updateBytes, resultSet_updateBytes, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateClob, resultSet_updateClob, resultSet_updateClob, resultSet_updateClob, resultSet_updateClob, resultSet_updateClob, resultSet_updateDate, resultSet_updateDate, resultSet_updateDouble, resultSet_updateDouble, resultSet_updateFloat, resultSet_updateFloat, resultSet_updateInt, resultSet_updateInt, resultSet_updateLong, resultSet_updateLong, resultSet_updateNCharacterStream, resultSet_updateNCharacterStream, resultSet_updateNCharacterStream, resultSet_updateNCharacterStream, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNString, resultSet_updateNString, resultSet_updateNull, resultSet_updateNull, resultSet_updateObject, resultSet_updateObject, resultSet_updateObject, resultSet_updateObject, resultSet_updateRef, resultSet_updateRef, resultSet_updateRow, resultSet_updateRowId, resultSet_updateRowId, resultSet_updateShort, resultSet_updateShort, resultSet_updateSQLXML, resultSet_updateSQLXML, resultSet_updateString, resultSet_updateString, resultSet_updateTime, resultSet_updateTime, resultSet_updateTimestamp, resultSet_updateTimestamp, resultSet_wasNull, statement_addBatch, statement_cancel, statement_clearBatch, statement_clearWarnings, statement_getConnection, statement_getFetchDirection, statement_getFetchSize, statement_getMaxFieldSize, statement_getMaxRows, statement_getMoreResults, statement_getMoreResults, statement_getQueryTimeout, statement_getResultSetConcurrency, statement_getResultSetHoldability, statement_getResultSetType, statement_getUpdateCount, statement_getWarnings, statement_isClosed, statement_isPoolable, statement_setCursorName, statement_setEscapeProcessing, statement_setFetchDirection, statement_setFetchSize, statement_setMaxFieldSize, statement_setMaxRows, statement_setPoolable, statement_setQueryTimeout, unwrap
public String getDbType()
public void setDbType(String dbType)
public long getSlowSqlMillis()
public boolean isConnectionStackTraceEnable()
isConnectionStackTraceEnable
在接口中 StatFilterMBean
public void setConnectionStackTraceEnable(boolean connectionStackTraceEnable)
setConnectionStackTraceEnable
在接口中 StatFilterMBean
public JdbcDataSourceStat getDataSourceStat()
public void reset()
reset
在接口中 StatFilterMBean
public long getResetCount()
getResetCount
在接口中 StatFilterMBean
public boolean isMergeSql()
public void setMergeSql(boolean mergeSql)
public void init(DataSourceProxy dataSource)
init
在接口中 Filter
init
在类中 FilterAdapter
public void destory()
destory
在接口中 Filter
destory
在类中 FilterAdapter
public ConnectionProxy connection_connect(FilterChain chain, Properties info) throws SQLException
connection_connect
在接口中 Filter
connection_connect
在类中 FilterEventAdapter
SQLException
public void connection_close(FilterChain chain, ConnectionProxy connection) throws SQLException
connection_close
在接口中 Filter
connection_close
在类中 FilterAdapter
SQLException
public void connection_commit(FilterChain chain, ConnectionProxy connection) throws SQLException
connection_commit
在接口中 Filter
connection_commit
在类中 FilterAdapter
SQLException
public void connection_rollback(FilterChain chain, ConnectionProxy connection) throws SQLException
connection_rollback
在接口中 Filter
connection_rollback
在类中 FilterAdapter
SQLException
public void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savepoint) throws SQLException
connection_rollback
在接口中 Filter
connection_rollback
在类中 FilterAdapter
SQLException
public void statementCreateAfter(StatementProxy statement)
public void statementPrepareCallAfter(CallableStatementProxy statement)
public void statementPrepareAfter(PreparedStatementProxy statement)
public void statement_close(FilterChain chain, StatementProxy statement) throws SQLException
statement_close
在接口中 Filter
statement_close
在类中 FilterAdapter
SQLException
public void resultSet_close(FilterChain chain, ResultSetProxy resultSet) throws SQLException
resultSet_close
在接口中 Filter
resultSet_close
在类中 FilterAdapter
SQLException
public JdbcConnectionStat.Entry getConnectionInfo(ConnectionProxy connection)
public JdbcStatementStat.Entry getStatementInfo(StatementProxy statement)
public long getConnectionActiveCount()
getConnectionActiveCount
在接口中 StatFilterMBean
public long getConnectionCloseCount()
getConnectionCloseCount
在接口中 StatFilterMBean
public long getConnectionCommitCount()
getConnectionCommitCount
在接口中 StatFilterMBean
public long getConnectionConnectCount()
getConnectionConnectCount
在接口中 StatFilterMBean
public long getConnectionConnectMillis()
getConnectionConnectMillis
在接口中 StatFilterMBean
public long getConnectionConnectingMax()
getConnectionConnectingMax
在接口中 StatFilterMBean
public long getConnectionRollbackCount()
getConnectionRollbackCount
在接口中 StatFilterMBean
public long getConnectionConnectAliveMillis()
public long getConnectionConnectErrorCount()
public Date getConnectionConnectLastTime()
getConnectionConnectLastTime
在接口中 StatFilterMBean
public long getStatementCloseCount()
getStatementCloseCount
在接口中 StatFilterMBean
public long getStatementCreateCount()
getStatementCreateCount
在接口中 StatFilterMBean
public long getStatementExecuteMillisTotal()
public Date getStatementExecuteErrorLastTime()
public Date getStatementExecuteLastTime()
getStatementExecuteLastTime
在接口中 StatFilterMBean
public long getStatementPrepareCallCount()
getStatementPrepareCallCount
在接口中 StatFilterMBean
public long getStatementPrepareCount()
getStatementPrepareCount
在接口中 StatFilterMBean
public long getStatementExecuteErrorCount()
getStatementExecuteErrorCount
在接口中 StatFilterMBean
public long getStatementExecuteSuccessCount()
public long getResultSetHoldMillisTotal()
getResultSetHoldMillisTotal
在接口中 StatFilterMBean
public long getResultSetFetchRowCount()
getResultSetFetchRowCount
在接口中 StatFilterMBean
public long getResultSetOpenCount()
getResultSetOpenCount
在接口中 StatFilterMBean
public long getResultSetCloseCount()
getResultSetCloseCount
在接口中 StatFilterMBean
public String getConnectionUrl()
getConnectionUrl
在接口中 StatFilterMBean
public JdbcSqlStat createSqlStat(StatementProxy statement, String sql)
public JdbcSqlStat getSqlCounter(String sql)
public JdbcSqlStat getSqlStat(String sql)
public TabularData getSqlList() throws JMException
getSqlList
在接口中 StatFilterMBean
JMException
public static StatFilter getStatFilter(DataSourceProxy dataSource)
public JdbcSqlStat getSqlStat(long id)
public CompositeData getStatementExecuteLastError() throws JMException
getStatementExecuteLastError
在接口中 StatFilterMBean
JMException
public final ConcurrentMap<Long,JdbcConnectionStat.Entry> getConnections()
public TabularData getConnectionList() throws JMException
getConnectionList
在接口中 StatFilterMBean
JMException
public void dataSource_releaseConnection(FilterChain chain, DruidPooledConnection conn) throws SQLException
dataSource_releaseConnection
在接口中 Filter
dataSource_releaseConnection
在类中 FilterAdapter
SQLException
public DruidPooledConnection dataSource_getConnection(FilterChain chain, DruidDataSource dataSource, long maxWaitMillis) throws SQLException
dataSource_getConnection
在接口中 Filter
dataSource_getConnection
在类中 FilterAdapter
SQLException
Copyright © 2012 Alibaba Group. All Rights Reserved.