Go to the source code of this file.
|
void | as_cluster_add_seed (as_cluster *cluster, const char *hostname, const char *tls_name, uint16_t port) |
|
void | as_cluster_change_password (as_cluster *cluster, const char *user, const char *password) |
|
as_status | as_cluster_create (as_config *config, as_error *err, as_cluster **cluster) |
|
void | as_cluster_destroy (as_cluster *cluster) |
|
void | as_cluster_get_node_names (as_cluster *cluster, int *n_nodes, char **node_names) |
|
static as_partition_table * | as_cluster_get_partition_table (as_cluster *cluster, const char *ns) |
|
bool | as_cluster_is_connected (as_cluster *cluster) |
|
void | as_cluster_remove_seed (as_cluster *cluster, const char *hostname, uint16_t port) |
|
void | as_cluster_set_async_max_conns_per_node (as_cluster *cluster, uint32_t async_size, uint32_t pipe_size) |
|
static as_node * | as_node_get (as_cluster *cluster, const char *ns, const uint8_t *digest, as_policy_replica replica, bool master) |
|
as_node * | as_node_get_by_name (as_cluster *cluster, const char *name) |
|
as_node * | as_node_get_random (as_cluster *cluster) |
|
static void | as_nodes_release (as_nodes *nodes) |
|
static as_nodes * | as_nodes_reserve (as_cluster *cluster) |
|
as_node * | as_partition_table_get_node (as_cluster *cluster, as_partition_table *table, const uint8_t *digest, as_policy_replica replica, bool master) |
|
static void | as_partition_tables_release (as_partition_tables *tables) |
|
static as_partition_tables * | as_partition_tables_reserve (as_cluster *cluster) |
|
as_node * | as_shm_node_get (as_cluster *cluster, const char *ns, const uint8_t *digest, as_policy_replica replica, bool master) |
|
typedef void(* as_release_fn)(void *value) |
Reference counted release function definition.
Definition at line 64 of file as_cluster.h.
void as_cluster_add_seed |
( |
as_cluster * |
cluster, |
|
|
const char * |
hostname, |
|
|
const char * |
tls_name, |
|
|
uint16_t |
port |
|
) |
| |
void as_cluster_change_password |
( |
as_cluster * |
cluster, |
|
|
const char * |
user, |
|
|
const char * |
password |
|
) |
| |
|
private |
Change user and password that is used to authenticate with cluster servers.
Create and initialize cluster.
Close all connections and release memory associated with cluster.
void as_cluster_get_node_names |
( |
as_cluster * |
cluster, |
|
|
int * |
n_nodes, |
|
|
char ** |
node_names |
|
) |
| |
Get all node names in cluster.
bool as_cluster_is_connected |
( |
as_cluster * |
cluster | ) |
|
Is cluster connected to any server nodes.
void as_cluster_remove_seed |
( |
as_cluster * |
cluster, |
|
|
const char * |
hostname, |
|
|
uint16_t |
port |
|
) |
| |
Remove seed from cluster.
void as_cluster_set_async_max_conns_per_node |
( |
as_cluster * |
cluster, |
|
|
uint32_t |
async_size, |
|
|
uint32_t |
pipe_size |
|
) |
| |
Change maximum async connections per node.
static void as_nodes_release |
( |
as_nodes * |
nodes | ) |
|
|
inlinestatic |
Get mapped node given digest key and partition table. If there is no mapped node, a random node is used instead. as_nodes_release() must be called when done with node.
Get shared memory mapped node given digest key. If there is no mapped node, a random node is used instead. as_nodes_release() must be called when done with node.