Kea 2.5.8
ha_service_states.h
Go to the documentation of this file.
1// Copyright (C) 2018-2021 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef HA_SERVICE_STATES_H
8#define HA_SERVICE_STATES_H
9
10#include <util/state_model.h>
11#include <string>
12
13namespace isc {
14namespace ha {
15
18
21
24
27
30
33
36
39
42
45
48
51
55
61std::string stateToString(int state);
62
68int stringToState(const std::string& state_name);
69
70} // end of namespace isc::ha
71} // end of namespace isc
72
73#endif
static const int SM_DERIVED_STATE_MIN
Value at which custom states in a derived class should begin.
Definition: state_model.h:285
const int HA_PASSIVE_BACKUP_ST
In passive-backup state with a single active server and backup servers.
const int HA_HOT_STANDBY_ST
Hot standby state.
const int HA_COMMUNICATION_RECOVERY_ST
Communication recovery state.
const int HA_UNAVAILABLE_ST
Special state indicating that this server is unable to communicate with the partner.
const int HA_TERMINATED_ST
HA service terminated state.
const int HA_IN_MAINTENANCE_ST
In maintenance state.
const int HA_LOAD_BALANCING_ST
Load balancing state.
const int HA_PARTNER_DOWN_ST
Partner down state.
const int HA_PARTNER_IN_MAINTENANCE_ST
Partner in-maintenance state.
const int HA_WAITING_ST
Server waiting state, i.e. waiting for another server to be ready.
const int HA_BACKUP_ST
Backup state.
const int HA_SYNCING_ST
Synchronizing database state.
std::string stateToString(int state)
Returns state name.
const int HA_READY_ST
Server ready state, i.e. synchronized database, can enable DHCP service.
int stringToState(const std::string &state_name)
Returns state for a given name.
Defines the logger used by the top-level component of kea-lfc.
This file defines the class StateModel.