From: Alina Quereilhac Date: Wed, 27 Jul 2011 11:56:28 +0000 (+0200) Subject: constants for recovery policy X-Git-Tag: nepi-3.0.0~341^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1ae70db7a15604d0fe9fed5443ccab3ab5a522a7;p=nepi.git constants for recovery policy --- diff --git a/src/nepi/util/constants.py b/src/nepi/util/constants.py index 2a0ade0f..03b354a5 100644 --- a/src/nepi/util/constants.py +++ b/src/nepi/util/constants.py @@ -47,6 +47,7 @@ class TestbedStatus: STATUS_CONFIGURED = 5 STATUS_STARTED = 6 STATUS_STOPPED = 7 + STATUS_FAILED = 8 class DeploymentConfiguration: MODE_SINGLE_PROCESS = "SINGLE" @@ -55,6 +56,9 @@ class DeploymentConfiguration: ACCESS_LOCAL = "LOCAL" ERROR_LEVEL = "Error" DEBUG_LEVEL = "Debug" + POLICY_FAIL = "Fail" + POLICY_RECOVER = "Recover" + POLICY_RESTART = "Restart" DEPLOYMENT_MODE = "deployment_mode" DEPLOYMENT_COMMUNICATION = "deployment_communication" @@ -70,4 +74,6 @@ class DeploymentConfiguration: USE_AGENT = "useAgent" LOG_LEVEL = "logLevel" RECOVER = "recover" + RECOVER_POLICY = "recoverPolicy" +