summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/ClientState.java
diff options
context:
space:
mode:
authorSebastian Wagner2011-09-05 16:35:32 +0200
committerSebastian Wagner2011-09-05 16:35:32 +0200
commit70882436ca6a0636a14d97a7670cd7cb1a9faec4 (patch)
tree6a7f78af2073536b705a9486cc98363da0cf75b8 /gearman/controllerWorker/ControllerWorker/ClientState.java
parentall cases in functions (diff)
downloadpoolctrl-70882436ca6a0636a14d97a7670cd7cb1a9faec4.tar.gz
poolctrl-70882436ca6a0636a14d97a7670cd7cb1a9faec4.tar.xz
poolctrl-70882436ca6a0636a14d97a7670cd7cb1a9faec4.zip
two more final states added
Diffstat (limited to 'gearman/controllerWorker/ControllerWorker/ClientState.java')
-rw-r--r--gearman/controllerWorker/ControllerWorker/ClientState.java20
1 files changed, 13 insertions, 7 deletions
diff --git a/gearman/controllerWorker/ControllerWorker/ClientState.java b/gearman/controllerWorker/ControllerWorker/ClientState.java
index 1615efb..f11f3ee 100644
--- a/gearman/controllerWorker/ControllerWorker/ClientState.java
+++ b/gearman/controllerWorker/ControllerWorker/ClientState.java
@@ -36,9 +36,11 @@ public enum ClientState {
PING_RESTART_BOOT_AGAIN(28),
//final states
- SUCCESS(29),
- ERROR(30);
-
+ BOOT_SUCCESS(29),
+ BOOT_ERROR(30),
+ SHUTDOWN_SUCCESS(31),
+ SHUTDOWN_ERROR(32);
+
ClientState(int state) {
this.state = state;
}
@@ -74,10 +76,6 @@ public enum ClientState {
return "[" + this.state + "] The check if the user is working has been intialized.";
case USER_IS_WORKING:
return "[" + this.state + "] The user is working.";
- case ERROR:
- 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 CHECK_WAKE_ON_LAN_PROGRESS:
@@ -110,6 +108,14 @@ public enum ClientState {
return "[" + this.state + "] Doing ping after reboot again and again, until client is not alive or waitTime has been elapsed";
case CHECK_PING_RESTART_BOOT_PROGRESS:
return "[" + this.state + "] The ping after reboot has been initialized.";
+ case BOOT_ERROR:
+ return "[" + this.state + "] Booting of the client has not been finished, due to an error.";
+ case BOOT_SUCCESS:
+ return "[" + this.state + "] Booting of the client has been finished.";
+ case SHUTDOWN_ERROR:
+ return "[" + this.state + "] Shutdown of the client has not been finished, due to an error.";
+ case SHUTDOWN_SUCCESS:
+ return "[" + this.state + "] Shutdown of the client has been finished.";
default:
return "[" + this.state + "] Client is in unknown State";
}