quasardb C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
node.h File Reference
#include "client.h"

Functions

QDB_API_LINKAGE qdb_error_t qdb_node_status (qdb_handle_t handle, const char *uri, const char **content, qdb_size_t *content_length)
 Returns the status of a node. More...
 
QDB_API_LINKAGE qdb_error_t qdb_node_config (qdb_handle_t handle, const char *uri, const char **content, qdb_size_t *content_length)
 Returns the configuration of a node. More...
 
QDB_API_LINKAGE qdb_error_t qdb_node_topology (qdb_handle_t handle, const char *uri, const char **content, qdb_size_t *content_length)
 Returns the topology of a node. More...
 
QDB_API_LINKAGE qdb_error_t qdb_node_stop (qdb_handle_t handle, const char *uri, const char *reason)
 Requests the node to gracefully stop. More...
 
QDB_API_LINKAGE qdb_error_t qdb_node_interrupt_partition (qdb_handle_t handle, const char *uri, qdb_int16_t partition_number, qdb_uint_t period)
 

Function Documentation

QDB_API_LINKAGE qdb_error_t qdb_node_interrupt_partition ( qdb_handle_t  handle,
const char *  uri,
qdb_int16_t  partition_number,
qdb_uint_t  period 
)

Use this function to interrupt a running partition. A negative value will interrupt all partitions on the node.

Parameters
handleA valid handle previously initialized by qdb_open or qdb_open_tcp.
uriA pointer to a null-terminated UTF-8 string representing the URI of node to be stopped.
partition_numberThe partition number to interrupt. A negative value interrupts all partitions.
periodThe maximum duration into which the interrupt will be active, in milliseconds.
Returns
A qdb_error_t code indicating success or failure.