Go to the source code of this file.
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FDMI |
◆ dump_fol_rec_to_json()
◆ fdmi_plugin_record_ack()
static void fdmi_plugin_record_ack |
( |
| ) |
|
|
static |
Reading from stdin to get FDMI record ID and then release this record.
Definition at line 357 of file fdmi_sample_plugin.c.
◆ fdmi_service_start()
static int fdmi_service_start |
( |
struct m0_client * |
m0c | ) |
|
|
static |
◆ fdmi_service_stop()
static void fdmi_service_stop |
( |
struct m0_client * |
m0c | ) |
|
|
static |
◆ fini_fdmi_plugin()
◆ fsp_args_parse()
static int fsp_args_parse |
( |
struct m0_fsp_params * |
params, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
◆ fsp_fini()
◆ fsp_init()
◆ fsp_print_params()
◆ fsp_sighandler()
static void fsp_sighandler |
( |
int |
signum | ) |
|
|
static |
◆ fsp_sighandler_init()
static int fsp_sighandler_init |
( |
void |
| ) |
|
|
static |
◆ fsp_usage()
static void fsp_usage |
( |
void |
| ) |
|
|
static |
◆ init_fdmi_plugin()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ process_fdmi_record()
static int process_fdmi_record |
( |
struct m0_uint128 * |
rec_id, |
|
|
struct m0_buf |
fdmi_rec, |
|
|
struct m0_fid |
filter_id |
|
) |
| |
|
static |
Callback function called by the FDMI service to deliver the FDMI event to the plugin program.
Definition at line 259 of file fdmi_sample_plugin.c.
◆ fsp_client
◆ fsp_conf
This program is basically adding the new client to the cluster. To do so we need to specify the client endpoint and the address of the cluster configuration service. This structure is used for delivering this info to the Motr core.
Definition at line 86 of file fdmi_sample_plugin.c.
◆ fsp_dix_conf
◆ fsp_fdmi_service
The handle of the local FDMI service that we start. Its purpose is to receive the FDMI rpcs, find the local consumer (this program) and send forward them to the consumer plugin in the form of FDMI records.
Definition at line 108 of file fdmi_sample_plugin.c.
◆ fsp_params
This is the FDMI plugin program. Its purpose is to start the listener for the special type of the FDMI events and forward them to the fdmi_app wrapper written in python. The communication is done via stdout. Storage for the program run parameters passed from console or the wrapper application.
Definition at line 67 of file fdmi_sample_plugin.c.
◆ fsp_pdo
The vector of the FDMI plugin callback operations. They are called by the Motr when the new FDMI event occurs.
Definition at line 101 of file fdmi_sample_plugin.c.
◆ fsp_sem
The main loop semaphore. The main loop here is just sleeping most of the time and waiting for some stop signal (e.g ctrl+c) from the python fdmi_app that controls this plugin program.
The main job is done in one of the Motr locality threads, that handles the fops with FDMI data and call the callback function installed by this program if the type of the plugin match is found.
Definition at line 78 of file fdmi_sample_plugin.c.
◆ terminated
volatile int terminated = 0 |
|
static |