All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
as_event_internal.h File Reference
#include <aerospike/as_admin.h>
#include <aerospike/as_cluster.h>
#include <aerospike/as_queue.h>
#include <aerospike/as_proto.h>
#include <aerospike/as_socket.h>
#include <citrusleaf/cf_ll.h>
#include <pthread.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
+ Include dependency graph for as_event_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_async_connection
 
struct  as_event_command
 
struct  as_event_connection
 
struct  as_event_executor
 

Macros

#define AS_ASYNC_AUTH_RETURN_CODE   1
 
#define AS_ASYNC_STATE_AUTH_READ_BODY   4
 
#define AS_ASYNC_STATE_AUTH_READ_HEADER   2
 
#define AS_ASYNC_STATE_AUTH_WRITE   1
 
#define AS_ASYNC_STATE_READ_BODY   32
 
#define AS_ASYNC_STATE_READ_HEADER   16
 
#define AS_ASYNC_STATE_UNREGISTERED   0
 
#define AS_ASYNC_STATE_WRITE   8
 
#define AS_EVENT_CONNECTION_COMPLETE   0
 
#define AS_EVENT_CONNECTION_ERROR   2
 
#define AS_EVENT_CONNECTION_PENDING   1
 
#define AS_EVENT_QUEUE_INITIAL_CAPACITY   256
 

Typedefs

typedef void(* as_event_executor_complete_fn )(struct as_event_executor *executor, as_error *err)
 
typedef void(* as_event_executor_destroy_fn )(struct as_event_executor *executor)
 
typedef bool(* as_event_parse_results_fn )(struct as_event_command *cmd)
 

Functions

static as_event_loopas_event_assign (as_event_loop *event_loop)
 
void as_event_close_connection (as_event_connection *conn)
 
bool as_event_close_loop (as_event_loop *event_loop)
 
void as_event_command_begin (as_event_command *cmd)
 
as_status as_event_command_execute (as_event_command *cmd, as_error *err)
 
static void as_event_command_execute_in_loop (as_event_command *cmd)
 
static void as_event_command_free (as_event_command *cmd)
 
bool as_event_command_parse_header (as_event_command *cmd)
 
bool as_event_command_parse_result (as_event_command *cmd)
 
bool as_event_command_parse_success_failure (as_event_command *cmd)
 
static void as_event_command_release (as_event_command *cmd)
 
void as_event_connect_error (as_event_command *cmd, as_error *err, int fd)
 
bool as_event_create_loop (as_event_loop *event_loop)
 
int as_event_create_socket (as_event_command *cmd)
 
static void as_event_decr_conn_count (as_cluster *cluster, as_node *node, bool pipeline)
 
void as_event_error_callback (as_event_command *cmd, as_error *err)
 
void as_event_executor_cancel (as_event_executor *executor, int queued_count)
 
void as_event_executor_complete (as_event_command *cmd)
 
bool as_event_get_connection (as_event_command *cmd)
 
void as_event_node_destroy (as_node *node)
 
void as_event_register_external_loop (as_event_loop *event_loop)
 
void as_event_response_error (as_event_command *cmd, as_error *err)
 
bool as_event_send (as_event_command *cmd)
 
static void as_event_set_auth_parse_header (as_event_command *cmd)
 
static void as_event_set_auth_read_header (as_event_command *cmd)
 
static void as_event_set_auth_write (as_event_command *cmd)
 
void as_event_socket_error (as_event_command *cmd, as_error *err)
 
static void as_event_stop_timer (as_event_command *cmd)
 
static void as_event_stop_watcher (as_event_command *cmd, as_event_connection *conn)
 
void as_event_timeout (as_event_command *cmd)
 
static bool as_event_validate_connection (as_event_connection *conn, bool pipeline)
 

Variables

uint32_t as_event_loop_current
 
uint32_t as_event_loop_size
 
as_event_loopas_event_loops
 

Macro Definition Documentation

#define AS_ASYNC_AUTH_RETURN_CODE   1

Definition at line 53 of file as_event_internal.h.

#define AS_ASYNC_STATE_AUTH_READ_BODY   4

Definition at line 48 of file as_event_internal.h.

#define AS_ASYNC_STATE_AUTH_READ_HEADER   2

