com.alibaba.druid.stat
Class DruidStatManagerFacade

java.lang.Object
  extended by com.alibaba.druid.stat.DruidStatManagerFacade

public final class DruidStatManagerFacade
extends Object

监控相关的对外数据暴露

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

Author:
sandzhang

Method Summary
 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)
           
 boolean isResetEnable()
           
 void resetAll()
           
 void resetDataSourceStat()
           
 void resetSqlStat()
           
 Map<String,Object> returnJSONBasicStat()
           
 void setResetEnable(boolean resetEnable)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)

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 © 2012 Alibaba Group. All Rights Reserved.