summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/Boot.java
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-16 16:24:07 +0200
committerBjörn Geiger2011-08-16 16:24:07 +0200
commitd17aaf52b18336505e9b4f84c611d61e111dd72c (patch)
tree83839e262046c61855e4591d5f61bd851b426262 /gearman/controllerWorker/ControllerWorker/Boot.java
parentverschiedenes (diff)
downloadpoolctrl-d17aaf52b18336505e9b4f84c611d61e111dd72c.tar.gz
poolctrl-d17aaf52b18336505e9b4f84c611d61e111dd72c.tar.xz
poolctrl-d17aaf52b18336505e9b4f84c611d61e111dd72c.zip
minor
Diffstat (limited to 'gearman/controllerWorker/ControllerWorker/Boot.java')
-rw-r--r--gearman/controllerWorker/ControllerWorker/Boot.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/gearman/controllerWorker/ControllerWorker/Boot.java b/gearman/controllerWorker/ControllerWorker/Boot.java
index 7f40059..6e6ab50 100644
--- a/gearman/controllerWorker/ControllerWorker/Boot.java
+++ b/gearman/controllerWorker/ControllerWorker/Boot.java
@@ -437,19 +437,20 @@ public class Boot extends Thread {
JSONObject resultObj = (JSONObject) JSONValue
.parse(result);
if (!resultObj.containsKey("err")) {
- String rawoutput = resultObj.get("rawoutput")
- .toString();
- System.out.println(rawoutput);
- if (rawoutput.equals("is working")) {
+ String ps = resultObj.get("ps").toString();
+ System.out.println(ps);
+ if (ps.equals("is working")) {
System.out.println(ipAddress
+ " is working");
status.put(clientID, 18); // is working
psJobs.remove(clientID);
} else {
- System.out.println(ipAddress
- + " is not working");
- status.put(clientID, 13); // is not working
- psJobs.remove(clientID);
+ /*
+ * System.out.println(ipAddress +
+ * " is not working"); status.put(clientID,
+ * 13); // is not working
+ * psJobs.remove(clientID);
+ */
}
} else {
System.out.println(ipAddress