Browse Source

远程环境时,自动同步插件的运行状态

master
juhaoyu 8 years ago
parent
commit
8d1239824c
  1. 20
      designer_base/src/com/fr/env/RemoteEnv.java

20
designer_base/src/com/fr/env/RemoteEnv.java vendored

@ -2195,7 +2195,25 @@ public class RemoteEnv extends AbstractEnv {
@Override @Override
public boolean hasPluginServiceStarted(String key) { public boolean hasPluginServiceStarted(String key) {
// TODO: 2017/5/22
return true; return true;
} }
@Override
public JSONArray getPluginStatus() {
try {
HashMap<String, String> para = new HashMap<String, String>();
para.put("op", "plugin");
para.put("cmd", "get_states");
para.put("current_uid", this.createUserID());
para.put("currentUsername", this.getUser());
HttpClient client = createHttpMethod(para);
InputStream input = execute4InputStream(client);
return new JSONArray(stream2String(input));
} catch (Exception e) {
return JSONArray.create();
}
}
} }
Loading…
Cancel
Save