diff --git a/Bench4Q-Monitor-Sigar/src/main/java/org/bench4q/monitor/api/MainController.java b/Bench4Q-Monitor-Sigar/src/main/java/org/bench4q/monitor/api/MainController.java index 667da287..af9bbebe 100644 --- a/Bench4Q-Monitor-Sigar/src/main/java/org/bench4q/monitor/api/MainController.java +++ b/Bench4Q-Monitor-Sigar/src/main/java/org/bench4q/monitor/api/MainController.java @@ -1,6 +1,7 @@ package org.bench4q.monitor.api; import java.util.HashMap; +import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; @@ -30,8 +31,8 @@ public class MainController { @RequestMapping(value = "/limitableFields") @ResponseBody - public LimitableFieldsModel limitableFields() throws SigarException { - return new LimitableFieldsModel(); + public List limitableFields() throws SigarException { + return new LimitableFieldsModel().getFields(); } @RequestMapping(value = "/submitLimit/{testPlanId}", method = RequestMethod.PUT) diff --git a/Bench4Q-Monitor-Sigar/src/main/java/org/bench4q/monitor/model/LimitableFieldsModel.java b/Bench4Q-Monitor-Sigar/src/main/java/org/bench4q/monitor/model/LimitableFieldsModel.java index fb4c521e..a4833b64 100644 --- a/Bench4Q-Monitor-Sigar/src/main/java/org/bench4q/monitor/model/LimitableFieldsModel.java +++ b/Bench4Q-Monitor-Sigar/src/main/java/org/bench4q/monitor/model/LimitableFieldsModel.java @@ -55,5 +55,8 @@ public class LimitableFieldsModel { this.fieldsParent = fieldsParent; } - + public static void main(String args[]) throws SigarException{ + LimitableFieldsModel limitableFieldsModel = new LimitableFieldsModel(); + System.out.println(limitableFieldsModel.getFields()); + } }