Definition at line 47 of file as_event_internal.h.

#define AS_ASYNC_STATE_AUTH_WRITE   1

Definition at line 46 of file as_event_internal.h.

#define AS_ASYNC_STATE_READ_BODY   32

Definition at line 51 of file as_event_internal.h.

#define AS_ASYNC_STATE_READ_HEADER   16

Definition at line 50 of file as_event_internal.h.

#define AS_ASYNC_STATE_UNREGISTERED   0

Definition at line 45 of file as_event_internal.h.

#define AS_ASYNC_STATE_WRITE   8

Definition at line 49 of file as_event_internal.h.

#define AS_EVENT_CONNECTION_COMPLETE   0

Definition at line 55 of file as_event_internal.h.

#define AS_EVENT_CONNECTION_ERROR   2

Definition at line 57 of file as_event_internal.h.

#define AS_EVENT_CONNECTION_PENDING   1

Definition at line 56 of file as_event_internal.h.

#define AS_EVENT_QUEUE_INITIAL_CAPACITY   256

Definition at line 59 of file as_event_internal.h.

Typedef Documentation

typedef void(* as_event_executor_complete_fn)(struct as_event_executor *executor, as_error *err)

Definition at line 87 of file as_event_internal.h.

typedef void(* as_event_executor_destroy_fn)(struct as_event_executor *executor)

Definition at line 88 of file as_event_internal.h.

typedef bool(* as_event_parse_results_fn)(struct as_event_command *cmd)

Definition at line 86 of file as_event_internal.h.

Function Documentation

static as_event_loop* as_event_assign ( as_event_loop event_loop)
inlinestatic

Definition at line 347 of file as_event_internal.h.

References as_event_loop_size, and as_event_command::event_loop.

void as_event_close_connection ( as_event_connection conn)
bool as_event_close_loop ( as_event_loop event_loop)
void as_event_command_begin ( as_event_command cmd)
as_status as_event_command_execute ( as_event_command cmd,
as_error err 
)
static void as_event_command_execute_in_loop ( as_event_command cmd)
inlinestatic
static void as_event_command_free ( as_event_command cmd)
inlinestatic
bool as_event_command_parse_header ( as_event_command cmd)
bool as_event_command_parse_result ( as_event_command cmd)
bool as_event_command_parse_success_failure ( as_event_command cmd)
static void as_event_command_release ( as_event_command cmd)
inlinestatic

Definition at line 319 of file as_event_internal.h.

void as_event_connect_error ( as_event_command cmd,
as_error err,
int  fd 
)
bool as_event_create_loop ( as_event_loop event_loop)
int as_event_create_socket ( as_event_command cmd)
static void as_event_decr_conn_count ( as_cluster cluster,
as_node node,
bool  pipeline 
)
inlinestatic
void as_event_error_callback ( as_event_command cmd,
as_error err 
)
void as_event_executor_cancel ( as_event_executor executor,
int  queued_count 
)
void as_event_executor_complete ( as_event_command cmd)
bool as_event_get_connection ( as_event_command cmd)
void as_event_node_destroy ( as_node node)
void as_event_register_external_loop ( as_event_loop event_loop)
void as_event_response_error ( as_event_command cmd,
as_error err 
)
bool as_event_send ( as_event_command cmd)
static void as_event_set_auth_parse_header ( as_event_command cmd)
inlinestatic
static void as_event_set_auth_read_header ( as_event_command cmd)
inlinestatic
static void as_event_set_auth_write ( as_event_command cmd)
inlinestatic
void as_event_socket_error ( as_event_command cmd,
as_error err 
)
static void as_event_stop_timer ( as_event_command cmd)
inlinestatic

Definition at line 309 of file as_event_internal.h.

static void as_event_stop_watcher ( as_event_command cmd,
as_event_connection conn 
)
inlinestatic

Definition at line 314 of file as_event_internal.h.

void as_event_timeout ( as_event_command cmd)
static bool as_event_validate_connection ( as_event_connection conn,
bool  pipeline 
)
inlinestatic

Definition at line 303 of file as_event_internal.h.

Variable Documentation

uint32_t as_event_loop_current
uint32_t as_event_loop_size
as_event_loop* as_event_loops