summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker
diff options
context:
space:
mode:
authorSebastian Wagner2011-09-02 17:12:23 +0200
committerSebastian Wagner2011-09-02 17:12:23 +0200
commit1de810e6dc390230f53060f927daa7f9fe5c935a (patch)
tree1bc9e4b44c826b365463989abb0d4fae7c1e5369 /gearman/controllerWorker
parentall client states now in clientstates.java (diff)
downloadpoolctrl-1de810e6dc390230f53060f927daa7f9fe5c935a.tar.gz
poolctrl-1de810e6dc390230f53060f927daa7f9fe5c935a.tar.xz
poolctrl-1de810e6dc390230f53060f927daa7f9fe5c935a.zip
some changes
Diffstat (limited to 'gearman/controllerWorker')
-rw-r--r--gearman/controllerWorker/ControllerWorker/ClientState.java32
-rw-r--r--gearman/controllerWorker/ControllerWorker/Shutdown.java16
2 files changed, 32 insertions, 16 deletions
diff --git a/gearman/controllerWorker/ControllerWorker/ClientState.java b/gearman/controllerWorker/ControllerWorker/ClientState.java
index 0679ff3..5e63f16 100644
--- a/gearman/controllerWorker/ControllerWorker/ClientState.java
+++ b/gearman/controllerWorker/ControllerWorker/ClientState.java
@@ -71,6 +71,38 @@ public enum ClientState {
return "[" + this.state + "] Shutdown of the client has not been finished, due to an error.";
case SUCCESS:
return "[" + this.state + "] Shutdown of the client has been finished.";
+ case CLIENT_NOT_ALIVE:
+ return "[" + this.state + "] The client is not alive.";
+ case WAKE_ON_LAN_INITIALIZED:
+ return "[" + this.state + "] The wake on LAN has been initialized.";
+ case MAGIC_PACKET_SENT:
+ return "[" + this.state + "] The Magic packet has been sent.";
+ case PING_WOL_AGAIN:
+ return "[" + this.state + "] Doing ping after wake on LAN again and again, until client is alive or waitTime has been elapsed";
+ case PING_WOL_INITIALIZED:
+ return "[" + this.state + "] The ping after wake on LAN has been initialized.";
+ case CHECKOS_INITIALIZED:
+ return "[" + this.state + "] The check for the correct operating system has been initialized.";
+ case WRONG_OS:
+ return "[" + this.state + "] The wrong operating system is running.";
+ case A_USER_IS_LOGGED_IN:
+ return "[" + this.state + "] A user is logged in.";
+ case RESTART_CLIENT:
+ return "[" + this.state + "] No user is logged in.";
+ case RESTART_INITIALIZED:
+ return "[" + this.state + "] A restart of the client has been initialized.";
+ case RESTART_COMMAND_SENT:
+ return "[" + this.state + "] The restart command has been sent.";
+ case PING_RESTART_SHUTDOWN_AGAIN:
+ return "[" + this.state + "] Doing ping after shutdown again and again, until client is not alive or waitTime has been elapsed";
+ case PING_RESTART_SHUTDOWN_INITIALIZED:
+ return "[" + this.state + "] The ping after shutdown has been initialized.";
+ case CLIENT_IS_DOWN:
+ return "[" + this.state + "] The client has been shutted down.";
+ case PING_RESTART_BOOT_AGAIN:
+ return "[" + this.state + "] Doing ping after reboot again and again, until client is not alive or waitTime has been elapsed";
+ case PING_RESTART_BOOT_INITIALIZED:
+ return "[" + this.state + "] The ping after reboot has been initialized.";
default:
return "[" + this.state + "] Client is in unknown State";
}
diff --git a/gearman/controllerWorker/ControllerWorker/Shutdown.java b/gearman/controllerWorker/ControllerWorker/Shutdown.java
index e8f5751..2239c97 100644
--- a/gearman/controllerWorker/ControllerWorker/Shutdown.java
+++ b/gearman/controllerWorker/ControllerWorker/Shutdown.java
@@ -25,22 +25,6 @@ import org.json.simple.JSONValue;
import org.apache.log4j.Logger;
public class Shutdown extends Thread {
- /*
- private static final int CLIENT_INITIALIZED = 0;
- private static final int PING_INITIALIZED = 1;
-// private static final int CLIENT_IS_ALIVE = 2;
- private static final int WHO_INITIALIZED = 3;
- private static final int SHUTDOWN_CLIENT = 4;
- private static final int SHUTDOWN_INITIALIZED = 5;
- private static final int SHUTDOWN_COMMAND_SENT = 6;
- private static final int PING_SHUTDOWN_AGAIN = 7;
- private static final int PING_SHUTDOWN_INITIALIZED = 8;
- private static final int USER_IS_LOGGED_IN = 9;
- private static final int PS_INITIALIZED = 10;
- private static final int USER_IS_WORKING = 11;
- private static final int ERROR = 12;
- private static final int SUCCESS = 13;
- */
static final Logger logger = Logger.getLogger(Shutdown.class);