19 #include "datasrc_extra.h" 26 #define CLUSTER_ALL_NODES (-1) 29 #define CLUSTER_CONNECT_EVENT "cluster-node-connect" 30 #define CLUSTER_DISCONNECT_EVENT "cluster-node-disconnect" 34 #define CLUSTER_STATE_EVENT "cluster-state" 36 #define CLUSTER_PACKET_LOG_VERSION 2 37 #define CLUSTER_PACKET_LOG_HEADER "TCBLog packet v" 52 int (*cluster_check_primary)();
65 void (*cluster_send_update_to_node)(
int node,
ds_data_t *dsdata);
77 void (*cluster_monitor_method)(
char *
template,
char *key,
char *property,
int argc,
char *argv[]);
90 void (*cluster_monitor_method_to_node)(
int node,
char *
template,
char *key,
char *property,
int argc,
char *argv[]);
99 void (*cluster_reset_uptime)();
109 int (*cluster_is_node_up)(
int node);
116 void (*cluster_send_nodata)(
char *subject, u_short flags);
123 void (*cluster_send_nodata_to_node)(
int node,
char *subject, u_short flags);
129 int (*cluster_get_node_index)(void);
141 int (*cluster_should_assign_to_this_node)(
char *to_assign);
147 int (*cluster_get_cluster_size)();
int patch
Definition: cluster.h:44
int version
Definition: cluster.h:43
A data update object.
Definition: datasrc.h:2477
Definition of the cluster interface.
Definition: cluster.h:42