CUBRID Engine  latest
broker_filename.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  * broker_filename.h -
22  */
23 
24 #ifndef _BROKER_FILENAME_H_
25 #define _BROKER_FILENAME_H_
26 
27 #ident "$Id$"
28 
29 #include "porting.h"
30 
31 #define APPL_SERVER_CAS_NAME "cub_cas"
32 #define APPL_SERVER_CAS_ORACLE_NAME "cub_cas_oracle"
33 #define APPL_SERVER_CAS_MYSQL51_NAME "cub_cas_mysql51"
34 #define APPL_SERVER_CAS_MYSQL_NAME "cub_cas_mysql"
35 
36 #define NAME_BROKER "Tbroker"
37 #define NAME_PROXY "cub_proxy"
38 #define NAME_CAS_BROKER "cub_broker"
39 #if defined(WINDOWS)
40 #define NAME_CAS_BROKER2 "Cbroker2"
41 #define NAME_UC_SHM "broker_shm"
42 #endif
43 
44 #define CUBRID_BASE_DIR "log/broker/"
45 
46 #ifdef DISPATCHER
47 #define ERROR_MSG_FILE "uw_er.msg"
48 #endif
49 
50 #define BROKER_PATH_MAX (PATH_MAX)
51 
52 /* default values */
53 #define DEFAULT_LOG_DIR "log/broker/sql_log/"
54 #define DEFAULT_SLOW_LOG_DIR DEFAULT_LOG_DIR
55 #define DEFAULT_ERR_DIR "log/broker/error_log/"
56 #define DEFAULT_SHARD_PROXY_LOG_DIR "log/broker/proxy_log/"
57 #define DEFAULT_ACCESS_LOG_DIR "log/broker/"
58 
59 #define ACCESS_LOG_DENIED_FILENAME_POSTFIX ".denied"
60 
62 {
85 };
87 
90 {
93 };
94 
95 extern void set_cubrid_home (void);
96 extern void set_cubrid_file (T_CUBRID_FILE_ID fid, char *value);
97 extern char *get_cubrid_file (T_CUBRID_FILE_ID fid, char *buf, size_t len);
99 extern char *get_cubrid_home (void);
100 extern const char *getenv_cubrid_broker (void);
101 
102 #endif /* _BROKER_FILENAME_H_ */
char * get_cubrid_file_ptr(T_CUBRID_FILE_ID fid)
char file_name[BROKER_PATH_MAX]
char * get_cubrid_file(T_CUBRID_FILE_ID fid, char *buf, size_t len)
void set_cubrid_file(T_CUBRID_FILE_ID fid, char *value)
char * get_cubrid_home(void)
T_CUBRID_FILE_ID fid
enum t_cubrid_file_id T_CUBRID_FILE_ID
void set_cubrid_home(void)
t_cubrid_file_id
const char * getenv_cubrid_broker(void)
#define BROKER_PATH_MAX