Skip to content

File broker_log_top.h

FileList > broker > broker_log_top.h

Go to the source code of this file

Public Types

Type Name
typedef enum t_log_top_mode T_LOG_TOP_MODE
typedef enum t_output_mode T_OUTPUT_MODE
enum log_top_error_code
enum t_log_top_mode
enum t_output_mode

Public Attributes

Type Name
T_LOG_TOP_MODE log_top_mode
T_OUTPUT_MODE output_mode

Public Functions

Type Name
int check_log_time (char * start_date, char * end_date)
const char * get_basename (const char * path)
void get_brokername_from_filename (const char * filename, char * prefix, int max_len)
int get_file_offset (char * filename, long * start_offset, long * end_offset)
int log_top_tran (int argc, char * argv, int arg_start)
int make_change_split_brokerdir (char * splitdir, char * broker)
int make_splitdir (char * splitdir)

Macros

Type Name
define LINE_BUF_SIZE 30000
define PREFIX_UNKNOWN "unknown"
define SUFFIX_SLOW_LOG ".slow.log"
define SUFFIX_SLOW_LOG_BAK ".slow.log.bak"
define SUFFIX_SQL_LOG ".sql.log"
define SUFFIX_SQL_LOG_BAK ".sql.log.bak"

Public Types Documentation

typedef T_LOG_TOP_MODE

typedef enum t_log_top_mode T_LOG_TOP_MODE;

typedef T_OUTPUT_MODE

typedef enum t_output_mode T_OUTPUT_MODE;

enum log_top_error_code

enum log_top_error_code {
    LT_NO_ERROR = 0,
    LT_INVAILD_VERSION = -1,
    LT_OTHER_ERROR = -2
};

enum t_log_top_mode

enum t_log_top_mode {
    MODE_PROC_TIME = 0,
    MODE_MAX_HANDLE = 1
};

enum t_output_mode

enum t_output_mode {
    OUTPUT_MERGE = 0,
    OUTPUT_SPLIT
};

Public Attributes Documentation

variable log_top_mode

T_LOG_TOP_MODE log_top_mode;

variable output_mode

T_OUTPUT_MODE output_mode;

Public Functions Documentation

function check_log_time

int check_log_time (
    char * start_date,
    char * end_date
) 

function get_basename

const  char * get_basename (
    const  char * path
) 

function get_brokername_from_filename

void get_brokername_from_filename (
    const  char * filename,
    char * prefix,
    int max_len
) 

function get_file_offset

int get_file_offset (
    char * filename,
    long * start_offset,
    long * end_offset
) 

function log_top_tran

int log_top_tran (
    int argc,
    char * argv,
    int arg_start
) 

function make_change_split_brokerdir

int make_change_split_brokerdir (
    char * splitdir,
    char * broker
) 

function make_splitdir

int make_splitdir (
    char * splitdir
) 

Macro Definition Documentation

define LINE_BUF_SIZE

#define LINE_BUF_SIZE `30000`

define PREFIX_UNKNOWN

#define PREFIX_UNKNOWN `"unknown"`

define SUFFIX_SLOW_LOG

#define SUFFIX_SLOW_LOG `".slow.log"`

define SUFFIX_SLOW_LOG_BAK

#define SUFFIX_SLOW_LOG_BAK `".slow.log.bak"`

define SUFFIX_SQL_LOG

#define SUFFIX_SQL_LOG `".sql.log"`

define SUFFIX_SQL_LOG_BAK

#define SUFFIX_SQL_LOG_BAK `".sql.log.bak"`


The documentation for this class was generated from the following file cubrid/src/broker/broker_log_top.h