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 64 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
 
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 143 of file as_node.h.

uint32_t as_node::address_index
private

Primary host address index into addresses array.

Definition at line 86 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 93 of file as_node.h.

struct as_cluster_s* as_node::cluster

Definition at line 95 of file as_node.h.

cf_queue* as_node::conn_q
private

Pool of current, cached FDs.

Definition at line 101 of file as_node.h.

uint32_t as_node::failures
private

Number of consecutive info request failures.

Definition at line 131 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 125 of file as_node.h.

uint32_t as_node::index
private

Shared memory node array index.

Definition at line 137 of file as_node.h.

int as_node::info_fd
private

Socket used exclusively for cluster tend thread info requests.

Definition at line 107 of file as_node.h.

char as_node::name[AS_NODE_NAME_SIZE]

The name of the node.

Definition at line 80 of file as_node.h.

uint32_t as_node::partition_generation
private

Server's generation count for partition management.

Definition at line 75 of file as_node.h.

uint32_t as_node::ref_count
private

Reference count of node.

Definition at line 69 of file as_node.h.


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