CUBRID Engine  latest
shard_shm.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
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  */
18 
19 
20 /*
21  * shard_shm.h - shard shm information
22  */
23 
24 #ifndef _SHARD_SHM_H_
25 #define _SHARD_SHM_H_
26 
27 #ident "$Id$"
28 
29 
30 #include "config.h"
31 
32 #include "broker_config.h"
33 #include "broker_shm.h"
34 #include "shard_proxy_common.h"
35 
40  int shard_id, int as_id);
42  int as_id, unsigned int ip_addr, char *driver_info, char *driver_version);
44  int shard_id, int as_id, T_CLIENT_INFO * client_info_p);
45 
48 
50 
52 extern void shard_shm_dump_appl_server (FILE * fp, int shmid);
53 
54 /* SHARD TODO : MV OTHER HEADER FILE */
55 
56 extern void shard_shm_init_client_info (T_CLIENT_INFO * client_info_p);
57 extern void shard_shm_init_client_info_request (T_CLIENT_INFO * client_info_p);
58 extern void shard_shm_set_client_info_request (T_CLIENT_INFO * client_info_p, int func_code);
59 extern void shard_shm_set_client_info_response (T_CLIENT_INFO * client_info_p);
60 
61 #endif /* _SHARD_SHM_H_ */
void shard_shm_set_client_info_response(T_CLIENT_INFO *client_info_p)
Definition: shard_shm.c:793
T_SHM_SHARD_KEY_STAT * shard_shm_get_key_stat(T_PROXY_INFO *proxy_info_p, int idx)
Definition: shard_shm.c:478
T_CLIENT_INFO * shard_shm_get_client_info(T_PROXY_INFO *proxy_info_p, int idx)
Definition: shard_shm.c:448
T_SHM_PROXY * shard_shm_initialize_shm_proxy(T_BROKER_INFO *br_info)
Definition: shard_shm.c:261
bool shard_shm_set_as_client_info(T_PROXY_INFO *proxy_info_p, T_SHM_APPL_SERVER *shm_as_p, int shard_id, int as_id, unsigned int ip_addr, char *driver_info, char *driver_version)
Definition: shard_shm.c:689
void shard_shm_init_client_info_request(T_CLIENT_INFO *client_info_p)
Definition: shard_shm.c:773
bool shard_shm_set_as_client_info_with_db_param(T_PROXY_INFO *proxy_info_p, T_SHM_APPL_SERVER *shm_as_p, int shard_id, int as_id, T_CLIENT_INFO *client_info_p)
Definition: shard_shm.c:724
void shard_shm_dump_appl_server(FILE *fp, int shmid)
Definition: shard_shm.c:651
int proxy_id
Definition: shard_proxy.c:45
T_PROXY_INFO * proxy_info_p
Definition: shard_proxy.c:48
void shard_shm_dump_appl_server_internal(FILE *fp, T_SHM_PROXY *shm_as_p)
Definition: shard_shm.c:641
T_SHM_SHARD_CONN_STAT * shard_shm_get_shard_stat(T_PROXY_INFO *proxy_info_p, int idx)
Definition: shard_shm.c:463
void shard_shm_init_client_info(T_CLIENT_INFO *client_info_p)
Definition: shard_shm.c:756
T_SHARD_INFO * shard_shm_find_shard_info(T_PROXY_INFO *proxy_info_p, int shard_id)
Definition: shard_shm.c:433
T_PROXY_INFO * shard_shm_find_proxy_info(T_SHM_PROXY *proxy_p, int proxy_id)
Definition: shard_shm.c:419
T_SHM_APPL_SERVER * shm_as_p
Definition: shard_proxy.c:43
void shard_shm_set_client_info_request(T_CLIENT_INFO *client_info_p, int func_code)
Definition: shard_shm.c:783
T_APPL_SERVER_INFO * shard_shm_get_as_info(T_PROXY_INFO *proxy_info_p, T_SHM_APPL_SERVER *shm_as_p, int shard_id, int as_id)
Definition: shard_shm.c:671