summaryrefslogtreecommitdiffstats
path: root/gearman/controllerWorker/ControllerWorker/ClientState.java
diff options
context:
space:
mode:
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";
}