Name
nodename
Synopsis
#include "hooks/cluster/nodename.h"
| void **nodename** ( | closure, | |
| | buffer); | |
void * <var class="pdparam">closure</var>;
string * <var class="pdparam">buffer</var>;
| int **has_cluster_nodename_hook** ( | ); | |
| void **register_cluster_nodename_hook_first** ( | hook, | |
| | closure); | |
ec_hook_cluster_nodename_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;
| void **register_cluster_nodename_hook_last** ( | hook, | |
| | closure); | |
ec_hook_cluster_nodename_func_t <var class="pdparam">hook</var>;
void *<var class="pdparam">closure</var>;
| void **call_cluster_nodename_hook** ( | buffer); | |
Description
If your module needs to determine the nodename configured for the active Momentum instance, it can call this hook to populate a string with the nodename.