Go to the source code of this file.
Functions | |
| int | db_init (int clear) |
| Initialize the MySQL client library, and connect to the server Also init tables for running system. More... | |
| int | db_terminate () |
| Destroy the MySQL client environment. More... | |
| int | db_check_and_register (const char *check_query, const char *insert_query, const char *element, int thread_id) |
| Register an element in the DB. More... | |
| int | db_register_runtime (int runtime_id) |
| Register a runtime in the DB. More... | |
| int | db_register_thread_stats (int thread_id, int runtime_id) |
| int | db_register_msu_stats (int msu_id, int msu_type_id, int thread_id, int runtime_id) |
| int | db_register_msu (int msu_id, int msu_type_id, int thread_id, int runtime_id) |
| Register an MSU in the DB. More... | |
| int | db_insert_sample (struct timed_stat *input, struct stat_sample_hdr *input_hdr, int runtime_id) |
| Insert datapoint for a timseries in the DB. More... | |
| int db_check_and_register | ( | const char * | check_query, |
| const char * | insert_query, | ||
| const char * | element, | ||
| int | element_id | ||
| ) |
Register an element in the DB.
Does nothing if element already exists
| const | char *check_query: query to check existence of element |
| const | char *insert_query: query to insert element |
| const | char *element: element's type |
| int | element_id |
Definition at line 385 of file controller_mysql.c.
| int db_init | ( | int | clear | ) |
Initialize the MySQL client library, and connect to the server Also init tables for running system.
| none |
Definition at line 116 of file controller_mysql.c.
| int db_insert_sample | ( | struct timed_stat * | input, |
| struct stat_sample_hdr * | input_hdr, | ||
| int | runtime_id | ||
| ) |
Insert datapoint for a timseries in the DB.
| input | pointer to timed_stat object |
| input_hdr | header of stat sample |
Definition at line 455 of file controller_mysql.c.
| int db_register_msu | ( | int | msu_id, |
| int | msu_type_id, | ||
| int | thread_id, | ||
| int | runtime_id | ||
| ) |
Register an MSU in the DB.
Does nothing if MSU already exists
| struct | dfg_msu *msu |
| int | thread_id |
| int | runtime_id |
Definition at line 266 of file controller_mysql.c.
| int db_register_msu_stats | ( | int | msu_id, |
| int | msu_type_id, | ||
| int | thread_id, | ||
| int | runtime_id | ||
| ) |
Definition at line 365 of file controller_mysql.c.
| int db_register_runtime | ( | int | runtime_id | ) |
Register a runtime in the DB.
Does nothing if runtime id already exists
| int | runtime_id: the runtime ID |
Definition at line 218 of file controller_mysql.c.
| int db_register_thread_stats | ( | int | thread_id, |
| int | runtime_id | ||
| ) |
Definition at line 354 of file controller_mysql.c.
| int db_terminate | ( | ) |
Destroy the MySQL client environment.
| none |
Definition at line 176 of file controller_mysql.c.
1.8.6