All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Fields | Private Attributes
as_node Struct Reference

Detailed Description

Server node representation.

Definition at line 67 of file as_node.h.

#include "as_node.h"

+ Collaboration diagram for as_node:

Data Fields

struct as_cluster_s * cluster
 
char name [AS_NODE_NAME_SIZE]
 

Private Attributes

uint8_t active
 
uint32_t address_index
 
as_vector addresses
 
cf_queue * conn_q
 
uint32_t failures
 
uint32_t friends
 
uint8_t has_batch_index
 
uint8_t has_replicas_all
 
uint32_t index
 
int info_fd
 
uint32_t partition_generation
 
uint32_t ref_count
 

Field Documentation

uint8_t as_node::active
private

Is node currently active.

Definition at line 146 of file as_node.h.

uint32_t as_node::address_index
private

Primary host address index into addresses array.

Definition at line 89 of file as_node.h.

as_vector as_node::addresses
private

Vector of sockaddr_in which the host is currently known by. Only used by tend thread. Not thread-safe.

Definition at line 96 of file as_node.h.

struct as_cluster_s* as_node::cluster

Definition at line 98 of file as_node.h.

cf_queue* as_node::conn_q
private

Pool of current, cached FDs.

Definition at line 104 of file as_node.h.

uint32_t as_node::failures
private

Number of consecutive info request failures.

Definition at line 134 of file as_node.h.

uint32_t as_node::friends
private

FDs for async command execution. Not currently used.

Asynchronous work queue. Not currently used.

Number of other nodes that consider this node a member of the cluster.

Definition at line 128 of file as_node.h.

uint8_t as_node::has_batch_index
private

Does node support batch-index protocol?

Definition at line 152 of file as_node.h.

uint8_t as_node::has_replicas_all
private

Does node support replicas-all info protocol?

Definition at line 158 of file as_node.h.

uint32_t as_node::index
private

Shared memory node array index.

Definition at line 140 of file as_node.h.

int as_node::info_fd
private

Socket used exclusively for cluster tend thread info requests.

Definition at line 110 of file as_node.h.

char as_node::name[AS_NODE_NAME_SIZE]

The name of the node.

Definition at line 83 of file as_node.h.

uint32_t as_node::partition_generation
private

Server's generation count for partition management.

Definition at line 78 of file as_node.h.

uint32_t as_node::ref_count
private

Reference count of node.

Definition at line 72 of file as_node.h.


The documentation for this struct was generated from the following file: