public class DefaultCouchbaseEnvironment extends DefaultCoreEnvironment implements CouchbaseEnvironment
CouchbaseEnvironment.
This environment is intended to be reused and passed in across AsyncCluster instances. It is stateful and needs
to be shut down manually if it was passed in by the user. Some threads it manages are non-daemon threads.
Default settings can be customized through the DefaultCouchbaseEnvironment.Builder or through the setting of system properties. Latter
ones take always precedence and can be used to override builder settings at runtime too.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultCouchbaseEnvironment.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLIENT_GIT_VERSION |
protected static String |
CLIENT_VERSION |
static String |
SDK_PACKAGE_NAME_AND_VERSION |
static String |
SDK_USER_AGENT |
ANALYTICS_ENDPOINTS, AUTORELEASE_AFTER, BOOTSTRAP_CARRIER_DIRECT_PORT, BOOTSTRAP_CARRIER_ENABLED, BOOTSTRAP_CARRIER_SSL_PORT, BOOTSTRAP_HTTP_DIRECT_PORT, BOOTSTRAP_HTTP_ENABLED, BOOTSTRAP_HTTP_SSL_PORT, BUFFER_POOLING_ENABLED, CALLBACKS_ON_IO_POOL, CERT_AUTH_ENABLED, COMPRESSION_ENABLED, COMPUTATION_POOL_SIZE, CONFIG_POLL_FLOOR_INTERVAL, CONFIG_POLL_INTERVAL, CONTINUOUS_KEEPALIVE_ENABLED, CORE_GIT_VERSION, CORE_VERSION, DISCONNECT_TIMEOUT, FORCE_SASL_PLAIN, IO_POOL_SIZE, KEEPALIVE_ERROR_THRESHOLD, KEEPALIVE_TIMEOUT, KEEPALIVEINTERVAL, KEYVALUE_ENDPOINTS, MAX_REQUEST_LIFETIME, MEMCACHED_HASHING_STRATEGY, MIN_COMPRESSION_RATIO, MIN_COMPRESSION_SIZE, MUTATION_TOKENS_ENABLED, NETWORK_RESOLUTION, OBSERVE_INTERVAL_DELAY, OPERATION_TRACING_ENABLED, OPERATION_TRACING_SERVER_DUR_ENABLED, ORPHAN_REPORTING_ENABLED, PACKAGE_NAME_AND_VERSION, QUERY_ENDPOINTS, RECONNECT_DELAY, REQUEST_BUFFER_SIZE, RESPONSE_BUFFER_SIZE, RETRY_DELAY, RETRY_STRATEGY, SEARCH_ENDPOINTS, SOCKET_CONNECT_TIMEOUT, SSL_ENABLED, SSL_KEYSTORE, SSL_KEYSTORE_FILE, SSL_KEYSTORE_PASSWORD, SSL_TRUSTSTORE, SSL_TRUSTSTORE_FILE, SSL_TRUSTSTORE_PASSWORD, TCP_NODELAY_ENALED, USER_AGENT, VIEW_ENDPOINTS| Modifier and Type | Method and Description |
|---|---|
long |
analyticsTimeout()
The default timeout for analytics operations, set to
ANALYTICS_TIMEOUT. |
static DefaultCouchbaseEnvironment.Builder |
builder()
Returns the
DefaultCouchbaseEnvironment.Builder to customize environment settings. |
String |
clientBuild()
Returns build information on the Couchbase Java SDK client.
|
String |
clientVersion()
Returns version information on the Couchbase Java SDK client.
|
long |
connectTimeout()
The default timeout for connect operations, set to
CONNECT_TIMEOUT. |
static DefaultCouchbaseEnvironment |
create()
Creates a
CouchbaseEnvironment with default settings applied. |
CryptoManager |
cryptoManager()
Returns the crypto manager set.
|
boolean |
dnsSrvEnabled()
Returns whether DNS SRV lookup for the bootstrap nodes is enabled or not.
|
protected StringBuilder |
dumpParameters(StringBuilder sb) |
long |
kvTimeout()
The default timeout for binary (key/value) operations, set to
KV_TIMEOUT. |
long |
managementTimeout()
The default timeout for management operations, set to
MANAGEMENT_TIMEOUT. |
boolean |
propagateParentSpan()
If set to true, the code will check if a parent span is available and if so
use this implicitly as a parent.
|
long |
queryTimeout()
The default timeout for query operations, set to
QUERY_TIMEOUT. |
long |
searchTimeout()
The default timeout for search operations, set to
SEARCH_TIMEOUT. |
String |
toString() |
long |
viewTimeout()
The default timeout for view operations, set to
VIEW_TIMEOUT. |
analyticsIoPool, analyticsServiceConfig, autoreleaseAfter, booleanPropertyOr, bootstrapCarrierDirectPort, bootstrapCarrierEnabled, bootstrapCarrierSslPort, bootstrapHttpDirectPort, bootstrapHttpEnabled, bootstrapHttpSslPort, bufferPoolingEnabled, callbacksOnIoPool, certAuthEnabled, compressionEnabled, compressionMinRatio, compressionMinSize, computationPoolSize, configPollFloorInterval, configPollInterval, continuousKeepAliveEnabled, coreBuild, coreVersion, couchbaseCoreSendHook, disconnectTimeout, doublePropertyOr, eventBus, forceSaslPlain, instanceCounter, intPropertyOr, ioPool, ioPoolSize, keepAliveErrorThreshold, keepAliveInterval, keepAliveTimeout, kvEndpoints, kvIoPool, kvServiceConfig, longPropertyOr, maxAllowedInstances, maxAllowedInstances, maxRequestLifetime, memcachedHashingStrategy, mutationTokensEnabled, networkLatencyMetricsCollector, networkResolution, observeIntervalDelay, operationTracingEnabled, operationTracingServerDurationEnabled, orphanResponseReporter, orphanResponseReportingEnabled, packageNameAndVersion, queryEndpoints, queryIoPool, queryServiceConfig, reconnectDelay, requestBufferSize, requestBufferWaitStrategy, responseBufferSize, retryDelay, retryStrategy, runtimeMetricsCollector, scheduler, searchEndpoints, searchIoPool, searchServiceConfig, shutdown, shutdown, shutdownAsync, socketConnectTimeout, sslEnabled, sslKeystore, sslKeystoreFile, sslKeystorePassword, sslTruststore, sslTruststoreFile, sslTruststorePassword, stringPropertyOr, tcpNodelayEnabled, tracer, userAgent, viewEndpoints, viewIoPool, viewServiceConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitanalyticsIoPool, analyticsServiceConfig, autoreleaseAfter, bootstrapCarrierDirectPort, bootstrapCarrierEnabled, bootstrapCarrierSslPort, bootstrapHttpDirectPort, bootstrapHttpEnabled, bootstrapHttpSslPort, bufferPoolingEnabled, callbacksOnIoPool, certAuthEnabled, compressionEnabled, compressionMinRatio, compressionMinSize, computationPoolSize, configPollFloorInterval, configPollInterval, continuousKeepAliveEnabled, coreBuild, coreVersion, couchbaseCoreSendHook, disconnectTimeout, eventBus, forceSaslPlain, ioPool, ioPoolSize, keepAliveErrorThreshold, keepAliveInterval, keepAliveTimeout, kvEndpoints, kvIoPool, kvServiceConfig, maxRequestLifetime, mutationTokensEnabled, networkLatencyMetricsCollector, networkResolution, observeIntervalDelay, operationTracingEnabled, operationTracingServerDurationEnabled, orphanResponseReporter, orphanResponseReportingEnabled, packageNameAndVersion, queryEndpoints, queryIoPool, queryServiceConfig, reconnectDelay, requestBufferSize, requestBufferWaitStrategy, responseBufferSize, retryDelay, retryStrategy, runtimeMetricsCollector, scheduler, searchEndpoints, searchIoPool, searchServiceConfig, shutdown, shutdown, shutdownAsync, socketConnectTimeout, tcpNodelayEnabled, tracer, userAgent, viewEndpoints, viewIoPool, viewServiceConfigsslEnabled, sslKeystore, sslKeystoreFile, sslKeystorePassword, sslTruststore, sslTruststoreFile, sslTruststorePasswordmemcachedHashingStrategyprotected static String CLIENT_VERSION
protected static String CLIENT_GIT_VERSION
public static String SDK_PACKAGE_NAME_AND_VERSION
public static String SDK_USER_AGENT
public static DefaultCouchbaseEnvironment create()
CouchbaseEnvironment with default settings applied.DefaultCouchbaseEnvironment with default settings.public static DefaultCouchbaseEnvironment.Builder builder()
DefaultCouchbaseEnvironment.Builder to customize environment settings.DefaultCouchbaseEnvironment.Builder.public long managementTimeout()
CouchbaseEnvironmentMANAGEMENT_TIMEOUT.managementTimeout in interface CouchbaseEnvironmentpublic long queryTimeout()
CouchbaseEnvironmentQUERY_TIMEOUT.queryTimeout in interface CouchbaseEnvironmentpublic long viewTimeout()
CouchbaseEnvironmentVIEW_TIMEOUT.viewTimeout in interface CouchbaseEnvironmentpublic long searchTimeout()
CouchbaseEnvironmentSEARCH_TIMEOUT.searchTimeout in interface CouchbaseEnvironmentpublic long analyticsTimeout()
CouchbaseEnvironmentANALYTICS_TIMEOUT.analyticsTimeout in interface CouchbaseEnvironmentpublic long kvTimeout()
CouchbaseEnvironmentKV_TIMEOUT.kvTimeout in interface CouchbaseEnvironmentpublic long connectTimeout()
CouchbaseEnvironmentCONNECT_TIMEOUT.connectTimeout in interface CouchbaseEnvironmentpublic boolean dnsSrvEnabled()
CouchbaseEnvironmentdnsSrvEnabled in interface CouchbaseEnvironmentpublic String clientVersion()
CouchbaseEnvironmentclientVersion in interface CouchbaseEnvironmentfor a more specific build information (relevant for tracking
the exact version of the code the client was built from),
for the same information but relative to the core layer.public String clientBuild()
CouchbaseEnvironmentCouchbaseEnvironment.clientVersion() and thus is more relevant to track
the exact version of the code the client was built from.
Build information can contain VCS information like commit numbers, tags, etc...clientBuild in interface CouchbaseEnvironmentfor more generic version information.,
for the same information but relative to the core layer.public CryptoManager cryptoManager()
CouchbaseEnvironmentcryptoManager in interface CouchbaseEnvironmentpublic boolean propagateParentSpan()
CouchbaseEnvironmentpropagateParentSpan in interface CouchbaseEnvironmentprotected StringBuilder dumpParameters(StringBuilder sb)
dumpParameters in class DefaultCoreEnvironmentpublic String toString()
toString in class DefaultCoreEnvironmentCopyright © 2015 Couchbase, Inc.