Name

lcb_get_num_nodes — Get the number of nodes currently in the cluster

Synopsis

cc [ flag … ] file… -lcouchbase [ library … ]

#include <libcouchbase/couchbase.h>
lcb_int32_t lcb_get_num_nodes(lcb_t instance);

DESCRIPTION

lcb_get_num_nodes() returns the number of nodes currently in the cluster.

EXAMPLES

#include <libcouchbase/couchbase.h>
...
lcb_t instance;
...
fprintf(stdout, "The bucket is using %d nodes\n",
        lcb_get_num_nodes(instance));
...

ATTRIBUTES

See lcb_attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE

Interface Stability

Committed

MT-Level

MT-Safe

COPYRIGHT

Copyright 2010-2013 Couchbase, Inc.

SEE ALSO

Learn more at http://www.couchbase.com/communities/c.

libcouchbase(3lib), lcb_create(3couchbase), lcb_attributes(5)