Motr  M0
ha.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2016-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #pragma once
24 
25 #ifndef __MOTR_CONF_HA_H__
26 #define __MOTR_CONF_HA_H__
27 
33 #include "lib/types.h" /* uint64_t */
34 #include "xcode/xcode_attr.h" /* M0_XCA_RECORD */
35 #include "conf/schema.h" /* m0_conf_service_type */
36 
37 struct m0_fid;
38 struct m0_ha;
39 struct m0_ha_link;
40 
83 };
84 
95 };
96 
99  uint64_t chp_event;
101  uint64_t chp_type;
107  uint64_t chp_pid;
108 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
109 
143 };
144 
147  uint64_t chs_event;
149  uint64_t chs_type;
155  uint64_t chs_pid;
156 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
157 
159 M0_INTERNAL void
161  struct m0_ha_link *hl,
162  const struct m0_fid *process_fid,
163  uint64_t pid,
164  enum m0_conf_ha_process_event event,
166 
167 
169 M0_INTERNAL void
171  struct m0_ha_link *hl,
172  const struct m0_fid *source_process_fid,
173  const struct m0_fid *source_service_fid,
174  const struct m0_fid *service_fid,
175  uint64_t pid,
176  enum m0_conf_ha_service_event event,
177  enum m0_conf_service_type service_type);
178 
179 
181 #endif /* __MOTR_CONF_HA_H__ */
182 
183 /*
184  * Local variables:
185  * c-indentation-style: "K&R"
186  * c-basic-offset: 8
187  * tab-width: 8
188  * fill-column: 80
189  * scroll-step: 1
190  * End:
191  */
192 /*
193  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
194  */
uint64_t chp_pid
Definition: ha.h:107
m0_conf_ha_process_event
Definition: ha.h:49
M0_INTERNAL void m0_conf_ha_service_event_post(struct m0_ha *ha, struct m0_ha_link *hl, const struct m0_fid *source_process_fid, const struct m0_fid *source_service_fid, const struct m0_fid *service_fid, uint64_t pid, enum m0_conf_ha_service_event event, enum m0_conf_service_type service_type)
Definition: ha.c:80
m0_conf_service_type
Definition: schema.h:194
uint64_t chp_event
Definition: ha.h:99
m0_conf_ha_service_event
Definition: ha.h:119
m0_conf_ha_process_type
Definition: ha.h:86
uint64_t chs_type
Definition: ha.h:149
enum m0_conf_ha_service_event M0_XCA_DOMAIN
Definition: ha.h:289
uint64_t chs_pid
Definition: ha.h:155
Definition: fid.h:38
M0_INTERNAL void m0_conf_ha_process_event_post(struct m0_ha *ha, struct m0_ha_link *hl, const struct m0_fid *process_fid, uint64_t pid, enum m0_conf_ha_process_event event, enum m0_conf_ha_process_type type)
Definition: ha.c:45
uint64_t chp_type
Definition: ha.h:101
int type
Definition: dir.c:1031
uint64_t chs_event
Definition: ha.h:147
static const char * process_fid
Definition: idx_dix.c:73