summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-24 14:50:37 +0200
committerBjörn Geiger2011-08-24 14:50:37 +0200
commitd4296b3d508ae80be78606a1fa801da7bb5a383a (patch)
tree38d5419810aaff92e7029e2a12ef890e11a95e31 /gearman/controllerWorker
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-d4296b3d508ae80be78606a1fa801da7bb5a383a.tar.gz
poolctrl-d4296b3d508ae80be78606a1fa801da7bb5a383a.tar.xz
poolctrl-d4296b3d508ae80be78606a1fa801da7bb5a383a.zip
minor
Diffstat (limited to 'gearman/controllerWorker')
-rw-r--r--gearman/controllerWorker/ControllerWorker/Boot.java37
-rw-r--r--gearman/controllerWorker/ControllerWorker/Shutdown.java35
2 files changed, 32 insertions, 40 deletions
diff --git a/gearman/controllerWorker/ControllerWorker/Boot.java b/gearman/controllerWorker/ControllerWorker/Boot.java
index dfbe3a0..4286b56 100644
--- a/gearman/controllerWorker/ControllerWorker/Boot.java
+++ b/gearman/controllerWorker/ControllerWorker/Boot.java
@@ -229,7 +229,6 @@ public class Boot extends Thread {
GearmanJobResult wolJobRes = wolJob.get();
String result = ByteUtils.fromUTF8Bytes(wolJobRes
.getResults());
- System.out.println(result.toString());
if (result.equals("Magic packet send.")) {
System.out.println(macAddress
+ " Magic packet send.");
@@ -476,28 +475,24 @@ public class Boot extends Thread {
}
if (blacklistFound) {
- System.out.println(ipAddress
- + " is working");
- status.put(clientID, 18); // is working
- psJobs.remove(clientID);
- } else if (whitelistFound) {
+ if (whitelistFound) {
+ /*
+ * System.out.println(ipAddress +
+ * " is not working"); // is not working
+ * status.put(clientID, 13);
+ * psJobs.remove(clientID);
+ */
+ } else {
+ 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);
-
- } else {
- System.out
- .println(ipAddress
- + " Cannot check if user is working.");
- errors
- .put(clientID,
- "The check if a user is working has been failed.");
- /*
- * cannot check if user is working, go in
- * errorState
- */
- status.put(clientID, 29);
+ // is not working
+ status.put(clientID, 13);
psJobs.remove(clientID);
}
} else {
diff --git a/gearman/controllerWorker/ControllerWorker/Shutdown.java b/gearman/controllerWorker/ControllerWorker/Shutdown.java
index ba0e722..32a97b2 100644
--- a/gearman/controllerWorker/ControllerWorker/Shutdown.java
+++ b/gearman/controllerWorker/ControllerWorker/Shutdown.java
@@ -405,27 +405,24 @@ public class Shutdown extends Thread {
}
if (blacklistFound) {
- System.out.println(ipAddress
- + " is working");
- status.put(clientID, 11); // is working
- psJobs.remove(clientID);
- } else if (whitelistFound) {
+ if (whitelistFound) {
+ /*
+ * System.out.println(ipAddress +
+ * " is not working"); // is not working
+ * status.put(clientID, 4);
+ * psJobs.remove(clientID);
+ */
+ } else {
+ System.out.println(ipAddress
+ + " is working");
+ status.put(clientID, 11); // is working
+ psJobs.remove(clientID);
+ }
+ } else {
System.out.println(ipAddress
+ " is not working");
- status.put(clientID, 4); // is not working
- psJobs.remove(clientID);
- } else {
- System.out
- .println(ipAddress
- + " Cannot check if user is working.");
- errors
- .put(clientID,
- "The check if a user is working has been failed.");
- /*
- * cannot check if user is working, go in
- * errorState
- */
- status.put(clientID, 12);
+ // is not working
+ status.put(clientID, 4);
psJobs.remove(clientID);
}
} else {