All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Functions
as_config.h File Reference
#include <aerospike/as_error.h>
#include <aerospike/as_host.h>
#include <aerospike/as_policy.h>
#include <aerospike/as_password.h>
#include <aerospike/as_vector.h>
+ Include dependency graph for as_config.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_addr_map
 
struct  as_config
 
struct  as_config_lua
 
struct  as_config_tls
 

Macros

#define AS_CONFIG_PATH_MAX_LEN   (AS_CONFIG_PATH_MAX_SIZE - 1)
 
#define AS_CONFIG_PATH_MAX_SIZE   256
 

Functions

void as_config_destroy (as_config *config)
 
static void as_config_lua_init (as_config_lua *lua)
 
void as_config_set_cluster_id (as_config *config, const char *cluster_id)
 

Macro Definition Documentation

#define AS_CONFIG_PATH_MAX_LEN   (AS_CONFIG_PATH_MAX_SIZE - 1)

The maximum string length of path strings

Definition at line 65 of file as_config.h.

#define AS_CONFIG_PATH_MAX_SIZE   256

The size of path strings

Definition at line 60 of file as_config.h.

Function Documentation

void as_config_destroy ( as_config config)

Release memory associated with config.

This function should only be called on a cluster initialize error. If a cluster is initialized, the config data will be transferred to as_cluster which has it's own destructor.

static void as_config_lua_init ( as_config_lua lua)
inlinestatic

Initialize global lua configuration to defaults.

Definition at line 605 of file as_config.h.

References as_config_lua::cache_enabled, as_config_lua::system_path, and as_config_lua::user_path.

void as_config_set_cluster_id ( as_config config,
const char *  cluster_id 
)

Set expected cluster ID.