Couchbase C Client
2.5.6
|
Additional miscellaneous commands which can be executed on the server.
Server Statistics | |
typedef lcb_CMDBASE | lcb_CMDSTATS |
Command structure for stats request The lcb_CMDSTATS::key field should contain the statistics key, or be empty if the default statistics are desired. More... | |
lcb_error_t | lcb_stats3 (lcb_t instance, const void *cookie, const lcb_CMDSTATS *cmd) |
Schedule a request for statistics from the cluster. More... | |
#define | LCB_CMDSTATS_F_KV |
The key is a stored item for which statistics should be retrieved. More... | |
Server Versions | |
| |
lcb_error_t | lcb_server_versions3 (lcb_t instance, const void *cookie, const lcb_CMDBASE *cmd) |
Server Log Verbosity | |
enum | lcb_verbosity_level_t |
level field for lcb_server_verbosity3 () | |
typedef lcb_RESPSERVERBASE | lcb_RESPVERBOSITY |
lcb_error_t | lcb_server_verbosity3 (lcb_t instance, const void *cookie, const lcb_CMDVERBOSITY *cmd) |
lcb_error_t lcb_stats3 | ( | lcb_t | instance, |
const void * | cookie, | ||
const lcb_CMDSTATS * | cmd | ||
) |
Schedule a request for statistics from the cluster.
instance | the instance |
cookie | pointer to associate with the request |
cmd | the command |
Note that the callback for this command is invoked an indeterminate amount of times. The callback is invoked once for each statistic for each server. When all the servers have responded with their statistics, a final callback is delivered to the application with the LCB_RESP_F_FINAL flag set in the lcb_RESPSTATS::rflags field. When this response is received no more callbacks for this command shall be invoked.
lcb_error_t lcb_server_versions3 | ( | lcb_t | instance, |
const void * | cookie, | ||
const lcb_CMDBASE * | cmd | ||
) |
lcb_error_t lcb_server_verbosity3 | ( | lcb_t | instance, |
const void * | cookie, | ||
const lcb_CMDVERBOSITY * | cmd | ||
) |
struct lcb_RESPSTATS |
Response structure for cluster statistics.
The lcb_RESPSTATS::key field contains the statistic name (not the same as was passed in lcb_CMDSTATS::key which is the name of the statistical group).
Data Fields | ||
---|---|---|
void * | cookie |
Application-defined pointer passed as the cookie parameter when scheduling the command. |
const void * | key | Key for request. |
lcb_SIZE | nkey | Size of key. |
lcb_CAS | cas | CAS for response (if applicable) |
lcb_error_t | rc | Status code. |
lcb_U16 | version | ABI version for response. |
lcb_U16 | rflags |
Response specific flags. see lcb_RESPFLAGS |
const char * | server |
String containing the host:port of the server which sent this response. |
const char * | value | The value, if any, for the given statistic. |
lcb_SIZE | nvalue | Length of value. |
struct lcb_RESPMCVERSION |
Response structure for the version command.
Data Fields | ||
---|---|---|
void * | cookie |
Application-defined pointer passed as the cookie parameter when scheduling the command. |
const void * | key | Key for request. |
lcb_SIZE | nkey | Size of key. |
lcb_CAS | cas | CAS for response (if applicable) |
lcb_error_t | rc | Status code. |
lcb_U16 | version | ABI version for response. |
lcb_U16 | rflags |
Response specific flags. see lcb_RESPFLAGS |
const char * | server |
String containing the host:port of the server which sent this response. |
const char * | mcversion | The version string. |
lcb_SIZE | nversion | Length of the version string. |
#define LCB_CMDSTATS_F_KV |
The key is a stored item for which statistics should be retrieved.
This invokes the 'keystats' semantics. Note that when using keystats, a key must be present, and must not have any spaces in it.
typedef lcb_CMDBASE lcb_CMDSTATS |
Command structure for stats request The lcb_CMDSTATS::key field should contain the statistics key, or be empty if the default statistics are desired.
The #cmdflags field may contain the LCB_CMDSTATS_F_KV flag.