Package com.alibaba.druid.stat
Class DruidDataSourceStatManager
- java.lang.Object
-
- com.alibaba.druid.stat.DruidDataSourceStatManager
-
- All Implemented Interfaces:
DruidDataSourceStatManagerMBean
public class DruidDataSourceStatManager extends Object implements DruidDataSourceStatManagerMBean
-
-
Field Summary
Fields Modifier and Type Field Description static StringSYS_PROP_INSTANCESstatic StringSYS_PROP_REGISTER_SYS_PROPERTY
-
Constructor Summary
Constructors Constructor Description DruidDataSourceStatManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectNameaddDataSource(Object dataSource, String name)static voidclear()CompositeDataSupportgetCompositeData(Object dataSource)TabularDatagetDataSourceList()static CompositeTypegetDruidDataSourceCompositeType()static Set<DataSourceMonitorable>getDruidDataSourceInstances()static DruidDataSourceStatManagergetInstance()static Map<Object,ObjectName>getInstances()longgetResetCount()static booleanisRegisterToSystemProperty()voidlogAndResetDataSource()static voidremoveDataSource(Object dataSource)voidreset()
-
-
-
Field Detail
-
SYS_PROP_INSTANCES
public static final String SYS_PROP_INSTANCES
- See Also:
- Constant Field Values
-
SYS_PROP_REGISTER_SYS_PROPERTY
public static final String SYS_PROP_REGISTER_SYS_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static DruidDataSourceStatManager getInstance()
-
clear
public static void clear()
-
getInstances
public static Map<Object,ObjectName> getInstances()
-
isRegisterToSystemProperty
public static boolean isRegisterToSystemProperty()
-
addDataSource
public static ObjectName addDataSource(Object dataSource, String name)
-
removeDataSource
public static void removeDataSource(Object dataSource)
-
getDruidDataSourceInstances
public static Set<DataSourceMonitorable> getDruidDataSourceInstances()
-
reset
public void reset()
- Specified by:
resetin interfaceDruidDataSourceStatManagerMBean
-
logAndResetDataSource
public void logAndResetDataSource()
-
getResetCount
public long getResetCount()
- Specified by:
getResetCountin interfaceDruidDataSourceStatManagerMBean
-
getDataSourceList
public TabularData getDataSourceList() throws JMException
- Specified by:
getDataSourceListin interfaceDruidDataSourceStatManagerMBean- Throws:
JMException
-
getCompositeData
public CompositeDataSupport getCompositeData(Object dataSource) throws JMException
- Throws:
JMException
-
getDruidDataSourceCompositeType
public static CompositeType getDruidDataSourceCompositeType() throws JMException
- Throws:
JMException
-
-