mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
monitor support
This commit is contained in:
@@ -48,6 +48,22 @@ public class SpringStat {
|
||||
|
||||
return methodStat;
|
||||
}
|
||||
|
||||
public List<SpringMethodStatValue> getStatList(boolean reset) {
|
||||
List<SpringMethodStatValue> statValueList = new ArrayList<SpringMethodStatValue>(this.methodStats.size());
|
||||
|
||||
for (SpringMethodStat methodStat : this.methodStats.values()) {
|
||||
SpringMethodStatValue statValue = methodStat.getStatValue(reset);
|
||||
|
||||
if (statValue.getRunningCount() == 0 && statValue.getExecuteCount() == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
statValueList.add(statValue);
|
||||
}
|
||||
|
||||
return statValueList;
|
||||
}
|
||||
|
||||
public List<Map<String, Object>> getMethodStatDataList() {
|
||||
List<Map<String, Object>> methodStatDataList = new ArrayList<Map<String, Object>>(this.methodStats.size());
|
||||
|
||||
Reference in New Issue
Block a user