summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/StatusWorker.java
diff options
context:
space:
mode:
authorBjörn Geiger2011-07-27 13:02:40 +0200
committerBjörn Geiger2011-07-27 13:02:40 +0200
commit8f7fc64ea16f571d5e61cb0c81955fcb66722a29 (patch)
tree7e94d79401a8801dbf2521afd525cb4d815afb6f /gearman/controllerWorker/ControllerWorker/StatusWorker.java
parentRegister Function in der Main vergessen (diff)
downloadpoolctrl-8f7fc64ea16f571d5e61cb0c81955fcb66722a29.tar.gz
poolctrl-8f7fc64ea16f571d5e61cb0c81955fcb66722a29.tar.xz
poolctrl-8f7fc64ea16f571d5e61cb0c81955fcb66722a29.zip
minor
Diffstat (limited to 'gearman/controllerWorker/ControllerWorker/StatusWorker.java')
-rw-r--r--gearman/controllerWorker/ControllerWorker/StatusWorker.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/gearman/controllerWorker/ControllerWorker/StatusWorker.java b/gearman/controllerWorker/ControllerWorker/StatusWorker.java
index 2683659..5a2da36 100644
--- a/gearman/controllerWorker/ControllerWorker/StatusWorker.java
+++ b/gearman/controllerWorker/ControllerWorker/StatusWorker.java
@@ -54,6 +54,17 @@ public class StatusWorker extends AbstractGearmanFunction {
} else if (type.equals("shutdown")) {
for (String event : events) {
Shutdown shutdown = SHUTDOWNTHREADS.get(event);
+
+ if (shutdown.isFinished()) {
+ res[count] = "Shutdown of " + event + " finished!";
+ } else if (shutdown.isFinishedWithErrors()) {
+ res[count] = "Shutdown of " + event
+ + " finished with errors!";
+ } else {
+ res[count] = "Shutdown of " + event + " not yet finished!";
+ }
+
+ count++;
}
}