mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add the function of getting duird's monitor data form remote server via
jmx.
This commit is contained in:
@@ -299,7 +299,7 @@ public final class DruidStatService implements DruidStatServiceMBean {
|
||||
return returnJSONResult(RESULT_CODE_SUCCESS, result);
|
||||
}
|
||||
|
||||
private String returnJSONResult(int resultCode, Object content) {
|
||||
public static String returnJSONResult(int resultCode, Object content) {
|
||||
Map<String, Object> dataMap = new LinkedHashMap<String, Object>();
|
||||
dataMap.put("ResultCode", resultCode);
|
||||
dataMap.put("Content", content);
|
||||
|
||||
Reference in New Issue
Block a user