Package org.synchronoss.cpo.cassandra
Class ClusterDataSourceInfo
java.lang.Object
org.synchronoss.cpo.core.AbstractDataSourceInfo<ClusterDataSource>
org.synchronoss.cpo.cassandra.ClusterDataSourceInfo
- All Implemented Interfaces:
DataSourceInfo<ClusterDataSource>
Contains the information needed to connect to a Cassandra cluster
- Author:
- dberry
-
Constructor Summary
ConstructorsConstructorDescriptionClusterDataSourceInfo(String clusterName, String keySpace, List<String> contactPoints, int fetchSize, int batchSize) Constructs a ClusterDataSourceInfo -
Method Summary
Modifier and TypeMethodDescriptionGet the advertised hostname used by FixedHostNameAddressTranslatorGet the AddressTranslator implementation class nameGet the default address used by SubnetAddressTranslator when no subnet matchesGet whether addresses are resolved once at initialization (true) or on each reconnection (false)Get the CIDR-to-"host:port" map used by SubnetAddressTranslatorGet the application name sent in the STARTUP protocol messageGet the application version sent in the STARTUP protocol messagecom.datastax.oss.driver.api.core.auth.AuthProviderGet the AuthProviderGet the cluster nameGet the write-coalescer reschedule interval, in microsecondsGet the maximum number of coalescing runs per reschedule intervalGet the compression typeGet the timeout for internal queries run just after a connection opens, in millisecondsGet the local connection pool sizeGet the remote connection pool sizeGet the connect timeout, in millisecondsGet the request consistency level nameGet the control connection timeout, in millisecondsGet whether cross-DC failover is allowed for local consistency levelsGet the maximum number of nodes to contact in each remote datacenter for cross-DC failoverGet the ordered list of preferred remote datacenters for cross-DC failoverGet the defaultIdempotence flagGet the heartbeat interval, in secondsGet the heartbeat response timeout, in secondsGet the keyspace nameCollection<com.datastax.oss.driver.api.core.metadata.NodeStateListener> Get the NodeStateListenersGet the custom NodeDistanceEvaluator implementation class nameGet the LoadBalancingPolicy implementation class nameGet whether slow-replica avoidance is enabled on the default load balancing policyGet the local datacenter, required by the driver's default load balancing policy whenever contact points are supplied.Get the maximum number of orphaned requests before a connection is closed and replacedGet the maximum number of requests that can execute concurrently on a single connectionGet the MaxSchemaAgreementWaitSeconds settingGet whether schema metadata is enabledGet the maximum number of schema-change events accumulated before forcing a refreshGet the keyspace name-matching rules for which schema/token metadata is maintainedGet the page size for schema metadata requestsGet the timeout for schema metadata requests, in millisecondsGet the debounce window for coalescing schema-change events, in millisecondsGet whether token metadata is enabledGet the maximum number of topology events accumulated before forcing propagationGet the debounce window for coalescing topology events, in millisecondsGet the metrics factory class nameGet whether aggregable histogram buckets are generated for monitoring systemsGet the metric id generator class nameGet the prefix prepended to every generated metric nameGet the histogram tuning for the node "cql-messages" metricGet the node-level metric names to enableGet how long a node's metrics are kept registered after it leaves the cluster, in minutesGet the histogram tuning for the session "cql-requests" metricGet the session-level metric names to enableGet the histogram tuning for the session "throttling.delay" metricGet the admin event loop group shutdown quiet period, in secondsGet the admin event loop group shutdown timeout, in secondsGet the number of admin threadsGet whether the driver's internal threads are daemon threadsGet the I/O event loop group shutdown quiet period, in secondsGet the I/O event loop group shutdown timeout, in secondsGet the number of I/O threadsGet the request-timeout/speculative-execution timer's tick duration, in millisecondsGet the timer's hashed wheel sizeGet the default request page sizeGet the passwordintgetPort()Get the port numberGet whether the prepared-statement cache uses weak references for its valuesGet whether Session.prepare() calls are re-sent to all other active nodesGet the protocol maximum frame length, in bytesGet the ProtocolVersion nameGet the base reconnection delay, in millisecondsGet the maximum reconnection delay, in millisecondsGet the ReconnectionPolicy implementation class nameGet whether reconnection is attempted if all contact points are unreachable on first initGet whether system.prepared_statements is checked before repreparingGet whether the driver re-prepares statements on nodes that come back up or join the clusterGet the maximum number of concurrent reprepare requestsGet the maximum number of statements to reprepareGet the reprepare request timeout, in millisecondsGet whether the built-in RequestLogger logs failed requestsGet the maximum logged query string lengthGet the maximum logged bound-value lengthGet the maximum number of bound values logged per requestGet whether the built-in RequestLogger logs stack traces for failed queriesGet whether the built-in RequestLogger logs bound valuesGet whether the built-in RequestLogger logs slow requestsGet the threshold above which a successful request is classified as "slow", in millisecondsGet whether the built-in RequestLogger logs successful requestsGet whether server-generated query warnings are loggedGet the global request timeout, in millisecondsGet how many times the driver retries fetching a not-yet-ready query traceGet the consistency level used when fetching query tracesGet the interval between query trace fetch attempts, in millisecondsGet the RequestTracker implementation class names to registerGet whether a warning is logged when a request changes the active keyspaceGet whether contact-point addresses are resolved once at startup (true) or on every connection attempt (false)Get the RetryPolicy implementation class nameGet the schema agreement check interval, in millisecondsGet whether a warning is logged if schema agreement failsCollection<com.datastax.oss.driver.api.core.metadata.schema.SchemaChangeListener> Get the SchemaChangeListenersGet the request serial consistency level nameGet the maximum number of live sessions allowed to coexist in this JVM before a leak warning is loggedGet the timeout used when switching keyspace on a connection at runtime, in millisecondsGet the socket keep-alive flagGet the socket linger interval, in secondsGet the socket receive buffer size hintGet the socket reuse-address flagGet the socket send buffer size hintGet the delay between speculative executions, in millisecondsGet the maximum number of speculative executions (including the initial one)Get the SpeculativeExecutionPolicy implementation class nameGet whether a DNS reverse lookup is allowed for SAN addressesGet the cipher suites enabled for the default SSL engine factorycom.datastax.oss.driver.api.core.ssl.SslEngineFactoryGet the SslEngineFactoryGet whether server certificate hostname validation is enabledGet the keystore passwordGet the keystore pathGet the keystore reload interval, in minutesGet the truststore passwordGet the truststore pathGet the tcpNoDelay flagGet the RequestThrottler implementation class nameGet how often the throttler attempts to dequeue requests, in milliseconds (RateLimitingRequestThrottler only)Get the maximum number of requests allowed to execute in parallel (ConcurrencyLimitingRequestThrottler only)Get the maximum number of requests that can be enqueued once throttledGet the maximum allowed request rate (RateLimitingRequestThrottler only)Get the TimestampGenerator implementation class nameGet how often the drift warning is re-logged, in secondsGet how far timestamps may drift into the future before a warning is logged, in millisecondsGet whether the generator is forced to use Java's millisecond-precision system clockGet the usernameGet whether non-fatal connection-init errors are loggedbooleanHas CredentialsvoidsetAddressTranslatorAdvertisedHostname(String addressTranslatorAdvertisedHostname) Set the advertised hostname used by FixedHostNameAddressTranslatorvoidsetAddressTranslatorClassName(String addressTranslatorClassName) Set the AddressTranslator implementation class name.voidsetAddressTranslatorDefaultAddress(String addressTranslatorDefaultAddress) Set the default address used by SubnetAddressTranslator when no subnet matchesvoidsetAddressTranslatorResolveAddresses(Boolean addressTranslatorResolveAddresses) Set whether addresses are resolved once at initialization (true) or on each reconnection (false)voidsetAddressTranslatorSubnetAddresses(Map<String, String> addressTranslatorSubnetAddresses) Set the CIDR-to-"host:port" map used by SubnetAddressTranslatorvoidsetApplicationName(String applicationName) Set the application name sent in the STARTUP protocol messagevoidsetApplicationVersion(String applicationVersion) Set the application version sent in the STARTUP protocol messagevoidsetAuthProvider(com.datastax.oss.driver.api.core.auth.AuthProvider authProvider) Set the AuthProvidervoidsetClusterName(String clusterName) Set the cluster name.voidsetCoalescerIntervalMicros(Long coalescerIntervalMicros) Set the write-coalescer reschedule interval, in microseconds.voidsetCoalescerMaxRuns(Integer coalescerMaxRuns) Set the maximum number of coalescing runs per reschedule interval.voidsetCompressionType(String compressionType) Set the compression typevoidsetConnectInitQueryTimeoutMillis(Long connectInitQueryTimeoutMillis) Set the timeout for internal queries run just after a connection opens, in millisecondsvoidsetConnectionPoolLocalSize(Integer connectionPoolLocalSize) Set the local connection pool sizevoidsetConnectionPoolRemoteSize(Integer connectionPoolRemoteSize) Set the remote connection pool sizevoidsetConnectTimeoutMillis(Integer connectTimeoutMillis) Set the connect timeout, in millisecondsvoidsetConsistencyLevel(String consistencyLevel) Set the request consistency level name (e.g.voidsetControlConnectionTimeoutMillis(Long controlConnectionTimeoutMillis) Set the control connection timeout, in millisecondsvoidsetDcFailoverAllowForLocalConsistencyLevels(Boolean dcFailoverAllowForLocalConsistencyLevels) Set whether cross-DC failover is allowed for local consistency levelsvoidsetDcFailoverMaxNodesPerRemoteDc(Integer dcFailoverMaxNodesPerRemoteDc) Set the maximum number of nodes to contact in each remote datacenter for cross-DC failovervoidsetDcFailoverPreferredRemoteDcs(List<String> dcFailoverPreferredRemoteDcs) Set the ordered list of preferred remote datacenters for cross-DC failovervoidsetDefaultIdempotence(Boolean defaultIdempotence) Set the defaultIdempotence flagvoidsetHasCredentials(boolean credentials) Set hasCredentialsvoidsetHeartbeatIntervalSeconds(Integer heartbeatIntervalSeconds) Set the heartbeat interval, in secondsvoidsetHeartbeatTimeoutSeconds(Integer heartbeatTimeoutSeconds) Set the heartbeat response timeout, in secondsvoidsetListeners(Collection<com.datastax.oss.driver.api.core.metadata.NodeStateListener> listeners) Set the NodeStateListenersvoidsetLoadBalancingDistanceEvaluatorClassName(String loadBalancingDistanceEvaluatorClassName) Set the custom NodeDistanceEvaluator implementation class name.voidsetLoadBalancingPolicyClassName(String loadBalancingPolicyClassName) Set the LoadBalancingPolicy implementation class name.voidsetLoadBalancingSlowReplicaAvoidance(Boolean loadBalancingSlowReplicaAvoidance) Set whether slow-replica avoidance is enabled on the default load balancing policyvoidsetLocalDatacenter(String localDatacenter) Set the local datacentervoidsetMaxOrphanRequests(Integer maxOrphanRequests) Set the maximum number of orphaned requests before a connection is closed and replacedvoidsetMaxRequestsPerConnection(Integer maxRequestsPerConnection) Set the maximum number of requests that can execute concurrently on a single connectionvoidsetMaxSchemaAgreementWaitSeconds(Integer maxSchemaAgreementWaitSeconds) Set the MaxSchemaAgreementWaitSeconds settingvoidsetMetadataSchemaEnabled(Boolean metadataSchemaEnabled) Set whether schema metadata is enabledvoidsetMetadataSchemaMaxEvents(Integer metadataSchemaMaxEvents) Set the maximum number of schema-change events accumulated before forcing a refreshvoidsetMetadataSchemaRefreshedKeyspaces(List<String> metadataSchemaRefreshedKeyspaces) Set the keyspace name-matching rules for which schema/token metadata is maintainedvoidsetMetadataSchemaRequestPageSize(Integer metadataSchemaRequestPageSize) Set the page size for schema metadata requestsvoidsetMetadataSchemaRequestTimeoutMillis(Long metadataSchemaRequestTimeoutMillis) Set the timeout for schema metadata requests, in millisecondsvoidsetMetadataSchemaWindowMillis(Long metadataSchemaWindowMillis) Set the debounce window for coalescing schema-change events, in millisecondsvoidsetMetadataTokenMapEnabled(Boolean metadataTokenMapEnabled) Set whether token metadata is enabledvoidsetMetadataTopologyMaxEvents(Integer metadataTopologyMaxEvents) Set the maximum number of topology events accumulated before forcing propagationvoidsetMetadataTopologyWindowMillis(Long metadataTopologyWindowMillis) Set the debounce window for coalescing topology events, in millisecondsvoidsetMetricsFactoryClassName(String metricsFactoryClassName) Set the metrics factory class name (e.g.voidsetMetricsGenerateAggregableHistograms(Boolean metricsGenerateAggregableHistograms) Set whether aggregable histogram buckets are generated for monitoring systemsvoidsetMetricsIdGeneratorClassName(String metricsIdGeneratorClassName) Set the metric id generator class name (e.g.voidsetMetricsIdGeneratorPrefix(String metricsIdGeneratorPrefix) Set the prefix prepended to every generated metric namevoidsetMetricsNodeCqlMessages(HistogramOptions metricsNodeCqlMessages) Set the histogram tuning for the node "cql-messages" metricvoidsetMetricsNodeEnabled(List<String> metricsNodeEnabled) Set the node-level metric names to enablevoidsetMetricsNodeExpireAfterMinutes(Long metricsNodeExpireAfterMinutes) Set how long a node's metrics are kept registered after it leaves the cluster, in minutesvoidsetMetricsSessionCqlRequests(HistogramOptions metricsSessionCqlRequests) Set the histogram tuning for the session "cql-requests" metricvoidsetMetricsSessionEnabled(List<String> metricsSessionEnabled) Set the session-level metric names to enablevoidsetMetricsSessionThrottlingDelay(HistogramOptions metricsSessionThrottlingDelay) Set the histogram tuning for the session "throttling.delay" metricvoidsetNettyAdminGroupShutdownQuietPeriodSeconds(Integer nettyAdminGroupShutdownQuietPeriodSeconds) Set the admin event loop group shutdown quiet period, in secondsvoidsetNettyAdminGroupShutdownTimeoutSeconds(Integer nettyAdminGroupShutdownTimeoutSeconds) Set the admin event loop group shutdown timeout, in secondsvoidsetNettyAdminGroupSize(Integer nettyAdminGroupSize) Set the number of admin threads (cluster events, metadata refresh, reconnection scheduling)voidsetNettyDaemonThreads(Boolean nettyDaemonThreads) Set whether the driver's internal threads are daemon threadsvoidsetNettyIoGroupShutdownQuietPeriodSeconds(Integer nettyIoGroupShutdownQuietPeriodSeconds) Set the I/O event loop group shutdown quiet period, in secondsvoidsetNettyIoGroupShutdownTimeoutSeconds(Integer nettyIoGroupShutdownTimeoutSeconds) Set the I/O event loop group shutdown timeout, in secondsvoidsetNettyIoGroupSize(Integer nettyIoGroupSize) Set the number of I/O threads; 0 means availableProcessors() * 2voidsetNettyTimerTickDurationMillis(Long nettyTimerTickDurationMillis) Set the request-timeout/speculative-execution timer's tick duration, in millisecondsvoidsetNettyTimerTicksPerWheel(Integer nettyTimerTicksPerWheel) Set the timer's hashed wheel sizevoidsetPageSize(Integer pageSize) Set the default request page sizevoidsetPassword(String password) Set the passwordvoidsetPort(int port) Set the port numbervoidsetPreparedCacheWeakValues(Boolean preparedCacheWeakValues) Set whether the prepared-statement cache uses weak references for its valuesvoidsetPrepareOnAllNodes(Boolean prepareOnAllNodes) Set whether Session.prepare() calls are re-sent to all other active nodesvoidsetProtocolMaxFrameLengthBytes(Long protocolMaxFrameLengthBytes) Set the protocol maximum frame length, in bytesvoidsetProtocolVersion(String protocolVersion) Set the ProtocolVersion namevoidsetReconnectionBaseDelayMillis(Long reconnectionBaseDelayMillis) Set the base reconnection delay, in millisecondsvoidsetReconnectionMaxDelayMillis(Long reconnectionMaxDelayMillis) Set the maximum reconnection delay, in millisecondsvoidsetReconnectionPolicyClassName(String reconnectionPolicyClassName) Set the ReconnectionPolicy implementation class name.voidsetReconnectOnInit(Boolean reconnectOnInit) Set whether reconnection is attempted if all contact points are unreachable on first initvoidsetReprepareCheckSystemTable(Boolean reprepareCheckSystemTable) Set whether system.prepared_statements is checked before repreparingvoidsetReprepareEnabled(Boolean reprepareEnabled) Set whether the driver re-prepares statements on nodes that come back up or join the clustervoidsetReprepareMaxParallelism(Integer reprepareMaxParallelism) Set the maximum number of concurrent reprepare requestsvoidsetReprepareMaxStatements(Integer reprepareMaxStatements) Set the maximum number of statements to reprepare; 0 or negative means no limitvoidsetReprepareTimeoutMillis(Long reprepareTimeoutMillis) Set the reprepare request timeout, in millisecondsvoidsetRequestLoggerErrorEnabled(Boolean requestLoggerErrorEnabled) Set whether the built-in RequestLogger logs failed requestsvoidsetRequestLoggerMaxQueryLength(Integer requestLoggerMaxQueryLength) Set the maximum logged query string lengthvoidsetRequestLoggerMaxValueLength(Integer requestLoggerMaxValueLength) Set the maximum logged bound-value lengthvoidsetRequestLoggerMaxValues(Integer requestLoggerMaxValues) Set the maximum number of bound values logged per requestvoidsetRequestLoggerShowStackTraces(Boolean requestLoggerShowStackTraces) Set whether the built-in RequestLogger logs stack traces for failed queriesvoidsetRequestLoggerShowValues(Boolean requestLoggerShowValues) Set whether the built-in RequestLogger logs bound valuesvoidsetRequestLoggerSlowEnabled(Boolean requestLoggerSlowEnabled) Set whether the built-in RequestLogger logs slow requestsvoidsetRequestLoggerSlowThresholdMillis(Long requestLoggerSlowThresholdMillis) Set the threshold above which a successful request is classified as "slow", in millisecondsvoidsetRequestLoggerSuccessEnabled(Boolean requestLoggerSuccessEnabled) Set whether the built-in RequestLogger logs successful requestsvoidsetRequestLogWarnings(Boolean requestLogWarnings) Set whether server-generated query warnings are loggedvoidsetRequestTimeoutMillis(Long requestTimeoutMillis) Set the global request timeout, in millisecondsvoidsetRequestTraceAttempts(Integer requestTraceAttempts) Set how many times the driver retries fetching a not-yet-ready query tracevoidsetRequestTraceConsistencyLevel(String requestTraceConsistencyLevel) Set the consistency level used when fetching query tracesvoidsetRequestTraceIntervalMillis(Long requestTraceIntervalMillis) Set the interval between query trace fetch attempts, in millisecondsvoidsetRequestTrackerClasses(List<String> requestTrackerClasses) Set the RequestTracker implementation class names to register.voidsetRequestWarnIfSetKeyspace(Boolean requestWarnIfSetKeyspace) Set whether a warning is logged when a request changes the active keyspacevoidsetResolveContactPoints(Boolean resolveContactPoints) Set whether contact-point addresses are resolved once at startup (true) or on every connection attempt (false)voidsetRetryPolicyClassName(String retryPolicyClassName) Set the RetryPolicy implementation class name.voidsetSchemaAgreementIntervalMillis(Long schemaAgreementIntervalMillis) Set the schema agreement check interval, in millisecondsvoidsetSchemaAgreementWarnOnFailure(Boolean schemaAgreementWarnOnFailure) Set whether a warning is logged if schema agreement failsvoidsetSchemaChangeListeners(Collection<com.datastax.oss.driver.api.core.metadata.schema.SchemaChangeListener> schemaChangeListeners) Set the SchemaChangeListenersvoidsetSerialConsistencyLevel(String serialConsistencyLevel) Set the request serial consistency level name (e.g.voidsetSessionLeakThreshold(Integer sessionLeakThreshold) Set the maximum number of live sessions allowed to coexist in this JVM before a leak warning is loggedvoidsetSetKeyspaceTimeoutMillis(Long setKeyspaceTimeoutMillis) Set the timeout used when switching keyspace on a connection at runtime, in millisecondsvoidsetSocketKeepAlive(Boolean socketKeepAlive) Set the socket keep-alive flagvoidsetSocketLingerIntervalSeconds(Integer socketLingerIntervalSeconds) Set the socket linger interval, in secondsvoidsetSocketReceiveBufferSize(Integer socketReceiveBufferSize) Set the socket receive buffer size hintvoidsetSocketReuseAddress(Boolean socketReuseAddress) Set the socket reuse-address flagvoidsetSocketSendBufferSize(Integer socketSendBufferSize) Set the socket send buffer size hintvoidsetSpeculativeExecutionDelayMillis(Long speculativeExecutionDelayMillis) Set the delay between speculative executions, in milliseconds, used by the built-in ConstantSpeculativeExecutionPolicyvoidsetSpeculativeExecutionMaxExecutions(Integer speculativeExecutionMaxExecutions) Set the maximum number of speculative executions (including the initial one), used by the built-in ConstantSpeculativeExecutionPolicyvoidsetSpeculativeExecutionPolicyClassName(String speculativeExecutionPolicyClassName) Set the SpeculativeExecutionPolicy implementation class name.voidsetSslAllowDnsReverseLookupSan(Boolean sslAllowDnsReverseLookupSan) Set whether a DNS reverse lookup is allowed for SAN addressesvoidsetSslCipherSuites(List<String> sslCipherSuites) Set the cipher suites enabled for the default SSL engine factoryvoidsetSslEngineFactory(com.datastax.oss.driver.api.core.ssl.SslEngineFactory sslEngineFactory) Set the SslEngineFactoryvoidsetSslHostnameValidation(Boolean sslHostnameValidation) Set whether server certificate hostname validation is enabledvoidsetSslKeystorePassword(String sslKeystorePassword) Set the keystore passwordvoidsetSslKeystorePath(String sslKeystorePath) Set the keystore pathvoidsetSslKeystoreReloadIntervalMinutes(Long sslKeystoreReloadIntervalMinutes) Set the keystore reload interval, in minutesvoidsetSslTruststorePassword(String sslTruststorePassword) Set the truststore passwordvoidsetSslTruststorePath(String sslTruststorePath) Set the truststore pathvoidsetTcpNoDelay(Boolean tcpNoDelay) Set the tcpNoDelay flagvoidsetThrottlerClassName(String throttlerClassName) Set the RequestThrottler implementation class name (e.g.voidsetThrottlerDrainIntervalMillis(Long throttlerDrainIntervalMillis) Set how often the throttler attempts to dequeue requests, in milliseconds (RateLimitingRequestThrottler only)voidsetThrottlerMaxConcurrentRequests(Integer throttlerMaxConcurrentRequests) Set the maximum number of requests allowed to execute in parallel (ConcurrencyLimitingRequestThrottler only)voidsetThrottlerMaxQueueSize(Integer throttlerMaxQueueSize) Set the maximum number of requests that can be enqueued once throttledvoidsetThrottlerMaxRequestsPerSecond(Integer throttlerMaxRequestsPerSecond) Set the maximum allowed request rate (RateLimitingRequestThrottler only)voidsetTimestampGeneratorClassName(String timestampGeneratorClassName) Set the TimestampGenerator implementation class name.voidsetTimestampGeneratorDriftWarningIntervalSeconds(Long timestampGeneratorDriftWarningIntervalSeconds) Set how often the drift warning is re-logged, in secondsvoidsetTimestampGeneratorDriftWarningThresholdMillis(Long timestampGeneratorDriftWarningThresholdMillis) Set how far timestamps may drift into the future before a warning is logged, in millisecondsvoidsetTimestampGeneratorForceJavaClock(Boolean timestampGeneratorForceJavaClock) Set whether the generator is forced to use Java's millisecond-precision system clockvoidsetUserName(String userName) Set the usernamevoidsetWarnOnInitError(Boolean warnOnInitError) Set whether non-fatal connection-init errors are loggedMethods inherited from class org.synchronoss.cpo.core.AbstractDataSourceInfo
getBatchSize, getDataSource, getDataSourceName, getFetchSize
-
Constructor Details
-
ClusterDataSourceInfo
public ClusterDataSourceInfo(String clusterName, String keySpace, List<String> contactPoints, int fetchSize, int batchSize) Constructs a ClusterDataSourceInfo- Parameters:
clusterName- The cluster namekeySpace- The keyspacecontactPoints- The contact pointsfetchSize- the number of rows to fetch per round trip on a retrievebatchSize- the number of statements to batch together before executing
-
-
Method Details
-
getMaxSchemaAgreementWaitSeconds
Get the MaxSchemaAgreementWaitSeconds setting- Returns:
- The MaxSchemaAgreementWaitSeconds
-
setMaxSchemaAgreementWaitSeconds
Set the MaxSchemaAgreementWaitSeconds setting- Parameters:
maxSchemaAgreementWaitSeconds- The MaxSchemaAgreementWaitSeconds
-
getSchemaAgreementIntervalMillis
Get the schema agreement check interval, in milliseconds- Returns:
- the schema agreement check interval in milliseconds
-
setSchemaAgreementIntervalMillis
Set the schema agreement check interval, in milliseconds- Parameters:
schemaAgreementIntervalMillis- the schema agreement check interval in milliseconds
-
getSchemaAgreementWarnOnFailure
Get whether a warning is logged if schema agreement fails- Returns:
- the schemaAgreementWarnOnFailure flag
-
setSchemaAgreementWarnOnFailure
Set whether a warning is logged if schema agreement fails- Parameters:
schemaAgreementWarnOnFailure- the schemaAgreementWarnOnFailure flag
-
getControlConnectionTimeoutMillis
Get the control connection timeout, in milliseconds- Returns:
- the control connection timeout in milliseconds
-
setControlConnectionTimeoutMillis
Set the control connection timeout, in milliseconds- Parameters:
controlConnectionTimeoutMillis- the control connection timeout in milliseconds
-
getAddressTranslatorClassName
Get the AddressTranslator implementation class name- Returns:
- The fully qualified AddressTranslator implementation class name
-
setAddressTranslatorClassName
Set the AddressTranslator implementation class name. The driver instantiates this class itself via a (DriverContext) constructor.- Parameters:
addressTranslatorClassName- The fully qualified AddressTranslator implementation class name
-
getAddressTranslatorAdvertisedHostname
Get the advertised hostname used by FixedHostNameAddressTranslator- Returns:
- the advertised hostname
-
setAddressTranslatorAdvertisedHostname
Set the advertised hostname used by FixedHostNameAddressTranslator- Parameters:
addressTranslatorAdvertisedHostname- the advertised hostname
-
getAddressTranslatorDefaultAddress
Get the default address used by SubnetAddressTranslator when no subnet matches- Returns:
- the default address
-
setAddressTranslatorDefaultAddress
Set the default address used by SubnetAddressTranslator when no subnet matches- Parameters:
addressTranslatorDefaultAddress- the default address
-
getAddressTranslatorResolveAddresses
Get whether addresses are resolved once at initialization (true) or on each reconnection (false)- Returns:
- the addressTranslatorResolveAddresses flag
-
setAddressTranslatorResolveAddresses
Set whether addresses are resolved once at initialization (true) or on each reconnection (false)- Parameters:
addressTranslatorResolveAddresses- the addressTranslatorResolveAddresses flag
-
getAddressTranslatorSubnetAddresses
Get the CIDR-to-"host:port" map used by SubnetAddressTranslator- Returns:
- the subnet address map
-
setAddressTranslatorSubnetAddresses
public void setAddressTranslatorSubnetAddresses(Map<String, String> addressTranslatorSubnetAddresses) Set the CIDR-to-"host:port" map used by SubnetAddressTranslator- Parameters:
addressTranslatorSubnetAddresses- the subnet address map
-
getClusterName
Get the cluster name- Returns:
- The cluster name
-
setClusterName
Set the cluster name. Wired to the driver's session name (basic.session-name / SESSION_NAME), used as a log/metrics prefix, in addition to being used for the CPO datasource display name.- Parameters:
clusterName- The cluster name
-
getKeySpace
Get the keyspace name- Returns:
- The keyspace name
-
getLocalDatacenter
Get the local datacenter, required by the driver's default load balancing policy whenever contact points are supplied.- Returns:
- The local datacenter name
-
setLocalDatacenter
Set the local datacenter- Parameters:
localDatacenter- The local datacenter name
-
getApplicationName
Get the application name sent in the STARTUP protocol message- Returns:
- the application name
-
setApplicationName
Set the application name sent in the STARTUP protocol message- Parameters:
applicationName- the application name
-
getApplicationVersion
Get the application version sent in the STARTUP protocol message- Returns:
- the application version
-
setApplicationVersion
Set the application version sent in the STARTUP protocol message- Parameters:
applicationVersion- the application version
-
getPort
public int getPort()Get the port number- Returns:
- The port number
-
setPort
public void setPort(int port) Set the port number- Parameters:
port- The port number
-
getRequestTimeoutMillis
Get the global request timeout, in milliseconds- Returns:
- the request timeout in milliseconds
-
setRequestTimeoutMillis
Set the global request timeout, in milliseconds- Parameters:
requestTimeoutMillis- the request timeout in milliseconds
-
getLoadBalancingPolicyClassName
Get the LoadBalancingPolicy implementation class name- Returns:
- The fully qualified LoadBalancingPolicy implementation class name
-
setLoadBalancingPolicyClassName
Set the LoadBalancingPolicy implementation class name. The driver instantiates this class itself via a (DriverContext, String profileName) constructor.- Parameters:
loadBalancingPolicyClassName- The fully qualified LoadBalancingPolicy implementation class name
-
getLoadBalancingSlowReplicaAvoidance
Get whether slow-replica avoidance is enabled on the default load balancing policy- Returns:
- the loadBalancingSlowReplicaAvoidance flag
-
setLoadBalancingSlowReplicaAvoidance
Set whether slow-replica avoidance is enabled on the default load balancing policy- Parameters:
loadBalancingSlowReplicaAvoidance- the loadBalancingSlowReplicaAvoidance flag
-
getLoadBalancingDistanceEvaluatorClassName
Get the custom NodeDistanceEvaluator implementation class name- Returns:
- the fully qualified NodeDistanceEvaluator implementation class name
-
setLoadBalancingDistanceEvaluatorClassName
public void setLoadBalancingDistanceEvaluatorClassName(String loadBalancingDistanceEvaluatorClassName) Set the custom NodeDistanceEvaluator implementation class name. The driver instantiates this class itself via a (DriverContext, String profileName) constructor.- Parameters:
loadBalancingDistanceEvaluatorClassName- the fully qualified NodeDistanceEvaluator implementation class name
-
getDcFailoverMaxNodesPerRemoteDc
Get the maximum number of nodes to contact in each remote datacenter for cross-DC failover- Returns:
- the max nodes per remote datacenter
-
setDcFailoverMaxNodesPerRemoteDc
Set the maximum number of nodes to contact in each remote datacenter for cross-DC failover- Parameters:
dcFailoverMaxNodesPerRemoteDc- the max nodes per remote datacenter
-
getDcFailoverAllowForLocalConsistencyLevels
Get whether cross-DC failover is allowed for local consistency levels- Returns:
- the dcFailoverAllowForLocalConsistencyLevels flag
-
setDcFailoverAllowForLocalConsistencyLevels
public void setDcFailoverAllowForLocalConsistencyLevels(Boolean dcFailoverAllowForLocalConsistencyLevels) Set whether cross-DC failover is allowed for local consistency levels- Parameters:
dcFailoverAllowForLocalConsistencyLevels- the dcFailoverAllowForLocalConsistencyLevels flag
-
getDcFailoverPreferredRemoteDcs
Get the ordered list of preferred remote datacenters for cross-DC failover- Returns:
- the preferred remote datacenters
-
setDcFailoverPreferredRemoteDcs
Set the ordered list of preferred remote datacenters for cross-DC failover- Parameters:
dcFailoverPreferredRemoteDcs- the preferred remote datacenters
-
getReconnectionPolicyClassName
Get the ReconnectionPolicy implementation class name- Returns:
- The fully qualified ReconnectionPolicy implementation class name
-
setReconnectionPolicyClassName
Set the ReconnectionPolicy implementation class name. The driver instantiates this class itself via a (DriverContext) constructor.- Parameters:
reconnectionPolicyClassName- The fully qualified ReconnectionPolicy implementation class name
-
getReconnectionBaseDelayMillis
Get the base reconnection delay, in milliseconds- Returns:
- the base delay in milliseconds
-
setReconnectionBaseDelayMillis
Set the base reconnection delay, in milliseconds- Parameters:
reconnectionBaseDelayMillis- the base delay in milliseconds
-
getReconnectionMaxDelayMillis
Get the maximum reconnection delay, in milliseconds- Returns:
- the max delay in milliseconds
-
setReconnectionMaxDelayMillis
Set the maximum reconnection delay, in milliseconds- Parameters:
reconnectionMaxDelayMillis- the max delay in milliseconds
-
getReconnectOnInit
Get whether reconnection is attempted if all contact points are unreachable on first init- Returns:
- the reconnectOnInit flag
-
setReconnectOnInit
Set whether reconnection is attempted if all contact points are unreachable on first init- Parameters:
reconnectOnInit- the reconnectOnInit flag
-
getRetryPolicyClassName
Get the RetryPolicy implementation class name- Returns:
- The fully qualified RetryPolicy implementation class name
-
setRetryPolicyClassName
Set the RetryPolicy implementation class name. The driver instantiates this class itself via a (DriverContext, String profileName) constructor.- Parameters:
retryPolicyClassName- The fully qualified RetryPolicy implementation class name
-
hasCredentials
public boolean hasCredentials()Has Credentials- Returns:
- hasCredentials
-
setHasCredentials
public void setHasCredentials(boolean credentials) Set hasCredentials- Parameters:
credentials- hasCredentials
-
getUserName
Get the username- Returns:
- The username
-
setUserName
Set the username- Parameters:
userName- The username
-
getPassword
Get the password- Returns:
- The password
-
setPassword
Set the password- Parameters:
password- - The password
-
getAuthProvider
public com.datastax.oss.driver.api.core.auth.AuthProvider getAuthProvider()Get the AuthProvider- Returns:
- - The AuthProvider
-
setAuthProvider
public void setAuthProvider(com.datastax.oss.driver.api.core.auth.AuthProvider authProvider) Set the AuthProvider- Parameters:
authProvider- - The AuthProvider
-
getCompressionType
Get the compression type- Returns:
- - the protocol compression name ("lz4", "snappy", or "none")
-
setCompressionType
Set the compression type- Parameters:
compressionType- - the protocol compression name ("lz4", "snappy", or "none")
-
getProtocolMaxFrameLengthBytes
Get the protocol maximum frame length, in bytes- Returns:
- the max frame length in bytes
-
setProtocolMaxFrameLengthBytes
Set the protocol maximum frame length, in bytes- Parameters:
protocolMaxFrameLengthBytes- the max frame length in bytes
-
getSslEngineFactory
public com.datastax.oss.driver.api.core.ssl.SslEngineFactory getSslEngineFactory()Get the SslEngineFactory- Returns:
- - The SslEngineFactory
-
setSslEngineFactory
public void setSslEngineFactory(com.datastax.oss.driver.api.core.ssl.SslEngineFactory sslEngineFactory) Set the SslEngineFactory- Parameters:
sslEngineFactory- - The SslEngineFactory
-
getSslCipherSuites
Get the cipher suites enabled for the default SSL engine factory- Returns:
- the cipher suites
-
setSslCipherSuites
Set the cipher suites enabled for the default SSL engine factory- Parameters:
sslCipherSuites- the cipher suites
-
getSslHostnameValidation
Get whether server certificate hostname validation is enabled- Returns:
- the sslHostnameValidation flag
-
setSslHostnameValidation
Set whether server certificate hostname validation is enabled- Parameters:
sslHostnameValidation- the sslHostnameValidation flag
-
getSslAllowDnsReverseLookupSan
Get whether a DNS reverse lookup is allowed for SAN addresses- Returns:
- the sslAllowDnsReverseLookupSan flag
-
setSslAllowDnsReverseLookupSan
Set whether a DNS reverse lookup is allowed for SAN addresses- Parameters:
sslAllowDnsReverseLookupSan- the sslAllowDnsReverseLookupSan flag
-
getSslTruststorePath
Get the truststore path- Returns:
- the truststore path
-
setSslTruststorePath
Set the truststore path- Parameters:
sslTruststorePath- the truststore path
-
getSslTruststorePassword
Get the truststore password- Returns:
- the truststore password
-
setSslTruststorePassword
Set the truststore password- Parameters:
sslTruststorePassword- the truststore password
-
getSslKeystorePath
Get the keystore path- Returns:
- the keystore path
-
setSslKeystorePath
Set the keystore path- Parameters:
sslKeystorePath- the keystore path
-
getSslKeystorePassword
Get the keystore password- Returns:
- the keystore password
-
setSslKeystorePassword
Set the keystore password- Parameters:
sslKeystorePassword- the keystore password
-
getSslKeystoreReloadIntervalMinutes
Get the keystore reload interval, in minutes- Returns:
- the keystore reload interval in minutes
-
setSslKeystoreReloadIntervalMinutes
Set the keystore reload interval, in minutes- Parameters:
sslKeystoreReloadIntervalMinutes- the keystore reload interval in minutes
-
getListeners
Get the NodeStateListeners- Returns:
- - A collection of NodeStateListeners
-
setListeners
public void setListeners(Collection<com.datastax.oss.driver.api.core.metadata.NodeStateListener> listeners) Set the NodeStateListeners- Parameters:
listeners- - A collection of NodeStateListeners
-
getSchemaChangeListeners
public Collection<com.datastax.oss.driver.api.core.metadata.schema.SchemaChangeListener> getSchemaChangeListeners()Get the SchemaChangeListeners- Returns:
- a collection of SchemaChangeListeners
-
setSchemaChangeListeners
public void setSchemaChangeListeners(Collection<com.datastax.oss.driver.api.core.metadata.schema.SchemaChangeListener> schemaChangeListeners) Set the SchemaChangeListeners- Parameters:
schemaChangeListeners- a collection of SchemaChangeListeners
-
getMetricsFactoryClassName
Get the metrics factory class name- Returns:
- the metrics factory class name
-
setMetricsFactoryClassName
Set the metrics factory class name (e.g. "DefaultMetricsFactory", "MicrometerMetricsFactory", "NoopMetricsFactory", or a fully qualified custom class name)- Parameters:
metricsFactoryClassName- the metrics factory class name
-
getMetricsIdGeneratorClassName
Get the metric id generator class name- Returns:
- the metric id generator class name
-
setMetricsIdGeneratorClassName
Set the metric id generator class name (e.g. "DefaultMetricIdGenerator" or "TaggingMetricIdGenerator")- Parameters:
metricsIdGeneratorClassName- the metric id generator class name
-
getMetricsIdGeneratorPrefix
Get the prefix prepended to every generated metric name- Returns:
- the metric name prefix
-
setMetricsIdGeneratorPrefix
Set the prefix prepended to every generated metric name- Parameters:
metricsIdGeneratorPrefix- the metric name prefix
-
getMetricsGenerateAggregableHistograms
Get whether aggregable histogram buckets are generated for monitoring systems- Returns:
- the metricsGenerateAggregableHistograms flag
-
setMetricsGenerateAggregableHistograms
Set whether aggregable histogram buckets are generated for monitoring systems- Parameters:
metricsGenerateAggregableHistograms- the metricsGenerateAggregableHistograms flag
-
getMetricsSessionEnabled
Get the session-level metric names to enable- Returns:
- the enabled session metric names
-
setMetricsSessionEnabled
Set the session-level metric names to enable- Parameters:
metricsSessionEnabled- the enabled session metric names
-
getMetricsNodeEnabled
Get the node-level metric names to enable- Returns:
- the enabled node metric names
-
setMetricsNodeEnabled
Set the node-level metric names to enable- Parameters:
metricsNodeEnabled- the enabled node metric names
-
getMetricsNodeExpireAfterMinutes
Get how long a node's metrics are kept registered after it leaves the cluster, in minutes- Returns:
- the node metric expiry in minutes
-
setMetricsNodeExpireAfterMinutes
Set how long a node's metrics are kept registered after it leaves the cluster, in minutes- Parameters:
metricsNodeExpireAfterMinutes- the node metric expiry in minutes
-
getMetricsSessionCqlRequests
Get the histogram tuning for the session "cql-requests" metric- Returns:
- the histogram options
-
setMetricsSessionCqlRequests
Set the histogram tuning for the session "cql-requests" metric- Parameters:
metricsSessionCqlRequests- the histogram options
-
getMetricsSessionThrottlingDelay
Get the histogram tuning for the session "throttling.delay" metric- Returns:
- the histogram options
-
setMetricsSessionThrottlingDelay
Set the histogram tuning for the session "throttling.delay" metric- Parameters:
metricsSessionThrottlingDelay- the histogram options
-
getMetricsNodeCqlMessages
Get the histogram tuning for the node "cql-messages" metric- Returns:
- the histogram options
-
setMetricsNodeCqlMessages
Set the histogram tuning for the node "cql-messages" metric- Parameters:
metricsNodeCqlMessages- the histogram options
-
getConnectionPoolLocalSize
Get the local connection pool size- Returns:
- - the local connection pool size
-
setConnectionPoolLocalSize
Set the local connection pool size- Parameters:
connectionPoolLocalSize- - the local connection pool size
-
getConnectionPoolRemoteSize
Get the remote connection pool size- Returns:
- - the remote connection pool size
-
setConnectionPoolRemoteSize
Set the remote connection pool size- Parameters:
connectionPoolRemoteSize- - the remote connection pool size
-
getHeartbeatIntervalSeconds
Get the heartbeat interval, in seconds- Returns:
- - the heartbeat interval in seconds
-
setHeartbeatIntervalSeconds
Set the heartbeat interval, in seconds- Parameters:
heartbeatIntervalSeconds- - the heartbeat interval in seconds
-
getHeartbeatTimeoutSeconds
Get the heartbeat response timeout, in seconds- Returns:
- the heartbeat timeout in seconds
-
setHeartbeatTimeoutSeconds
Set the heartbeat response timeout, in seconds- Parameters:
heartbeatTimeoutSeconds- the heartbeat timeout in seconds
-
getConnectInitQueryTimeoutMillis
Get the timeout for internal queries run just after a connection opens, in milliseconds- Returns:
- the init query timeout in milliseconds
-
setConnectInitQueryTimeoutMillis
Set the timeout for internal queries run just after a connection opens, in milliseconds- Parameters:
connectInitQueryTimeoutMillis- the init query timeout in milliseconds
-
getSetKeyspaceTimeoutMillis
Get the timeout used when switching keyspace on a connection at runtime, in milliseconds- Returns:
- the set-keyspace timeout in milliseconds
-
setSetKeyspaceTimeoutMillis
Set the timeout used when switching keyspace on a connection at runtime, in milliseconds- Parameters:
setKeyspaceTimeoutMillis- the set-keyspace timeout in milliseconds
-
getMaxRequestsPerConnection
Get the maximum number of requests that can execute concurrently on a single connection- Returns:
- the max requests per connection
-
setMaxRequestsPerConnection
Set the maximum number of requests that can execute concurrently on a single connection- Parameters:
maxRequestsPerConnection- the max requests per connection
-
getMaxOrphanRequests
Get the maximum number of orphaned requests before a connection is closed and replaced- Returns:
- the max orphan requests
-
setMaxOrphanRequests
Set the maximum number of orphaned requests before a connection is closed and replaced- Parameters:
maxOrphanRequests- the max orphan requests
-
getWarnOnInitError
Get whether non-fatal connection-init errors are logged- Returns:
- the warnOnInitError flag
-
setWarnOnInitError
Set whether non-fatal connection-init errors are logged- Parameters:
warnOnInitError- the warnOnInitError flag
-
getConnectTimeoutMillis
Get the connect timeout, in milliseconds- Returns:
- - the connect timeout in milliseconds
-
setConnectTimeoutMillis
Set the connect timeout, in milliseconds- Parameters:
connectTimeoutMillis- - the connect timeout in milliseconds
-
getTcpNoDelay
Get the tcpNoDelay flag- Returns:
- - the tcpNoDelay flag
-
setTcpNoDelay
Set the tcpNoDelay flag- Parameters:
tcpNoDelay- - the tcpNoDelay flag
-
getSocketKeepAlive
Get the socket keep-alive flag- Returns:
- the socketKeepAlive flag
-
setSocketKeepAlive
Set the socket keep-alive flag- Parameters:
socketKeepAlive- the socketKeepAlive flag
-
getSocketReuseAddress
Get the socket reuse-address flag- Returns:
- the socketReuseAddress flag
-
setSocketReuseAddress
Set the socket reuse-address flag- Parameters:
socketReuseAddress- the socketReuseAddress flag
-
getSocketLingerIntervalSeconds
Get the socket linger interval, in seconds- Returns:
- the linger interval in seconds
-
setSocketLingerIntervalSeconds
Set the socket linger interval, in seconds- Parameters:
socketLingerIntervalSeconds- the linger interval in seconds
-
getSocketReceiveBufferSize
Get the socket receive buffer size hint- Returns:
- the receive buffer size
-
setSocketReceiveBufferSize
Set the socket receive buffer size hint- Parameters:
socketReceiveBufferSize- the receive buffer size
-
getSocketSendBufferSize
Get the socket send buffer size hint- Returns:
- the send buffer size
-
setSocketSendBufferSize
Set the socket send buffer size hint- Parameters:
socketSendBufferSize- the send buffer size
-
getConsistencyLevel
Get the request consistency level name- Returns:
- - the request consistency level name
-
setConsistencyLevel
Set the request consistency level name (e.g. "LOCAL_ONE")- Parameters:
consistencyLevel- - the request consistency level name
-
getSerialConsistencyLevel
Get the request serial consistency level name- Returns:
- - the request serial consistency level name
-
setSerialConsistencyLevel
Set the request serial consistency level name (e.g. "LOCAL_SERIAL")- Parameters:
serialConsistencyLevel- - the request serial consistency level name
-
getDefaultIdempotence
Get the defaultIdempotence flag- Returns:
- - the defaultIdempotence flag
-
setDefaultIdempotence
Set the defaultIdempotence flag- Parameters:
defaultIdempotence- - the defaultIdempotence flag
-
getPageSize
Get the default request page size- Returns:
- - the default request page size
-
setPageSize
Set the default request page size- Parameters:
pageSize- - the default request page size
-
getSpeculativeExecutionPolicyClassName
Get the SpeculativeExecutionPolicy implementation class name- Returns:
- - The fully qualified SpeculativeExecutionPolicy implementation class name
-
setSpeculativeExecutionPolicyClassName
Set the SpeculativeExecutionPolicy implementation class name. The driver instantiates this class itself via a (DriverContext, String profileName) constructor.- Parameters:
speculativeExecutionPolicyClassName- - The fully qualified SpeculativeExecutionPolicy implementation class name
-
getSpeculativeExecutionMaxExecutions
Get the maximum number of speculative executions (including the initial one)- Returns:
- the max executions
-
setSpeculativeExecutionMaxExecutions
Set the maximum number of speculative executions (including the initial one), used by the built-in ConstantSpeculativeExecutionPolicy- Parameters:
speculativeExecutionMaxExecutions- the max executions
-
getSpeculativeExecutionDelayMillis
Get the delay between speculative executions, in milliseconds- Returns:
- the delay in milliseconds
-
setSpeculativeExecutionDelayMillis
Set the delay between speculative executions, in milliseconds, used by the built-in ConstantSpeculativeExecutionPolicy- Parameters:
speculativeExecutionDelayMillis- the delay in milliseconds
-
getTimestampGeneratorClassName
Get the TimestampGenerator implementation class name- Returns:
- - The fully qualified TimestampGenerator implementation class name
-
setTimestampGeneratorClassName
Set the TimestampGenerator implementation class name. The driver instantiates this class itself via a (DriverContext) constructor.- Parameters:
timestampGeneratorClassName- - The fully qualified TimestampGenerator implementation class name
-
getTimestampGeneratorForceJavaClock
Get whether the generator is forced to use Java's millisecond-precision system clock- Returns:
- the timestampGeneratorForceJavaClock flag
-
setTimestampGeneratorForceJavaClock
Set whether the generator is forced to use Java's millisecond-precision system clock- Parameters:
timestampGeneratorForceJavaClock- the timestampGeneratorForceJavaClock flag
-
getTimestampGeneratorDriftWarningThresholdMillis
Get how far timestamps may drift into the future before a warning is logged, in milliseconds- Returns:
- the drift warning threshold in milliseconds
-
setTimestampGeneratorDriftWarningThresholdMillis
public void setTimestampGeneratorDriftWarningThresholdMillis(Long timestampGeneratorDriftWarningThresholdMillis) Set how far timestamps may drift into the future before a warning is logged, in milliseconds- Parameters:
timestampGeneratorDriftWarningThresholdMillis- the drift warning threshold in milliseconds
-
getTimestampGeneratorDriftWarningIntervalSeconds
Get how often the drift warning is re-logged, in seconds- Returns:
- the drift warning interval in seconds
-
setTimestampGeneratorDriftWarningIntervalSeconds
public void setTimestampGeneratorDriftWarningIntervalSeconds(Long timestampGeneratorDriftWarningIntervalSeconds) Set how often the drift warning is re-logged, in seconds- Parameters:
timestampGeneratorDriftWarningIntervalSeconds- the drift warning interval in seconds
-
getRequestWarnIfSetKeyspace
Get whether a warning is logged when a request changes the active keyspace- Returns:
- the requestWarnIfSetKeyspace flag
-
setRequestWarnIfSetKeyspace
Set whether a warning is logged when a request changes the active keyspace- Parameters:
requestWarnIfSetKeyspace- the requestWarnIfSetKeyspace flag
-
getRequestLogWarnings
Get whether server-generated query warnings are logged- Returns:
- the requestLogWarnings flag
-
setRequestLogWarnings
Set whether server-generated query warnings are logged- Parameters:
requestLogWarnings- the requestLogWarnings flag
-
getRequestTraceAttempts
Get how many times the driver retries fetching a not-yet-ready query trace- Returns:
- the trace fetch attempts
-
setRequestTraceAttempts
Set how many times the driver retries fetching a not-yet-ready query trace- Parameters:
requestTraceAttempts- the trace fetch attempts
-
getRequestTraceIntervalMillis
Get the interval between query trace fetch attempts, in milliseconds- Returns:
- the trace fetch interval in milliseconds
-
setRequestTraceIntervalMillis
Set the interval between query trace fetch attempts, in milliseconds- Parameters:
requestTraceIntervalMillis- the trace fetch interval in milliseconds
-
getRequestTraceConsistencyLevel
Get the consistency level used when fetching query traces- Returns:
- the trace consistency level name
-
setRequestTraceConsistencyLevel
Set the consistency level used when fetching query traces- Parameters:
requestTraceConsistencyLevel- the trace consistency level name
-
getRequestTrackerClasses
Get the RequestTracker implementation class names to register- Returns:
- the fully qualified RequestTracker implementation class names
-
setRequestTrackerClasses
Set the RequestTracker implementation class names to register. The driver instantiates each class itself via a (DriverContext) constructor.- Parameters:
requestTrackerClasses- the fully qualified RequestTracker implementation class names
-
getRequestLoggerSuccessEnabled
Get whether the built-in RequestLogger logs successful requests- Returns:
- the requestLoggerSuccessEnabled flag
-
setRequestLoggerSuccessEnabled
Set whether the built-in RequestLogger logs successful requests- Parameters:
requestLoggerSuccessEnabled- the requestLoggerSuccessEnabled flag
-
getRequestLoggerSlowThresholdMillis
Get the threshold above which a successful request is classified as "slow", in milliseconds- Returns:
- the slow-request threshold in milliseconds
-
setRequestLoggerSlowThresholdMillis
Set the threshold above which a successful request is classified as "slow", in milliseconds- Parameters:
requestLoggerSlowThresholdMillis- the slow-request threshold in milliseconds
-
getRequestLoggerSlowEnabled
Get whether the built-in RequestLogger logs slow requests- Returns:
- the requestLoggerSlowEnabled flag
-
setRequestLoggerSlowEnabled
Set whether the built-in RequestLogger logs slow requests- Parameters:
requestLoggerSlowEnabled- the requestLoggerSlowEnabled flag
-
getRequestLoggerErrorEnabled
Get whether the built-in RequestLogger logs failed requests- Returns:
- the requestLoggerErrorEnabled flag
-
setRequestLoggerErrorEnabled
Set whether the built-in RequestLogger logs failed requests- Parameters:
requestLoggerErrorEnabled- the requestLoggerErrorEnabled flag
-
getRequestLoggerMaxQueryLength
Get the maximum logged query string length- Returns:
- the max query length
-
setRequestLoggerMaxQueryLength
Set the maximum logged query string length- Parameters:
requestLoggerMaxQueryLength- the max query length
-
getRequestLoggerShowValues
Get whether the built-in RequestLogger logs bound values- Returns:
- the requestLoggerShowValues flag
-
setRequestLoggerShowValues
Set whether the built-in RequestLogger logs bound values- Parameters:
requestLoggerShowValues- the requestLoggerShowValues flag
-
getRequestLoggerMaxValueLength
Get the maximum logged bound-value length- Returns:
- the max value length
-
setRequestLoggerMaxValueLength
Set the maximum logged bound-value length- Parameters:
requestLoggerMaxValueLength- the max value length
-
getRequestLoggerMaxValues
Get the maximum number of bound values logged per request- Returns:
- the max number of bound values logged
-
setRequestLoggerMaxValues
Set the maximum number of bound values logged per request- Parameters:
requestLoggerMaxValues- the max number of bound values logged
-
getRequestLoggerShowStackTraces
Get whether the built-in RequestLogger logs stack traces for failed queries- Returns:
- the requestLoggerShowStackTraces flag
-
setRequestLoggerShowStackTraces
Set whether the built-in RequestLogger logs stack traces for failed queries- Parameters:
requestLoggerShowStackTraces- the requestLoggerShowStackTraces flag
-
getThrottlerClassName
Get the RequestThrottler implementation class name- Returns:
- the fully qualified RequestThrottler implementation class name
-
setThrottlerClassName
Set the RequestThrottler implementation class name (e.g. "ConcurrencyLimitingRequestThrottler", "RateLimitingRequestThrottler", or a fully qualified custom class name). The driver instantiates this class itself via a (DriverContext) constructor.- Parameters:
throttlerClassName- the fully qualified RequestThrottler implementation class name
-
getThrottlerMaxQueueSize
Get the maximum number of requests that can be enqueued once throttled- Returns:
- the max queue size
-
setThrottlerMaxQueueSize
Set the maximum number of requests that can be enqueued once throttled- Parameters:
throttlerMaxQueueSize- the max queue size
-
getThrottlerMaxConcurrentRequests
Get the maximum number of requests allowed to execute in parallel (ConcurrencyLimitingRequestThrottler only)- Returns:
- the max concurrent requests
-
setThrottlerMaxConcurrentRequests
Set the maximum number of requests allowed to execute in parallel (ConcurrencyLimitingRequestThrottler only)- Parameters:
throttlerMaxConcurrentRequests- the max concurrent requests
-
getThrottlerMaxRequestsPerSecond
Get the maximum allowed request rate (RateLimitingRequestThrottler only)- Returns:
- the max requests per second
-
setThrottlerMaxRequestsPerSecond
Set the maximum allowed request rate (RateLimitingRequestThrottler only)- Parameters:
throttlerMaxRequestsPerSecond- the max requests per second
-
getThrottlerDrainIntervalMillis
Get how often the throttler attempts to dequeue requests, in milliseconds (RateLimitingRequestThrottler only)- Returns:
- the drain interval in milliseconds
-
setThrottlerDrainIntervalMillis
Set how often the throttler attempts to dequeue requests, in milliseconds (RateLimitingRequestThrottler only)- Parameters:
throttlerDrainIntervalMillis- the drain interval in milliseconds
-
getMetadataSchemaEnabled
Get whether schema metadata is enabled- Returns:
- the metadataSchemaEnabled flag
-
setMetadataSchemaEnabled
Set whether schema metadata is enabled- Parameters:
metadataSchemaEnabled- the metadataSchemaEnabled flag
-
getMetadataSchemaRefreshedKeyspaces
Get the keyspace name-matching rules for which schema/token metadata is maintained- Returns:
- the keyspace matching rules
-
setMetadataSchemaRefreshedKeyspaces
Set the keyspace name-matching rules for which schema/token metadata is maintained- Parameters:
metadataSchemaRefreshedKeyspaces- the keyspace matching rules
-
getMetadataSchemaRequestTimeoutMillis
Get the timeout for schema metadata requests, in milliseconds- Returns:
- the schema request timeout in milliseconds
-
setMetadataSchemaRequestTimeoutMillis
Set the timeout for schema metadata requests, in milliseconds- Parameters:
metadataSchemaRequestTimeoutMillis- the schema request timeout in milliseconds
-
getMetadataSchemaRequestPageSize
Get the page size for schema metadata requests- Returns:
- the schema request page size
-
setMetadataSchemaRequestPageSize
Set the page size for schema metadata requests- Parameters:
metadataSchemaRequestPageSize- the schema request page size
-
getMetadataSchemaWindowMillis
Get the debounce window for coalescing schema-change events, in milliseconds- Returns:
- the schema debounce window in milliseconds
-
setMetadataSchemaWindowMillis
Set the debounce window for coalescing schema-change events, in milliseconds- Parameters:
metadataSchemaWindowMillis- the schema debounce window in milliseconds
-
getMetadataSchemaMaxEvents
Get the maximum number of schema-change events accumulated before forcing a refresh- Returns:
- the max schema events
-
setMetadataSchemaMaxEvents
Set the maximum number of schema-change events accumulated before forcing a refresh- Parameters:
metadataSchemaMaxEvents- the max schema events
-
getMetadataTopologyWindowMillis
Get the debounce window for coalescing topology events, in milliseconds- Returns:
- the topology debounce window in milliseconds
-
setMetadataTopologyWindowMillis
Set the debounce window for coalescing topology events, in milliseconds- Parameters:
metadataTopologyWindowMillis- the topology debounce window in milliseconds
-
getMetadataTopologyMaxEvents
Get the maximum number of topology events accumulated before forcing propagation- Returns:
- the max topology events
-
setMetadataTopologyMaxEvents
Set the maximum number of topology events accumulated before forcing propagation- Parameters:
metadataTopologyMaxEvents- the max topology events
-
getMetadataTokenMapEnabled
Get whether token metadata is enabled- Returns:
- the metadataTokenMapEnabled flag
-
setMetadataTokenMapEnabled
Set whether token metadata is enabled- Parameters:
metadataTokenMapEnabled- the metadataTokenMapEnabled flag
-
getPrepareOnAllNodes
Get whether Session.prepare() calls are re-sent to all other active nodes- Returns:
- the prepareOnAllNodes flag
-
setPrepareOnAllNodes
Set whether Session.prepare() calls are re-sent to all other active nodes- Parameters:
prepareOnAllNodes- the prepareOnAllNodes flag
-
getReprepareEnabled
Get whether the driver re-prepares statements on nodes that come back up or join the cluster- Returns:
- the reprepareEnabled flag
-
setReprepareEnabled
Set whether the driver re-prepares statements on nodes that come back up or join the cluster- Parameters:
reprepareEnabled- the reprepareEnabled flag
-
getReprepareCheckSystemTable
Get whether system.prepared_statements is checked before repreparing- Returns:
- the reprepareCheckSystemTable flag
-
setReprepareCheckSystemTable
Set whether system.prepared_statements is checked before repreparing- Parameters:
reprepareCheckSystemTable- the reprepareCheckSystemTable flag
-
getReprepareMaxStatements
Get the maximum number of statements to reprepare- Returns:
- the max statements to reprepare
-
setReprepareMaxStatements
Set the maximum number of statements to reprepare; 0 or negative means no limit- Parameters:
reprepareMaxStatements- the max statements to reprepare
-
getReprepareMaxParallelism
Get the maximum number of concurrent reprepare requests- Returns:
- the max reprepare parallelism
-
setReprepareMaxParallelism
Set the maximum number of concurrent reprepare requests- Parameters:
reprepareMaxParallelism- the max reprepare parallelism
-
getReprepareTimeoutMillis
Get the reprepare request timeout, in milliseconds- Returns:
- the reprepare timeout in milliseconds
-
setReprepareTimeoutMillis
Set the reprepare request timeout, in milliseconds- Parameters:
reprepareTimeoutMillis- the reprepare timeout in milliseconds
-
getPreparedCacheWeakValues
Get whether the prepared-statement cache uses weak references for its values- Returns:
- the preparedCacheWeakValues flag
-
setPreparedCacheWeakValues
Set whether the prepared-statement cache uses weak references for its values- Parameters:
preparedCacheWeakValues- the preparedCacheWeakValues flag
-
getNettyDaemonThreads
Get whether the driver's internal threads are daemon threads- Returns:
- the nettyDaemonThreads flag
-
setNettyDaemonThreads
Set whether the driver's internal threads are daemon threads- Parameters:
nettyDaemonThreads- the nettyDaemonThreads flag
-
getNettyIoGroupSize
Get the number of I/O threads- Returns:
- the I/O thread count
-
setNettyIoGroupSize
Set the number of I/O threads; 0 means availableProcessors() * 2- Parameters:
nettyIoGroupSize- the I/O thread count
-
getNettyIoGroupShutdownQuietPeriodSeconds
Get the I/O event loop group shutdown quiet period, in seconds- Returns:
- the quiet period in seconds
-
setNettyIoGroupShutdownQuietPeriodSeconds
public void setNettyIoGroupShutdownQuietPeriodSeconds(Integer nettyIoGroupShutdownQuietPeriodSeconds) Set the I/O event loop group shutdown quiet period, in seconds- Parameters:
nettyIoGroupShutdownQuietPeriodSeconds- the quiet period in seconds
-
getNettyIoGroupShutdownTimeoutSeconds
Get the I/O event loop group shutdown timeout, in seconds- Returns:
- the shutdown timeout in seconds
-
setNettyIoGroupShutdownTimeoutSeconds
Set the I/O event loop group shutdown timeout, in seconds- Parameters:
nettyIoGroupShutdownTimeoutSeconds- the shutdown timeout in seconds
-
getNettyAdminGroupSize
Get the number of admin threads- Returns:
- the admin thread count
-
setNettyAdminGroupSize
Set the number of admin threads (cluster events, metadata refresh, reconnection scheduling)- Parameters:
nettyAdminGroupSize- the admin thread count
-
getNettyAdminGroupShutdownQuietPeriodSeconds
Get the admin event loop group shutdown quiet period, in seconds- Returns:
- the quiet period in seconds
-
setNettyAdminGroupShutdownQuietPeriodSeconds
public void setNettyAdminGroupShutdownQuietPeriodSeconds(Integer nettyAdminGroupShutdownQuietPeriodSeconds) Set the admin event loop group shutdown quiet period, in seconds- Parameters:
nettyAdminGroupShutdownQuietPeriodSeconds- the quiet period in seconds
-
getNettyAdminGroupShutdownTimeoutSeconds
Get the admin event loop group shutdown timeout, in seconds- Returns:
- the shutdown timeout in seconds
-
setNettyAdminGroupShutdownTimeoutSeconds
Set the admin event loop group shutdown timeout, in seconds- Parameters:
nettyAdminGroupShutdownTimeoutSeconds- the shutdown timeout in seconds
-
getNettyTimerTickDurationMillis
Get the request-timeout/speculative-execution timer's tick duration, in milliseconds- Returns:
- the tick duration in milliseconds
-
setNettyTimerTickDurationMillis
Set the request-timeout/speculative-execution timer's tick duration, in milliseconds- Parameters:
nettyTimerTickDurationMillis- the tick duration in milliseconds
-
getNettyTimerTicksPerWheel
Get the timer's hashed wheel size- Returns:
- the ticks per wheel
-
setNettyTimerTicksPerWheel
Set the timer's hashed wheel size- Parameters:
nettyTimerTicksPerWheel- the ticks per wheel
-
getCoalescerIntervalMicros
Get the write-coalescer reschedule interval, in microseconds- Returns:
- the reschedule interval in microseconds
-
setCoalescerIntervalMicros
Set the write-coalescer reschedule interval, in microseconds. Expert-level tuning; the driver's default is fine for almost all use cases.- Parameters:
coalescerIntervalMicros- the reschedule interval in microseconds
-
getCoalescerMaxRuns
Get the maximum number of coalescing runs per reschedule interval- Returns:
- the max coalescing runs
-
setCoalescerMaxRuns
Set the maximum number of coalescing runs per reschedule interval. Expert-level tuning.- Parameters:
coalescerMaxRuns- the max coalescing runs
-
getSessionLeakThreshold
Get the maximum number of live sessions allowed to coexist in this JVM before a leak warning is logged- Returns:
- the session leak threshold
-
setSessionLeakThreshold
Set the maximum number of live sessions allowed to coexist in this JVM before a leak warning is logged- Parameters:
sessionLeakThreshold- the session leak threshold
-
getResolveContactPoints
Get whether contact-point addresses are resolved once at startup (true) or on every connection attempt (false)- Returns:
- the resolveContactPoints flag
-
setResolveContactPoints
Set whether contact-point addresses are resolved once at startup (true) or on every connection attempt (false)- Parameters:
resolveContactPoints- the resolveContactPoints flag
-
getProtocolVersion
Get the ProtocolVersion name- Returns:
- - the protocol version name (e.g. "V4")
-
setProtocolVersion
Set the ProtocolVersion name- Parameters:
protocolVersion- - the protocol version name (e.g. "V4")
-