yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
agt_yp_ha_standby.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 - 2021, YumaWorks, Inc., All Rights Reserved.
3 *
4 * Unless required by applicable law or agreed to in writing,
5 * software distributed under the License is distributed on an
6 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7 * KIND, either express or implied. See the License for the
8 * specific language governing permissions and limitations
9 * under the License.
10 */
11#ifdef WITH_YP_HA
12#ifndef _H_agt_yp_ha_standby
13#define _H_agt_yp_ha_standby
14
15/* FILE: agt_yp_ha_standby.h
16*********************************************************************
17* *
18* P U R P O S E *
19* *
20*********************************************************************/
21
28/*********************************************************************
29* *
30* C H A N G E H I S T O R Y *
31* *
32*********************************************************************
33
34date init comment
35----------------------------------------------------------------------
3606-feb-16 abb Begun
37*/
38
39#ifndef _H_agt
40#include "agt.h"
41#endif
42
43#ifndef _H_agt_yp_ha
44#include "agt_yp_ha.h"
45#endif
46
47#ifndef _H_status_enum
48#include "status_enum.h"
49#endif
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55/********************************************************************
56* *
57* C O N S T A N T S *
58* *
59*********************************************************************/
60
61/********************************************************************
62* *
63* T Y P E S *
64* *
65*********************************************************************/
66
67
68/********************************************************************
69* *
70* F U N C T I O N S *
71* *
72*********************************************************************/
73
74
94extern status_t
96
97
103extern void
105
106
112extern void
114
115
123extern status_t
125 const xmlChar *new_server_id);
126
127
133extern void
135
136
142extern void
144
145
156extern status_t
158 ncx_transaction_id_t *config_id,
159 const xmlChar **config_stamp);
160
161
168extern const xmlChar *
170
171
172
176#ifdef __cplusplus
177} /* end extern 'C' */
178#endif
179
180#endif /* _H_agt_yp_ha_standby */
181#endif // WITH_YP_HA
Multi-Protocol Network Management Server.
YumaPro High Availability module (YP-HA)
status_t agt_yp_ha_standby_get_config_info(yp_ha_service_t *ha_serv, ncx_transaction_id_t *config_id, const xmlChar **config_stamp)
Get the config ID and timestamp info.
Definition: agt_yp_ha_standby.c:2072
status_t agt_yp_ha_standby_go(yp_ha_service_t *ha_serv)
Go into YP-HA Standby server mode.
Definition: agt_yp_ha_standby.c:1868
status_t agt_yp_ha_standby_setup(yp_ha_service_t *ha_serv, const xmlChar *new_server_id)
Setup the HA service standby_cb record for YP-HA Standby mode.
Definition: agt_yp_ha_standby.c:1983
void agt_yp_ha_standby_cleanup(yp_ha_service_t *ha_serv)
Cleanup the YP-HA Standby module.
Definition: agt_yp_ha_standby.c:2007
void agt_yp_ha_standby_init(yp_ha_service_t *ha_serv)
Initialize the YP-HA Standby module.
Definition: agt_yp_ha_standby.c:1908
void agt_yp_ha_standby_check_cleanup(yp_ha_service_t *ha_serv)
Check if the cleanup of standby mode is needed.
Definition: agt_yp_ha_standby.c:2031
const xmlChar * agt_yp_ha_standby_get_active_server(yp_ha_service_t *ha_serv)
Get the active server or in progress of connecting.
Definition: agt_yp_ha_standby.c:2102
void agt_yp_ha_standby_stop(yp_ha_service_t *ha_serv)
Exit YP-HA Standby server mode.
Definition: agt_yp_ha_standby.c:1889
status_t
global error return code
Definition: status_enum.h:210
uint64 ncx_transaction_id_t
transaction is scoped to single session write operation on a config
Definition: ncxtypes.h:724
global error status code enumerations
YP-HA service instance.
Definition: agt_yp_ha.h:157