Loading...
Searching...
No Matches
Data Structures | Functions
as_info.h File Reference
#include <aerospike/aerospike.h>
#include <aerospike/as_listener.h>
#include <aerospike/as_cluster.h>
+ Include dependency graph for as_info.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_name_value
 

Functions

AS_EXTERN as_status as_info_command (as_error *err, as_socket *sock, as_node *node, char *names, bool send_asis, uint64_t deadline_ms, uint64_t max_response_length, char **values)
 
AS_EXTERN as_status as_info_command_host (as_cluster *cluster, as_error *err, struct sockaddr *addr, char *command, bool send_asis, uint64_t deadline_ms, char **response, const char *tls_name)
 
AS_EXTERN as_status as_info_command_node (as_error *err, as_node *node, char *command, bool send_asis, uint64_t deadline_ms, char **response)
 
AS_EXTERN as_status as_info_command_node_async (aerospike *as, as_error *err, as_policy_info *policy, as_node *node, const char *command, as_async_info_listener listener, void *udata, as_event_loop *event_loop)
 
AS_EXTERN as_status as_info_command_random_node (aerospike *as, as_error *err, as_policy_info *policy, char *command)
 
as_status as_info_create_socket (as_cluster *cluster, as_error *err, struct sockaddr *addr, uint64_t deadline_ms, const char *tls_name, as_socket *sock)
 
void as_info_parse_multi_response (char *buf, as_vector *values)
 
AS_EXTERN as_status as_info_parse_single_response (char *values, char **value)
 
as_status as_info_validate (char *response, char **message)
 
as_status as_info_validate_item (as_error *err, char *response)
 

Function Documentation

◆ as_info_command()

AS_EXTERN as_status as_info_command ( as_error * err,
as_socket * sock,
as_node * node,
char * names,
bool send_asis,
uint64_t deadline_ms,
uint64_t max_response_length,
char ** values )
private

Send info command to specific socket. The values must be freed by the caller on success. Set max_response_length to zero if response size should not be bounded.

◆ as_info_command_host()

AS_EXTERN as_status as_info_command_host ( as_cluster * cluster,
as_error * err,
struct sockaddr * addr,
char * command,
bool send_asis,
uint64_t deadline_ms,
char ** response,
const char * tls_name )
private

Send info command to specific host. The values must be freed by the caller on success.

◆ as_info_command_node()

AS_EXTERN as_status as_info_command_node ( as_error * err,
as_node * node,
char * command,
bool send_asis,
uint64_t deadline_ms,
char ** response )
private

Send info command to specific node. The values must be freed by the caller on success.

◆ as_info_command_node_async()

AS_EXTERN as_status as_info_command_node_async ( aerospike * as,
as_error * err,
as_policy_info * policy,
as_node * node,
const char * command,
as_async_info_listener listener,
void * udata,
as_event_loop * event_loop )
private

Asynchronously send info command to specific node.

◆ as_info_command_random_node()

AS_EXTERN as_status as_info_command_random_node ( aerospike * as,
as_error * err,
as_policy_info * policy,
char * command )
private

Send info command to random node. The values must be freed by the caller on success.

◆ as_info_create_socket()

as_status as_info_create_socket ( as_cluster * cluster,
as_error * err,
struct sockaddr * addr,
uint64_t deadline_ms,
const char * tls_name,
as_socket * sock )
private

Create and authenticate socket for info requests.

◆ as_info_parse_multi_response()

void as_info_parse_multi_response ( char * buf,
as_vector * values )
private

Parse info response buffer into name/value pairs, one for each command. The original buffer will be modified with null termination characters to delimit each command name and value referenced by the name/value pairs.

◆ as_info_parse_single_response()

AS_EXTERN as_status as_info_parse_single_response ( char * values,
char ** value )
private

Return the single command's info response buffer value. The original buffer will be modified with the null termination character.

◆ as_info_validate()

as_status as_info_validate ( char * response,
char ** message )
private

Check for errors in info response.

◆ as_info_validate_item()

as_status as_info_validate_item ( as_error * err,
char * response )
private

Validate an individual response in a multiple response info request.