Package com.alibaba.druid.stat
Class DruidStatManagerFacade
java.lang.Object
com.alibaba.druid.stat.DruidStatManagerFacade
监控相关的对外数据暴露
1. 为了支持jndi数据源本类内部调用druid相关对象均需要反射调用,返回值也应该是Object,List<Object>,Map<String,Object>等无关于druid的类型 2. 对外暴露的public方法都应该先调用init(),应该有更好的方式,暂时没想到
- Author:
- sandzhang[[email protected]]
-
Method Summary
Modifier and TypeMethodDescriptiongetDataSourceStatDataList
(boolean includeSqlList) getDruidDataSourceById
(Integer identity) static DruidStatManagerFacade
long
getSqlStatDataList
(Integer dataSourceId) getSqlStatDataList
(Object datasource) getWallStatMap
(Integer dataSourceId) boolean
void
static Map
mergeWallStat
(Map mapA, Map mapB) static Map
mergWallStat
(Map mapA, Map mapB) Deprecated.void
resetAll()
void
void
void
setResetEnable
(boolean resetEnable)
-
Method Details
-
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
Deprecated.- Returns:
-
mergeWallStat
-
getSqlStatDataList
-
getSqlStatData
-
getDataSourceStatDataList
-
getDataSourceStatDataList
-
getActiveConnStackTraceList
-
returnJSONBasicStat
-
getResetCount
public long getResetCount() -
getPoolingConnectionInfoByDataSourceId
-
getActiveConnectionStackTraceByDataSourceId
-