File pl.cpp
FileList > cubrid > src > executables > pl.cpp
Go to the source code of this file
#include "config.h"
#include <dlfcn.h>
#include <execinfo.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <signal.h>
#include "process_util.h"
#include "environment_variable.h"
#include "system_parameter.h"
#include "error_code.h"
#include "error_manager.h"
#include "message_catalog.h"
#include "utility.h"
#include "databases_file.h"
#include "object_representation.h"
#include "method_struct_invoke.hpp"
#include "pl_connection.hpp"
#include "pl_comm.h"
#include "pl_file.h"
#include "pl_sr_jvm.h"
#include "packer.hpp"
#include <string>
#include <algorithm>
#include <array>
#include <atomic>
Public Static Attributes
Public Functions
Public Static Functions
| Type |
Name |
| int |
pl_check_argument (int argc, char * argv, std::string & command, std::string & db_name)
|
| int |
pl_check_database (const std::string & db_name, std::string & db_path)
|
| void |
pl_dump_status (FILE * fp, PL_STATUS_INFO status_info)
|
| int |
pl_get_port_param ()
|
| int |
pl_get_server_info (const std::string & db_name, PL_SERVER_INFO & info)
|
| bool |
pl_is_running (const PL_SERVER_INFO pl_info, const std::string & db_name)
|
| int |
pl_ping_server (const PL_SERVER_INFO pl_info, const char * db_name, char * buf)
|
| void |
pl_signal_handler (int sig)
|
| int |
pl_start_server (const PL_SERVER_INFO pl_info, const std::string & db_name, const std::string & path)
|
| int |
pl_status_server (const PL_SERVER_INFO pl_info, const std::string & db_name)
|
| int |
pl_stop_server (const PL_SERVER_INFO pl_info, const std::string & db_name)
|
Macros
Public Static Attributes Documentation
variable command
variable db_name
variable executable_path
char executable_path[PATH_MAX];
variable is_signal_handling
variable running_info
PL_SERVER_INFO running_info;
Public Functions Documentation
function main
int main (
int argc,
char * argv
)
Public Static Functions Documentation
function pl_check_argument
static int pl_check_argument (
int argc,
char * argv,
std::string & command,
std::string & db_name
)
function pl_check_database
static int pl_check_database (
const std::string & db_name,
std::string & db_path
)
function pl_dump_status
static void pl_dump_status (
FILE * fp,
PL_STATUS_INFO status_info
)
function pl_get_port_param
static int pl_get_port_param ()
function pl_get_server_info
static int pl_get_server_info (
const std::string & db_name,
PL_SERVER_INFO & info
)
function pl_is_running
static bool pl_is_running (
const PL_SERVER_INFO pl_info,
const std::string & db_name
)
function pl_ping_server
static int pl_ping_server (
const PL_SERVER_INFO pl_info,
const char * db_name,
char * buf
)
function pl_signal_handler
static void pl_signal_handler (
int sig
)
function pl_start_server
static int pl_start_server (
const PL_SERVER_INFO pl_info,
const std::string & db_name,
const std::string & path
)
function pl_status_server
static int pl_status_server (
const PL_SERVER_INFO pl_info,
const std::string & db_name
)
function pl_stop_server
static int pl_stop_server (
const PL_SERVER_INFO pl_info,
const std::string & db_name
)
Macro Definition Documentation
define MAX_RETRY_COUNT
#define MAX_RETRY_COUNT `10`
define NULL_DEVICE
#define NULL_DEVICE `"/dev/ null"`
define PL_PING_LEN
#define PL_PING_LEN `PATH_MAX`
define PL_PRINT_ERR_MSG
#define PL_PRINT_ERR_MSG (
...
) `/* multi line expression */`
The documentation for this class was generated from the following file cubrid/src/executables/pl.cpp