diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-06-10 11:04:05 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-06-10 11:04:05 +0000 |
commit | 4674ee0e6276e879b8278aa561a69ac60de0dc12 (patch) | |
tree | d757a18ba15d938ea8a159de6cbe2a562bd698f7 /configd | |
parent | daee12941a469c993919b515a72439b631ee244e (diff) |
split enum into its own file
Diffstat (limited to 'configd')
-rw-r--r-- | configd/src/apps/sentinel/cc-result.h | 9 | ||||
-rw-r--r-- | configd/src/apps/sentinel/connectivity.h | 2 | ||||
-rw-r--r-- | configd/src/apps/sentinel/outward-check.h | 3 |
3 files changed, 11 insertions, 3 deletions
diff --git a/configd/src/apps/sentinel/cc-result.h b/configd/src/apps/sentinel/cc-result.h new file mode 100644 index 00000000000..3468cf4324a --- /dev/null +++ b/configd/src/apps/sentinel/cc-result.h @@ -0,0 +1,9 @@ +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#pragma once + +namespace config::sentinel { + +enum class CcResult { UNKNOWN, CONN_FAIL, UNREACHABLE_UP, INDIRECT_PING_FAIL, INDIRECT_PING_UNAVAIL, ALL_OK }; + +} diff --git a/configd/src/apps/sentinel/connectivity.h b/configd/src/apps/sentinel/connectivity.h index 47b773d3477..a1e454a255a 100644 --- a/configd/src/apps/sentinel/connectivity.h +++ b/configd/src/apps/sentinel/connectivity.h @@ -3,7 +3,7 @@ #pragma once #include "rpcserver.h" -#include "outward-check.h" +#include "cc-result.h" #include <vespa/config-sentinel.h> #include <vespa/config-model.h> #include <string> diff --git a/configd/src/apps/sentinel/outward-check.h b/configd/src/apps/sentinel/outward-check.h index ab11eb74a71..0ae71c1b892 100644 --- a/configd/src/apps/sentinel/outward-check.h +++ b/configd/src/apps/sentinel/outward-check.h @@ -2,6 +2,7 @@ #pragma once +#include "cc-result.h" #include <string> #include <vespa/vespalib/util/count_down_latch.h> #include <vespa/fnet/frt/supervisor.h> @@ -29,8 +30,6 @@ struct OutwardCheckContext { ~OutwardCheckContext(); }; -enum class CcResult { UNKNOWN, CONN_FAIL, UNREACHABLE_UP, INDIRECT_PING_FAIL, INDIRECT_PING_UNAVAIL, ALL_OK }; - class OutwardCheck : public FRT_IRequestWait { private: CcResult _result = CcResult::UNKNOWN; |