类 DruidStatManagerFacade
java.lang.Object
com.alibaba.druid.stat.DruidStatManagerFacade
监控相关的对外数据暴露
1. 为了支持jndi数据源本类内部调用druid相关对象均需要反射调用,返回值也应该是Object,List<Object>,Map<String,Object>等无关于druid的类型 2. 对外暴露的public方法都应该先调用init(),应该有更好的方式,暂时没想到
- 作者:
- sandzhang[sandzhangtoo@gmail.com]
-
方法概要
修饰符和类型方法说明getDataSourceStatDataList(boolean includeSqlList) getDruidDataSourceById(Integer identity) static DruidStatManagerFacadelonggetSqlStatDataList(Integer dataSourceId) getSqlStatDataList(Object datasource) getWallStatMap(Integer dataSourceId) booleanvoidstatic MapmergeWallStat(Map mapA, Map mapB) static MapmergWallStat(Map mapA, Map mapB) 已过时。voidresetAll()voidvoidvoidsetResetEnable(boolean resetEnable)
-
方法详细资料
-
getInstance
-
getDruidDataSourceByName
-
resetDataSourceStat
public void resetDataSourceStat() -
resetSqlStat
public void resetSqlStat() -
resetAll
public void resetAll() -
logAndResetDataSource
public void logAndResetDataSource() -
isResetEnable
public boolean isResetEnable() -
setResetEnable
public void setResetEnable(boolean resetEnable) -
getSqlStatById
-
getDataSourceStatData
-
getDruidDataSourceById
-
getSqlStatDataList
-
getWallStatMap
-
mergWallStat
已过时。Merges two wall stat maps into a single map.- 参数:
mapA- the first wall stat map to be mergedmapB- the second wall stat map to be merged- 返回:
- a new map that contains the merged wall stats from mapA and mapB
-
mergeWallStat
-
getSqlStatDataList
-
getSqlStatData
-
getDataSourceStatDataList
-
getDataSourceStatDataList
-
getActiveConnStackTraceList
-
returnJSONBasicStat
-
getResetCount
public long getResetCount() -
getPoolingConnectionInfoByDataSourceId
-
getActiveConnectionStackTraceByDataSourceId
-