public class DruidDataSourceStatManager extends Object implements DruidDataSourceStatManagerMBean
Type | Property and Description |
---|---|
static boolean |
isRegisterToSystem
Gets the value of the property registerToSystemProperty.
|
Modifier and Type | Field and Description |
---|---|
static String |
SYS_PROP_INSTANCES |
static String |
SYS_PROP_REGISTER_SYS_PROPERTY |
Constructor and Description |
---|
DruidDataSourceStatManager() |
Modifier and Type | Method and Description |
---|---|
static ObjectName |
addDataSource(Object dataSource,
String name) |
static void |
clear() |
CompositeDataSupport |
getCompositeData(Object dataSource) |
TabularData |
getDataSourceList() |
static CompositeType |
getDruidDataSourceCompositeType() |
static Set<DruidDataSource> |
getDruidDataSourceInstances() |
static DruidDataSourceStatManager |
getInstance() |
static Map<Object,ObjectName> |
getInstances() |
long |
getResetCount() |
static boolean |
isRegisterToSystemProperty()
Gets the value of the property registerToSystemProperty.
|
void |
logAndResetDataSource() |
static void |
removeDataSource(Object dataSource) |
void |
reset() |
public static boolean isRegisterToSystemProperty
public static final String SYS_PROP_INSTANCES
public static final String SYS_PROP_REGISTER_SYS_PROPERTY
public static DruidDataSourceStatManager getInstance()
public static void clear()
public static Map<Object,ObjectName> getInstances()
public static boolean isRegisterToSystemProperty()
public static ObjectName addDataSource(Object dataSource, String name)
public static void removeDataSource(Object dataSource)
public static Set<DruidDataSource> getDruidDataSourceInstances()
public void reset()
reset
in interface DruidDataSourceStatManagerMBean
public void logAndResetDataSource()
public long getResetCount()
getResetCount
in interface DruidDataSourceStatManagerMBean
public TabularData getDataSourceList() throws JMException
getDataSourceList
in interface DruidDataSourceStatManagerMBean
JMException
public CompositeDataSupport getCompositeData(Object dataSource) throws JMException
JMException
public static CompositeType getDruidDataSourceCompositeType() throws JMException
JMException
Copyright © 2013–2017 Alibaba Group. All rights reserved.