Package com.alibaba.druid.util
Class DruidDataSourceUtils
- java.lang.Object
-
- com.alibaba.druid.util.DruidDataSourceUtils
-
public class DruidDataSourceUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description DruidDataSourceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigFromProperties(DruidDataSource druidDataSource, Properties properties)static List<String>getActiveConnectionStackTrace(Object druidDataSource)static longgetID(Object druidDataSource)static StringgetName(Object druidDataSource)static ObjectNamegetObjectName(Object druidDataSource)static List<Map<String,Object>>getPoolingConnectionInfo(Object druidDataSource)static IntegergetPropertyInt(Properties properties, String key)static ObjectgetSqlStat(Object druidDataSource, int sqlId)static MapgetSqlStatMap(Object druidDataSource)static Map<String,Object>getStatData(Object druidDataSource)static Map<String,Object>getStatDataForMBean(Object druidDataSource)static StringgetUrl(Object druidDataSource)static Map<String,Object>getWallStatMap(Object druidDataSource)static booleanisRemoveAbandoned(Object druidDataSource)
-
-
-
Method Detail
-
getID
public static long getID(Object druidDataSource)
-
getObjectName
public static ObjectName getObjectName(Object druidDataSource)
-
isRemoveAbandoned
public static boolean isRemoveAbandoned(Object druidDataSource)
-
getPoolingConnectionInfo
public static List<Map<String,Object>> getPoolingConnectionInfo(Object druidDataSource)
-
getActiveConnectionStackTrace
public static List<String> getActiveConnectionStackTrace(Object druidDataSource)
-
getPropertyInt
public static Integer getPropertyInt(Properties properties, String key)
-
configFromProperties
public static void configFromProperties(DruidDataSource druidDataSource, Properties properties)
-
-