Couchbase C Client  2.4.4
cntl.h
Go to the documentation of this file.
1 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /*
3  * Copyright 2013 Couchbase, Inc.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 
30 #ifndef LCB_CNTL_H
31 #define LCB_CNTL_H
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 
113 #define LCB_CNTL_SET 0x01
114 #define LCB_CNTL_GET 0x00
138 #define LCB_CNTL_OP_TIMEOUT 0x00
139 
147 #define LCB_CNTL_VIEW_TIMEOUT 0x01
148 
157 #define LCB_CNTL_BUCKETNAME 0x30
158 
167 #define LCB_CNTL_HANDLETYPE 0x04
168 
175 #define LCB_CNTL_VBCONFIG 0x05
176 
182 #define LCB_CNTL_IOPS 0x06
183 
184 
186 typedef struct lcb_cntl_vbinfo_st {
187  int version;
188 
189  union {
191  struct {
192  const void *key;
193  lcb_SIZE nkey;
194  int vbucket;
195  int server_index;
196  } v0;
197  } v;
199 
206 #define LCB_CNTL_VBMAP 0x07
207 
218 #define LCB_CNTL_CONFERRTHRESH 0x0c
219 
231 #define LCB_CNTL_DURABILITY_TIMEOUT 0x0d
232 
240 #define LCB_CNTL_DURABILITY_INTERVAL 0x0e
241 
245 #define LCB_CNTL_HTTP_TIMEOUT 0x0f
246 
262 #define LCB_CNTL_IOPS_DLOPEN_DEBUG 0x11
263 
269 #define LCB_CNTL_CONFIGURATION_TIMEOUT 0x12
270 
284 #define LCB_CNTL_RANDOMIZE_BOOTSTRAP_HOSTS 0x14
285 
301 #define LCB_CNTL_CONFIG_CACHE_LOADED 0x15
302 
319 #define LCB_CNTL_FORCE_SASL_MECH 0x16
320 
329 #define LCB_CNTL_MAX_REDIRECTS 0x17
330 
345 typedef enum { LCB_LOG_TRACE = 0, LCB_LOG_DEBUG, LCB_LOG_INFO, LCB_LOG_WARN,
346  LCB_LOG_ERROR, LCB_LOG_FATAL, LCB_LOG_MAX
348 
349 struct lcb_logprocs_st;
350 
366 typedef void (*lcb_logging_callback)(struct lcb_logprocs_st *procs,
367  unsigned int iid, const char *subsys, int severity, const char *srcfile,
368  int srcline, const char *fmt, va_list ap);
369 
378 typedef struct lcb_logprocs_st {
379  int version;
380  union { struct { lcb_logging_callback callback; } v0; } v;
381 } lcb_logprocs;
382 
392 #define LCB_CNTL_LOGGER 0x18
393 
411 #define LCB_CNTL_CONFDELAY_THRESH 0x19
412 
416 #define LCB_CNTL_CONFIG_TRANSPORT 0x1A
417 
437 #define LCB_CNTL_CONFIG_NODE_TIMEOUT 0x1B
438 
460 #define LCB_CNTL_HTCONFIG_IDLE_TIMEOUT 0x1C
461 
465 #define LCB_CNTL_CHANGESET 0x1F
466 
484 #define LCB_CNTL_CONFIGCACHE 0x21
485 
486 typedef enum {
487  LCB_SSL_ENABLED = 1 << 0,
489 } lcb_SSLOPTS;
490 
500 #define LCB_CNTL_SSL_MODE 0x22
501 
510 #define LCB_CNTL_SSL_CERT 0x23
511 /* For back compat */
512 #define LCB_CNTL_SSL_CACERT LCB_CNTL_SSL_CERT
513 
518 typedef enum {
528 
529 typedef enum {
536 
550 
557 
565 #define LCB_RETRYOPT_CREATE(mode, policy) (((mode) << 16) | policy)
566 
567 #define LCB_RETRYOPT_GETMODE(u) (u) >> 16
568 #define LCB_RETRYOPT_GETPOLICY(u) (u) & 0xffff
569 
610 #define LCB_CNTL_RETRYMODE 0x24
611 
615 typedef enum {
618 
621 
625 
645 #define LCB_CNTL_HTCONFIG_URLTYPE 0x25
646 
657 #define LCB_CNTL_SYNCDESTROY 0x28
658 
677 #define LCB_CNTL_CONLOGGER_LEVEL 0x29
678 
693 #define LCB_CNTL_DETAILED_ERRCODES 0x2A
694 
711 #define LCB_CNTL_RETRY_INTERVAL 0x2C
712 
723 #define LCB_CNTL_RETRY_BACKOFF 0x2D
724 
734 #define LCB_CNTL_HTTP_POOLSIZE 0x2E
735 
746 #define LCB_CNTL_HTTP_REFRESH_CONFIG_ON_ERROR 0x2F
747 
757 #define LCB_CNTL_SCHED_IMPLICIT_FLUSH 0x31
758 
760 #define LCB_CNTL__MAX 0x33
761 
763 #ifdef __cplusplus
764 }
765 #endif
766 
767 #include "cntl-private.h"
768 
769 #endif /* LCB_CNTL_H */
Only retry simple retrieval operations (excludes touch, get-and-touch, and get-locked) which may be r...
Definition: cntl.h:542
lcb_SSLOPTS
Definition: cntl.h:486
Select retry for NOT_MY_VBUCKET responses.
Definition: cntl.h:521
Select retry for network errors.
Definition: cntl.h:520
Structure containing mapping information for a key.
Definition: cntl.h:186
Use SSL.
Definition: cntl.h:487
/pools/default/b[s]/$bucket: Introduced in Couchbase Server 2.5
Definition: cntl.h:617
< maximum index
Definition: cntl.h:526
void(* lcb_logging_callback)(struct lcb_logprocs_st *procs, unsigned int iid, const char *subsys, int severity, const char *srcfile, int srcline, const char *fmt, va_list ap)
Logger callback.
Definition: cntl.h:366
lcb_log_severity_t
Logging Levels.
Definition: cntl.h:345
Retry all commands, disregarding any potential unintended receipt of errors or data mutation...
Definition: cntl.h:555
Select retry for topology.
Definition: cntl.h:519
Try 25PLUS first and fallback to COMPAT
Definition: cntl.h:623
Don't retry any commands.
Definition: cntl.h:535
/pools/default/buckets[Streaming]/$bucket.
Definition: cntl.h:620
lcb_HTCONFIG_URLTYPE
Enumeration representing various URL forms to use for the configuration stream.
Definition: cntl.h:615
Don't verify certificates.
Definition: cntl.h:488
Retry operations which may potentially fail because they have been accepted by a previous server...
Definition: cntl.h:549
lcb_RETRYCMDOPTS
Definition: cntl.h:529
Logging context.
Definition: cntl.h:378
lcb_RETRYMODEOPTS
Select retry mode to manipulate.
Definition: cntl.h:518
Retry when there is no node for the item.
Definition: cntl.h:525