CUBRID Engine  latest
shard_admin_pub.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_admin_pub.h -
22  */
23 #if defined(UNDEFINED)
24 
25 #ifndef _SHARD_ADMIN_PUB_H_
26 #define _SHARD_ADMIN_PUB_H_
27 
28 #ident "$Id$"
29 
30 #include "broker_config.h"
31 #if !defined(CAS_FOR_ORACLE) && !defined(CAS_FOR_MYSQL)
32 #include "environment_variable.h"
33 #endif /* !CAS_FOR_ORACLE && !CAS_FOR_MYSQL */
34 
35 extern int shard_broker_activate (int master_shm_id, T_BROKER_INFO * br_info_p, T_SHM_APPL_SERVER * shm_as_p);
36 void shard_broker_inactivate (T_BROKER_INFO * br_info_p);
37 
38 extern int shard_as_activate (int as_shm_id, int proxy_id, int shard_id, int as_id, T_SHM_APPL_SERVER * shm_as_p,
40 extern void shard_as_inactivate (T_BROKER_INFO * br_info_p, T_APPL_SERVER_INFO * as_info_p, int proxy_index,
41  int shard_index, int as_index);
42 
43 extern int shard_process_activate (int master_shm_id, T_BROKER_INFO * br_info, T_SHM_APPL_SERVER * shm_as_p,
45 
46 extern void shard_process_inactivate (T_BROKER_INFO * br_info_p);
47 
48 #endif /* _SHARD_ADMIN_PUB_H_ */
49 #endif /* UNDEFINED */
static T_BROKER_INFO * br_info_p
Definition: broker.c:312
static T_SHM_PROXY * shm_proxy_p
Definition: broker.c:313
int proxy_id
Definition: shard_proxy.c:45
T_SHM_APPL_SERVER * shm_as_p
Definition: shard_proxy.c:43