add the function of getting duird's monitor data form remote server via

jmx.
This commit is contained in:
yunnysunny
2013-03-23 17:11:21 +08:00
parent e5b86e4561
commit cc24af9812
2 changed files with 134 additions and 2 deletions
@@ -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);