Repository: incubator-trafodion Updated Branches: refs/heads/master 9ba333a42 -> f905a745d
Change RESTServer node status to report trafodion up/down status Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/603e0dbc Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/603e0dbc Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/603e0dbc Branch: refs/heads/master Commit: 603e0dbc78b716be70fac97b73c2a6c1a2c976a2 Parents: 9ba333a Author: venkat1m <[email protected]> Authored: Thu Apr 14 17:26:10 2016 +0000 Committer: venkat1m <[email protected]> Committed: Thu Apr 14 17:26:10 2016 +0000 ---------------------------------------------------------------------- core/rest/src/main/java/org/trafodion/rest/ServerResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/603e0dbc/core/rest/src/main/java/org/trafodion/rest/ServerResource.java ---------------------------------------------------------------------- diff --git a/core/rest/src/main/java/org/trafodion/rest/ServerResource.java b/core/rest/src/main/java/org/trafodion/rest/ServerResource.java index 2e2de8a..640a456 100644 --- a/core/rest/src/main/java/org/trafodion/rest/ServerResource.java +++ b/core/rest/src/main/java/org/trafodion/rest/ServerResource.java @@ -333,7 +333,7 @@ public class ServerResource extends ResourceBase { private String nodes() throws IOException { ScriptContext scriptContext = new ScriptContext(); scriptContext.setScriptName(Constants.SYS_SHELL_SCRIPT_NAME); - scriptContext.setCommand("sqnodestatus json"); + scriptContext.setCommand("trafnodestatus -j"); try { ScriptManager.getInstance().runScript(scriptContext);//This will block while script is running
