com.alibaba.druid.stat
类 DruidStatManagerFacade

java.lang.Object
  继承者 com.alibaba.druid.stat.DruidStatManagerFacade

public final class DruidStatManagerFacade
extends Object

监控相关的对外数据暴露

 1. 为了支持jndi数据源本类内部调用druid相关对象均需要反射调用,返回值也应该是Object,List,Map等无关于druid的类型
 2. 对外暴露的public方法都应该先调用init(),应该有更好的方式,暂时没想到
 

作者:
sandzhang

方法摘要
 List<String> getActiveConnectionStackTraceByDataSourceId(Integer id)
           
 List<List<String>> getActiveConnStackTraceList()
           
 Map<String,Object> getDataSourceStatData(Integer id)
           
 List<Map<String,Object>> getDataSourceStatDataList()
           
 List<Map<String,Object>> getDataSourceStatDataList(boolean includeSqlList)
           
 Object getDruidDataSourceById(Integer identity)
           
 Object getDruidDataSourceByName(String name)
           
static DruidStatManagerFacade getInstance()
           
 List<Map<String,Object>> getPoolingConnectionInfoByDataSourceId(Integer id)
           
 long getResetCount()
           
 Object getSqlStatById(Integer id)
           
 Map<String,Object> getSqlStatData(Integer id)
           
 List<Map<String,Object>> getSqlStatDataList(Integer dataSourceId)
           
 List<Map<String,Object>> getSqlStatDataList(Object datasource)
           
 Map<String,Object> getWallStatMap(Integer dataSourceId)
           
 boolean isResetEnable()
           
static Map mergWallStat(Map mapA, Map mapB)
           
 void resetAll()
           
 void resetDataSourceStat()
           
 void resetSqlStat()
           
 Map<String,Object> returnJSONBasicStat()
           
 void setResetEnable(boolean resetEnable)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getInstance

public static DruidStatManagerFacade getInstance()

getDruidDataSourceByName

public Object getDruidDataSourceByName(String name)

resetDataSourceStat

public void resetDataSourceStat()

resetSqlStat

public void resetSqlStat()

resetAll

public void resetAll()

isResetEnable

public boolean isResetEnable()

setResetEnable

public void setResetEnable(boolean resetEnable)

getSqlStatById

public Object getSqlStatById(Integer id)

getDataSourceStatData

public Map<String,Object> getDataSourceStatData(Integer id)

getDruidDataSourceById

public Object getDruidDataSourceById(Integer identity)

getSqlStatDataList

public List<Map<String,Object>> getSqlStatDataList(Integer dataSourceId)

getWallStatMap

public Map<String,Object> getWallStatMap(Integer dataSourceId)

mergWallStat

public static Map mergWallStat(Map mapA,
                               Map mapB)

getSqlStatDataList

public List<Map<String,Object>> getSqlStatDataList(Object datasource)

getSqlStatData

public Map<String,Object> getSqlStatData(Integer id)

getDataSourceStatDataList

public List<Map<String,Object>> getDataSourceStatDataList()

getDataSourceStatDataList

public List<Map<String,Object>> getDataSourceStatDataList(boolean includeSqlList)

getActiveConnStackTraceList

public List<List<String>> getActiveConnStackTraceList()

returnJSONBasicStat

public Map<String,Object> returnJSONBasicStat()

getResetCount

public long getResetCount()

getPoolingConnectionInfoByDataSourceId

public List<Map<String,Object>> getPoolingConnectionInfoByDataSourceId(Integer id)

getActiveConnectionStackTraceByDataSourceId

public List<String> getActiveConnectionStackTraceByDataSourceId(Integer id)


Copyright © 2013-2014 Alibaba Group. All Rights Reserved.