mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add WebSessionStat support
This commit is contained in:
@@ -234,7 +234,7 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
|
||||
public CompositeDataSupport getCompositeData(Object dataSource) throws JMException {
|
||||
CompositeType rowType = getDruidDataSourceCompositeType();
|
||||
|
||||
Map<String, Object> map = DruidDataSourceUtils.getStatData(dataSource);
|
||||
Map<String, Object> map = DruidDataSourceUtils.getStatDataForMBean(dataSource);
|
||||
|
||||
return new CompositeDataSupport(rowType, map);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ function ajaxResponseForDataSourceSqlStatInfo() {
|
||||
var sqlStat = sqlStatList[i];
|
||||
var newRow = sqlStatTable.insertRow(-1);
|
||||
newRow.insertCell(-1).innerHTML = i+1;
|
||||
newRow.insertCell(-1).innerHTML = subSqlString(sqlStat.URI, 25);
|
||||
newRow.insertCell(-1).innerHTML = subSqlString(sqlStat.URI, 64);
|
||||
newRow.insertCell(-1).innerHTML = sqlStat.RequestCount;
|
||||
newRow.insertCell(-1).innerHTML = sqlStat.RunningCount;
|
||||
newRow.insertCell(-1).innerHTML = sqlStat.ConcurrentMax;
|
||||
|
||||
Reference in New Issue
Block a user