stats_request

March 26, 2020 Contributors

Name

stats_request

Synopsis

#include "hooks/cluster/stats_request.h"

| void **stats_request** ( | closure, |   |
|   | cclosure, |   |
|   | sender, |   |
|   | group, |   |
|   | command_type, |   |
|   | which, |   |
|   | mess, |   |
|   | len); |   |

void * <var class="pdparam">closure</var>;
void * <var class="pdparam">cclosure</var>;
char * <var class="pdparam">sender</var>;
char * <var class="pdparam">group</var>;
int <var class="pdparam">command_type</var>;
int <var class="pdparam">which</var>;
char * <var class="pdparam">mess</var>;
int <var class="pdparam">len</var>;

| int **has_cluster_stats_request_hook** ( | ); |   |

| void **register_cluster_stats_request_hook_first** ( | hook, |   |
|   | closure); |   |

ec_hook_cluster_stats_request_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **register_cluster_stats_request_hook_last** ( | hook, |   |
|   | closure); |   |

ec_hook_cluster_stats_request_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;

| void **call_cluster_stats_request_hook** ( | cclosure, |   |
|   | sender, |   |
|   | group, |   |
|   | command_type, |   |
|   | which, |   |
|   | mess, |   |
|   | len); |   |

void * <var class="pdparam">cclosure</var>;
char * <var class="pdparam">sender</var>;
char * <var class="pdparam">group</var>;
int <var class="pdparam">command_type</var>;
int <var class="pdparam">which</var>;
char * <var class="pdparam">mess</var>;
int <var class="pdparam">len</var>;

Description

Functions registered with this hook are called whenever a EC_CLUSTER_STATS_REQUEST message is received on the shared message bus. The expected behavior is for the called function to respond with a private message to the sender with the requested stats information.