Package org.apache.cassandra.config
Class DatabaseDescriptor
java.lang.Object
org.apache.cassandra.config.DatabaseDescriptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic voidstatic voidapplyAddressConfig(Config config) static voidstatic voidstatic voidstatic voidapplyPartitioner(Config conf) static voidstatic voidstatic voidstatic voidstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic voidEquivalent toclientInitialization(true).static voidclientInitialization(boolean failIfDaemonOrTool) Equivalent toclientInitialization(true, Config::new).static voidclientInitialization(boolean failIfDaemonOrTool, Supplier<Config> configSupplier) Initializes this class as a client, which means that just an empty configuration will be used.static voidCreates all storage-related directories.static IEndpointSnitchcreateEndpointSnitch(boolean dynamic, String snitchClassName) static voidstatic voiddaemonInitialization(Supplier<Config> config) static booleanstatic voidstatic booleanstatic voidstatic booleanstatic booleanstatic booleanstatic String[]Returns the list of all the directories where the data files can be stored (for local system and non local system keyspaces).static Stringstatic Integerstatic AuditLogOptionsstatic booleanstatic IAuthenticatorstatic booleanstatic IAuthorizerstatic ConsistencyLevelstatic ConsistencyLevelDeprecated.See CASSANDRA-17195static booleanstatic AutoRepairConfigstatic booleanstatic DurationSpec.IntSecondsBoundstatic intstatic intstatic longstatic intstatic intstatic intstatic booleanstatic intstatic InetAddressstatic InetAddressThis is the address used to reach this instance for the native protocol to communicate with clients.static intstatic intstatic intstatic longstatic booleanstatic intstatic Stringstatic longstatic ICIDRAuthorizerstatic booleanstatic intstatic SubnetGroupsstatic booleanstatic Stringstatic intstatic intstatic intgetColumnIndexSize(int defaultValue) static intstatic Config.CommitFailurePolicystatic ParameterizedClassstatic Stringstatic intMaximum number of buffers in the compression pool.static intsize of commitlog segments to allocatestatic Config.CommitLogSyncstatic longstatic intstatic Config.DiskAccessModeReturn commitlog disk access mode.static doublestatic doublestatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic longstatic longstatic Config.CQLStartTimestatic booleanstatic intstatic intstatic intstatic AbstractCryptoProviderstatic ParameterizedClassstatic intstatic Stringstatic booleanstatic ConsistencyLevelstatic intstatic intstatic intstatic booleanstatic booleanstatic intstatic booleanstatic booleanstatic Config.DiskAccessModestatic Config.DiskFailurePolicystatic doublestatic DiskOptimizationStrategystatic booleanstatic doublestatic booleanstatic intstatic intstatic EncryptionContextstatic IEndpointSnitchstatic booleanstatic doublestatic doublestatic doublestatic doublestatic booleanstatic booleanstatic intstatic Config.FlushCompressionstatic intstatic booleanstatic booleanstatic FullQueryLoggerOptionsstatic longstatic longstatic GuardrailsOptionsstatic PathAs this is at its heart a debug operation (getting a one-shot heapdump from an uncaught exception), we support both the more evolved cassandra.yaml approach but also the -XX param to override it on a one-off basis so you don't have to change the full config of a node or a cluster in order to get a heap dump from a single node that's misbehaving.static intstatic ParameterizedClassstatic Filestatic intstatic ConsistencyLevelstatic Config.DiskAccessModestatic longstatic intstatic intstatic Collection<String>static doublestatic doublestatic intstatic intstatic doublestatic booleanstatic intstatic intstatic intstatic intstatic intstatic intstatic IInternodeAuthenticatorstatic SubnetGroupsstatic intstatic intstatic intstatic intstatic intstatic intstatic booleanstatic intstatic intstatic intstatic longstatic InetAddressstatic Comparator<Replica>static Stringstatic String[]Returns the locations where the local system keyspaces data should be stored.static booleanstatic booleanstatic intstatic longstatic longstatic intstatic intstatic intstatic doublestatic intstatic intstatic intstatic Floatstatic Map<String,InheritingClass> static longstatic longstatic longstatic longstatic longgetMinRpcTimeout(TimeUnit unit) static longstatic EncryptionOptionsstatic booleanstatic Integerstatic longstatic longstatic longstatic intstatic longstatic longstatic longstatic intstatic intstatic longstatic intThis is the port used with RPC address for the native protocol to communicate with clients.static intstatic doubleHow much time the item is allowed to spend in (currently only Native) queue, compared tonativeTransportIdleTimeout(), before backpressure starts being applied.static booleanstatic intstatic booleanstatic longgetNativeTransportTimeout(TimeUnit timeUnit) static INetworkAuthorizerstatic intstatic String[]Returns the locations where the non local system keyspaces data should be stored.static intstatic booleanstatic IPartitionerstatic Stringstatic longstatic Stringstatic Stringstatic Stringstatic Stringstatic longgetPaxosPurgeGrace(TimeUnit units) static intstatic booleanstatic Config.PaxosVariantstatic longstatic booleanstatic intstatic intstatic intstatic doublestatic longgetPingTimeout(TimeUnit unit) static longstatic booleanstatic longgetRangeRpcTimeout(TimeUnit unit) static doublestatic Configstatic longgetReadRpcTimeout(TimeUnit unit) static booleanstatic booleanstatic intstatic doublestatic booleanstatic booleanstatic intstatic RepairRetrySpecstatic longgetRepairRpcTimeout(TimeUnit unit) static intstatic intstatic intstatic InetAddressAndPortstatic UUIDstatic Collection<String>static IRoleManagerstatic booleanstatic intstatic intstatic intstatic Stringstatic intstatic intstatic longstatic InetAddressThis is the address used to bind for the native protocol to communicate with clients.static booleanstatic longgetRpcTimeout(TimeUnit unit) static intstatic intstatic booleanstatic Stringstatic SeedProviderstatic Set<InetAddressAndPort>getSeeds()static SSTableFormat<?,?> static FilegetSerializedCachePath(CacheService.CacheType cacheType, String version, String extension) static OptionalDoublestatic booleanstatic longgetSlowQueryTimeout(TimeUnit unit) static longstatic com.google.common.util.concurrent.RateLimiterstatic intstatic com.google.common.collect.ImmutableMap<String,SSTableFormat<?, ?>> static intThis method can return negative number for disabledstatic booleanstatic StartupChecksOptionsstatic StorageCompatibilityModestatic intstatic intstatic intstatic DurationSpec.IntSecondsBoundstatic booleanstatic doublestatic doublestatic intstatic intstatic doublestatic intstatic intstatic longstatic intstatic intstatic booleanstatic booleanstatic intstatic longstatic intstatic longstatic longstatic booleanstatic intstatic longgetWriteRpcTimeout(TimeUnit unit) static booleanstatic booleanstatic booleanstatic booleanstatic voidstatic Config.InternodeCompressionstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic Configstatic intstatic longstatic IFailureDetectorstatic booleanstatic Config.PaxosStatePurgingstatic booleanstatic booleanstatic booleanstatic voidreportUnconfirmedRepairedDataMismatches(boolean enabled) static voidresetSSTableFormats(Iterable<SSTableFormat.Factory> factories, Config.SSTableConfig config) static intstatic voidsetAuditLoggingOptions(AuditLogOptions auditLoggingOptions) static voidsetAuthenticator(IAuthenticator authenticator) static voidsetAuthFromRoot(boolean fromRoot) static voidsetAuthorizer(IAuthorizer authorizer) static voidstatic voidstatic voidsetAutoHintsCleanupEnabled(boolean value) static voidsetAutomaticSSTableUpgradeEnabled(boolean enabled) static voidsetAutoOptimiseFullRepairStreams(boolean enabled) static voidsetAutoOptimiseIncRepairStreams(boolean enabled) static voidsetAutoOptimisePreviewRepairStreams(boolean enabled) static voidsetAutoSnapshot(boolean autoSnapshot) static voidstatic voidsetBatchlogEndpointStrategy(Config.BatchlogEndpointStrategy batchlogEndpointStrategy) static voidsetBatchlogReplayThrottleInKiB(int throttleInKiB) static voidsetBatchSizeFailThresholdInKiB(int threshold) static voidsetBatchSizeWarnThresholdInKiB(int threshold) static voidsetBroadcastAddress(InetAddress broadcastAdd) static voidsetBroadcastRpcAddress(InetAddress broadcastRPCAddr) static voidsetCachedReplicaRowsFailThreshold(int threshold) static voidsetCachedReplicaRowsWarnThreshold(int threshold) static voidsetCacheLoadTimeout(int seconds) static voidsetCasContentionTimeout(long timeOutInMillis) static voidsetCDCBlockWrites(boolean val) static voidsetCDCEnabled(boolean cdc_enabled) static voidsetCDCOnRepairEnabled(boolean val) static voidsetCDCTotalSpaceInMiB(int mibs) static voidsetCheckForDuplicateRowsDuringCompaction(boolean enabled) static voidsetCheckForDuplicateRowsDuringReads(boolean enabled) static voidsetCIDRAuthorizer(ICIDRAuthorizer cidrAuthorizer) static voidsetClientRequestSizeMetricsEnabled(boolean enabled) static voidsetColumnIndexCacheSize(int val) static voidsetColumnIndexSizeInKiB(int val) static voidstatic voidsetCommitLogCompression(ParameterizedClass compressor) static voidsetCommitLogLocation(String value) static voidsetCommitLogMaxCompressionBuffersPerPool(int buffers) static voidstatic voidsetCommitLogSegmentSize(int sizeMebibytes) Update commitlog_segment_size in the tests.static voidstatic voidsetCommitLogSyncGroupWindow(long windowMillis) static voidsetCommitLogSyncPeriod(int periodMillis) static voidsetCommitLogWriteDiskAccessMode(Config.DiskAccessMode diskAccessMode) static voidsetCompactionThroughputBytesPerSec(int value) static voidsetCompactionThroughputMebibytesPerSec(int value) static voidsetCompressedReadAheadBufferSizeInKb(int sizeInKb) static voidsetConcurrentCompactors(int value) static voidsetConcurrentCounterWriters(int concurrent_counter_writes) static voidsetConcurrentIndexBuilders(int value) static voidsetConcurrentMerkleTreeRequests(int value) static voidsetConcurrentReaders(int concurrent_reads) static voidsetConcurrentValidations(int value) static voidsetConcurrentViewBuilders(int value) static voidsetConcurrentViewWriters(int concurrent_materialized_view_writes) static voidsetConcurrentWriters(int concurrent_writers) static voidstatic voidsetConsecutiveMessageErrorsThreshold(int value) static voidstatic voidstatic voidstatic voidsetCounterCacheKeysToSave(int counterCacheKeysToSave) static voidsetCounterCacheSavePeriod(int counterCacheSavePeriod) static voidsetCounterWriteRpcTimeout(long timeOutInMillis) static voidstatic voidsetCredentialsCacheActiveUpdate(boolean update) static intsetCredentialsCacheMaxEntries(int maxEntries) static voidsetCredentialsUpdateInterval(int updateInterval) static voidsetCredentialsValidity(int timeout) static voidsetCrossNodeTimeout(boolean crossNodeTimeout) static voidsetCryptoProvider(AbstractCryptoProvider cryptoProvider) static voidstatic voidsetDefaultKeyspaceRF(int value) static voidstatic voidsetDefaultSecondaryIndexEnabled(boolean enabled) static voidstatic voidsetDenylistInitialLoadRetrySeconds(int seconds) static voidsetDenylistMaxKeysPerTable(int value) static voidsetDenylistMaxKeysTotal(int value) static voidsetDenylistRangeReadsEnabled(boolean enabled) static voidsetDenylistReadsEnabled(boolean enabled) static voidsetDenylistRefreshSeconds(int seconds) static voidsetDenylistWritesEnabled(boolean enabled) static voidsetDiagnosticEventsEnabled(boolean enabled) static voidsetDisableSTCSInL0(boolean disabled) static voidstatic voidstatic voidsetDumpHeapOnUncaughtException(boolean enabled) static voidsetDynamicBadnessThreshold(double dynamicBadnessThreshold) static voidsetDynamicDataMaskingEnabled(boolean enabled) static voidsetDynamicResetInterval(int dynamicResetInterval) static voidsetDynamicUpdateInterval(int dynamicUpdateInterval) static voidsetEnableDropCompactStorage(boolean enableDropCompactStorage) static voidstatic voidstatic voidsetEnforceNativeDeadlineForHints(boolean value) static voidstatic voidstatic voidsetFileCacheEnabled(boolean enabled) static voidsetFlushCompression(Config.FlushCompression compression) static voidsetForceNewPreparedStatementBehaviour(boolean value) static voidsetForceOptimizedIndexStatusFormat(boolean value) static voidstatic voidsetGCLogThreshold(int gcLogThreshold) static voidsetGCWarnThreshold(int threshold) static voidsetHintedHandoffEnabled(boolean hintedHandoffEnabled) static voidsetHintedHandoffThrottleInKiB(int throttleInKiB) static voidsetHintsCompression(ParameterizedClass parameterizedClass) static voidstatic voidsetIncrementalBackupsEnabled(boolean value) static voidstatic voidsetIndexSummaryResizeIntervalInMinutes(int value) static voidstatic voidsetInterDCStreamThroughputOutboundBytesPerSec(long value) static voidstatic voidstatic voidsetInternodeAuthenticator(IInternodeAuthenticator internodeAuthenticator) static voidsetInternodeCompression(Config.InternodeCompression compression) static voidsetInternodeMaxMessageSizeInBytes(int value) static voidsetInternodeMessagingEncyptionOptions(EncryptionOptions.ServerEncryptionOptions encryptionOptions) static voidsetInternodeStreamingTcpUserTimeoutInMS(int value) static voidsetInternodeTcpConnectTimeoutInMS(int value) static voidsetInternodeTcpUserTimeoutInMS(int value) static voidsetInvalidateKeycacheOnSSTableDeletion(boolean invalidateCacheEntry) static voidsetKeyCacheKeysToSave(int keyCacheKeysToSave) static voidsetKeyCacheSavePeriod(int keyCacheSavePeriod) static voidsetListenAddress(InetAddress newlistenAddress) static voidsetListenOnBroadcastAddress(boolean listen_on_broadcast_address) static voidsetLocalDataCenter(String value) static voidstatic voidstatic voidsetLogOutOfTokenRangeRequests(boolean enabled) static voidsetMaterializedViewsEnabled(boolean enableMaterializedViews) static voidsetMaterializedViewsOnRepairEnabled(boolean val) static voidsetMaxConcurrentAutoUpgradeTasks(int value) static voidsetMaxHintsSizePerHostInMiB(int value) static voidsetMaxHintWindow(int ms) static voidsetMaxSpaceForCompactionsPerDrive(double percentage) static voidsetMaxTopSizePartitionCount(int value) static voidsetMaxTopTombstonePartitionCount(int value) static voidsetMaxValueSize(int maxValueSizeInBytes) static voidsetMigrateKeycacheOnCompaction(boolean migrateCacheEntry) static longsetMinFreeSpacePerDriveInMebibytes(long mebiBytes) static voidstatic voidsetMinTrackedPartitionTombstoneCount(long value) static voidsetNativeTransportAllowOlderProtocols(boolean isEnabled) static voidsetNativeTransportBackoffOnQueueOverload(long minBackoffMillis, long maxBackoffMillis, TimeUnit timeUnit) static voidsetNativeTransportConcurrentRequestDataInFlightInBytes(long maxRequestDataInFlightInBytes) static voidsetNativeTransportIdleTimeout(long nativeTransportTimeout) static voidsetNativeTransportMaxAuthThreads(int threads) If this value is set to <= 0 it will move auth requests to the standard request pool regardless of the current size of theDispatcher.authExecutor's active size.static voidsetNativeTransportMaxConcurrentConnections(long nativeTransportMaxConcurrentConnections) static voidsetNativeTransportMaxConcurrentConnectionsPerIp(long native_transport_max_concurrent_connections_per_ip) static voidsetNativeTransportMaxFrameSize(int bytes) static voidsetNativeTransportMaxMessageSizeInBytes(long maxMessageSizeInBytes) static voidsetNativeTransportMaxQueueItemAgeThreshold(double threshold) static voidsetNativeTransportMaxRequestDataInFlightPerIpInBytes(long maxRequestDataInFlightInBytes) static voidsetNativeTransportMaxRequestsPerSecond(int perSecond) static voidsetNativeTransportMaxThreads(int max_threads) static voidsetNativeTransportPort(int port) static voidstatic voidsetNativeTransportRateLimitingEnabled(boolean enabled) static voidsetNativeTransportReceiveQueueCapacityInBytes(int queueSize) static voidsetNativeTransportThrowOnOverload(boolean throwOnOverload) static voidsetNativeTransportTimeout(long dealine, TimeUnit timeUnit) static voidsetNetworkAuthorizer(INetworkAuthorizer networkAuthorizer) static voidsetPartitionDenylistEnabled(boolean enabled) static IPartitionersetPartitionerUnsafe(IPartitioner newPartitioner) static voidsetPaxosContentionMaxWait(String maxWait) static voidsetPaxosContentionMinDelta(String minDelta) static voidsetPaxosContentionMinWait(String minWait) static voidsetPaxosContentionWaitRandomizer(String waitRandomizer) static voidstatic voidsetPaxosPurgeGrace(long seconds) static voidsetPaxosRepairEnabled(boolean v) static voidsetPaxosRepairParallelism(int v) static voidsetPaxosRepairRaceWait(boolean paxosRepairRaceWait) static voidstatic voidsetPaxosVariant(Config.PaxosVariant variant) static voidsetPermissionsCacheActiveUpdate(boolean update) static intsetPermissionsCacheMaxEntries(int maxEntries) static voidsetPermissionsUpdateInterval(int updateInterval) static voidsetPermissionsValidity(int timeout) static voidsetPhiConvictThreshold(double phiConvictThreshold) static voidsetPrioritizeSAIOverLegacyIndex(boolean value) static voidsetRangeRpcTimeout(long timeOutInMillis) static voidsetRangeTombstoneListGrowthFactor(double resizeFactor) static voidsetReadRpcTimeout(long timeOutInMillis) static voidsetReadThresholdsEnabled(boolean value) static voidsetRejectOutOfTokenRangeRequests(boolean enabled) static voidsetRepairDiskHeadroomRejectRatio(double value) static voidsetRepairedDataTrackingForPartitionReadsEnabled(boolean enabled) static voidsetRepairedDataTrackingForRangeReadsEnabled(boolean enabled) static voidsetRepairPendingCompactionRejectThreshold(int value) static voidsetRepairRpcTimeout(Long timeOutInMillis) static voidsetRepairSessionMaxTreeDepth(int depth) static voidsetRepairSessionSpaceInMiB(int sizeInMiB) static voidstatic voidsetRepairStateSize(int size) static voidsetRoleManager(IRoleManager roleManager) static voidsetRolesCacheActiveUpdate(boolean update) static intsetRolesCacheMaxEntries(int maxEntries) static voidsetRolesUpdateInterval(int interval) static voidsetRolesValidity(int validity) static voidsetRowCacheKeysToSave(int rowCacheKeysToSave) static voidsetRowCacheSavePeriod(int rowCacheSavePeriod) static voidsetRowCacheSizeInMiB(long val) static voidstatic voidstatic voidsetRpcTimeout(long timeOutInMillis) static voidsetSASIIndexesEnabled(boolean enableSASIIndexes) static voidsetSeedProvider(SeedProvider newSeedProvider) static voidsetSelectedSSTableFormat(SSTableFormat<?, ?> format) static voidsetShouldListenOnBroadcastAddress(boolean shouldListenOnBroadcastAddress) static voidsetSkipPaxosRepairOnTopologyChange(boolean value) static voidstatic voidsetSkipStreamDiskSpaceCheck(boolean value) static voidsetSnapshotLinksPerSecond(long throttle) static voidsetSnapshotOnDuplicateRowDetection(boolean enabled) static voidsetSnapshotOnRepairedDataMismatch(boolean enabled) static voidNegative number for disabledstatic voidsetSStableReadRatePersistenceEnabled(boolean enabled) static booleansetStreamEntireSSTables(boolean value) static voidstatic voidstatic voidstatic voidsetStreamingStatsEnabled(boolean streamingStatsEnabled) static voidsetStreamThroughputOutboundBytesPerSec(long value) static voidstatic voidsetStreamThroughputOutboundMegabitsPerSec(int value) static voidsetTombstoneFailureThreshold(int threshold) static voidsetTombstoneWarnThreshold(int threshold) static voidsetTransferHintsOnDecommission(boolean enabled) static voidsetTransientReplicationEnabledUnsafe(boolean enabled) static voidsetTruncateRpcTimeout(long timeOutInMillis) static voidsetUseCreationTimeForHintTtl(boolean enabled) static voidsetUserDefinedFunctionFailTimeout(long userDefinedFunctionFailTimeout) static voidsetUserDefinedFunctionWarnTimeout(long userDefinedFunctionWarnTimeout) static voidsetUserFunctionTimeoutPolicy(Config.UserFunctionTimeoutPolicy userFunctionTimeoutPolicy) static voidsetUseStatementsEnabled(boolean enabled) static voidsetWriteRpcTimeout(long timeOutInMillis) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic Collection<String>tokensFromString(String tokenString) static voidEquivalent totoolInitialization(true).static voidtoolInitialization(boolean failIfDaemonOrClient) Initializes this class as a tool, which means that the configuration is loaded usingloadConfig()and all non-daemon configuration parts will be setup.static booleanstatic voidstatic booleanstatic voiduseDeterministicTableID(boolean value) static booleanstatic booleanstatic voiduseOffheapMerkleTrees(boolean value) static booleanChecks if the local system data must be stored in a specific location which supports redundancy.
-
Field Details
-
allowUnlimitedConcurrentValidations
public static volatile boolean allowUnlimitedConcurrentValidations
-
-
Constructor Details
-
DatabaseDescriptor
public DatabaseDescriptor()
-
-
Method Details
-
daemonInitialization
- Throws:
ConfigurationException
-
daemonInitialization
- Throws:
ConfigurationException
-
toolInitialization
public static void toolInitialization()Equivalent totoolInitialization(true). -
toolInitialization
public static void toolInitialization(boolean failIfDaemonOrClient) Initializes this class as a tool, which means that the configuration is loaded usingloadConfig()and all non-daemon configuration parts will be setup.- Parameters:
failIfDaemonOrClient- iftrueand a call todaemonInitialization()orclientInitialization()has been performed before, anAssertionErrorwill be thrown.
-
clientInitialization
public static void clientInitialization()Equivalent toclientInitialization(true). -
clientInitialization
public static void clientInitialization(boolean failIfDaemonOrTool) Equivalent toclientInitialization(true, Config::new). -
clientInitialization
public static void clientInitialization(boolean failIfDaemonOrTool, Supplier<Config> configSupplier) Initializes this class as a client, which means that just an empty configuration will be used.- Parameters:
failIfDaemonOrTool- iftrueand a call todaemonInitialization()ortoolInitialization()has been performed before, anAssertionErrorwill be thrown.
-
isClientInitialized
public static boolean isClientInitialized() -
isToolInitialized
public static boolean isToolInitialized() -
isClientOrToolInitialized
public static boolean isClientOrToolInitialized() -
isDaemonInitialized
public static boolean isDaemonInitialized() -
getRawConfig
-
loadConfig
- Throws:
ConfigurationException
-
setConfig
-
getGuardrailsConfig
-
getStartupChecksOptions
-
applyAddressConfig
- Throws:
ConfigurationException
-
applyAddressConfig
- Throws:
ConfigurationException
-
applyEncryptionContext
public static void applyEncryptionContext() -
applySslContext
public static void applySslContext() -
applyCryptoProvider
public static void applyCryptoProvider() -
applySeedProvider
public static void applySeedProvider() -
applyTokensConfig
public static void applyTokensConfig() -
applySnitch
public static void applySnitch() -
applyPartitioner
public static void applyPartitioner() -
applyPartitioner
-
createEndpointSnitch
public static IEndpointSnitch createEndpointSnitch(boolean dynamic, String snitchClassName) throws ConfigurationException - Throws:
ConfigurationException
-
getCryptoProvider
-
setCryptoProvider
-
getAuthenticator
-
setAuthenticator
-
getAuthorizer
-
setAuthorizer
-
getNetworkAuthorizer
-
setNetworkAuthorizer
-
getCIDRAuthorizer
-
setCIDRAuthorizer
-
getCidrChecksForSuperusers
public static boolean getCidrChecksForSuperusers() -
getCidrGroupsCacheRefreshInterval
public static int getCidrGroupsCacheRefreshInterval() -
getIpCacheMaxSize
public static int getIpCacheMaxSize() -
setAuthFromRoot
public static void setAuthFromRoot(boolean fromRoot) -
getAuthFromRoot
public static boolean getAuthFromRoot() -
getRoleManager
-
setRoleManager
-
getPermissionsValidity
public static int getPermissionsValidity() -
setPermissionsValidity
public static void setPermissionsValidity(int timeout) -
getPermissionsUpdateInterval
public static int getPermissionsUpdateInterval() -
setPermissionsUpdateInterval
public static void setPermissionsUpdateInterval(int updateInterval) -
getPermissionsCacheMaxEntries
public static int getPermissionsCacheMaxEntries() -
setPermissionsCacheMaxEntries
public static int setPermissionsCacheMaxEntries(int maxEntries) -
getPermissionsCacheActiveUpdate
public static boolean getPermissionsCacheActiveUpdate() -
setPermissionsCacheActiveUpdate
public static void setPermissionsCacheActiveUpdate(boolean update) -
getRolesValidity
public static int getRolesValidity() -
setRolesValidity
public static void setRolesValidity(int validity) -
getRolesUpdateInterval
public static int getRolesUpdateInterval() -
setRolesCacheActiveUpdate
public static void setRolesCacheActiveUpdate(boolean update) -
getRolesCacheActiveUpdate
public static boolean getRolesCacheActiveUpdate() -
setRolesUpdateInterval
public static void setRolesUpdateInterval(int interval) -
getRolesCacheMaxEntries
public static int getRolesCacheMaxEntries() -
setRolesCacheMaxEntries
public static int setRolesCacheMaxEntries(int maxEntries) -
getCredentialsValidity
public static int getCredentialsValidity() -
setCredentialsValidity
public static void setCredentialsValidity(int timeout) -
getCredentialsUpdateInterval
public static int getCredentialsUpdateInterval() -
setCredentialsUpdateInterval
public static void setCredentialsUpdateInterval(int updateInterval) -
getCredentialsCacheMaxEntries
public static int getCredentialsCacheMaxEntries() -
setCredentialsCacheMaxEntries
public static int setCredentialsCacheMaxEntries(int maxEntries) -
getCredentialsCacheActiveUpdate
public static boolean getCredentialsCacheActiveUpdate() -
setCredentialsCacheActiveUpdate
public static void setCredentialsCacheActiveUpdate(boolean update) -
getMaxValueSize
public static int getMaxValueSize() -
setMaxValueSize
public static void setMaxValueSize(int maxValueSizeInBytes) -
createAllDirectories
public static void createAllDirectories()Creates all storage-related directories. -
getPartitioner
-
getPartitionerName
-
setPartitionerUnsafe
-
getEndpointSnitch
-
setEndpointSnitch
-
newFailureDetector
-
setDefaultFailureDetector
public static void setDefaultFailureDetector() -
getColumnIndexSize
public static int getColumnIndexSize(int defaultValue) -
getColumnIndexSizeInKiB
public static int getColumnIndexSizeInKiB() -
setColumnIndexSizeInKiB
public static void setColumnIndexSizeInKiB(int val) -
getColumnIndexCacheSize
public static int getColumnIndexCacheSize() -
getColumnIndexCacheSizeInKiB
public static int getColumnIndexCacheSizeInKiB() -
setColumnIndexCacheSize
public static void setColumnIndexCacheSize(int val) -
getBatchSizeWarnThreshold
public static int getBatchSizeWarnThreshold() -
getBatchSizeWarnThresholdInKiB
public static int getBatchSizeWarnThresholdInKiB() -
getBatchSizeFailThreshold
public static long getBatchSizeFailThreshold() -
getBatchSizeFailThresholdInKiB
public static int getBatchSizeFailThresholdInKiB() -
getUnloggedBatchAcrossPartitionsWarnThreshold
public static int getUnloggedBatchAcrossPartitionsWarnThreshold() -
setBatchSizeWarnThresholdInKiB
public static void setBatchSizeWarnThresholdInKiB(int threshold) -
setBatchSizeFailThresholdInKiB
public static void setBatchSizeFailThresholdInKiB(int threshold) -
getInitialTokens
-
getAllocateTokensForKeyspace
-
getAllocateTokensForLocalRf
-
tokensFromString
-
getNumTokens
public static int getNumTokens() -
getReplaceAddress
-
getReplaceTokens
-
getReplaceNode
-
getClusterName
-
getStoragePort
public static int getStoragePort() -
getSSLStoragePort
public static int getSSLStoragePort() -
nativeTransportIdleTimeout
public static long nativeTransportIdleTimeout() -
setNativeTransportIdleTimeout
public static void setNativeTransportIdleTimeout(long nativeTransportTimeout) -
getRpcTimeout
-
setRpcTimeout
public static void setRpcTimeout(long timeOutInMillis) -
getReadRpcTimeout
-
setReadRpcTimeout
public static void setReadRpcTimeout(long timeOutInMillis) -
getRangeRpcTimeout
-
setRangeRpcTimeout
public static void setRangeRpcTimeout(long timeOutInMillis) -
getWriteRpcTimeout
-
setWriteRpcTimeout
public static void setWriteRpcTimeout(long timeOutInMillis) -
getCounterWriteRpcTimeout
-
setCounterWriteRpcTimeout
public static void setCounterWriteRpcTimeout(long timeOutInMillis) -
getCasContentionTimeout
-
setCasContentionTimeout
public static void setCasContentionTimeout(long timeOutInMillis) -
getTruncateRpcTimeout
-
setTruncateRpcTimeout
public static void setTruncateRpcTimeout(long timeOutInMillis) -
getRepairRpcTimeout
-
setRepairRpcTimeout
-
hasCrossNodeTimeout
public static boolean hasCrossNodeTimeout() -
setCrossNodeTimeout
public static void setCrossNodeTimeout(boolean crossNodeTimeout) -
getSlowQueryTimeout
-
getMinRpcTimeout
- Returns:
- the minimum configured {read, write, range, truncate, misc} timeout
-
getCQLStartTime
-
setCQLStartTime
-
getNativeTransportQueueMaxItemAgeThreshold
public static double getNativeTransportQueueMaxItemAgeThreshold()How much time the item is allowed to spend in (currently only Native) queue, compared tonativeTransportIdleTimeout(), before backpressure starts being applied. For example, setting this value to 0.5 means and having the largest of read/range/write/counter timeouts to 10 seconds means that if any item spends more than 5 seconds in the queue, backpressure will be applied to the socket associated with this queue. Set to 0 or any negative value to fully disable. -
setNativeTransportMaxQueueItemAgeThreshold
public static void setNativeTransportMaxQueueItemAgeThreshold(double threshold) -
getNativeTransportMinBackoffOnQueueOverload
-
getNativeTransportMaxBackoffOnQueueOverload
-
setNativeTransportBackoffOnQueueOverload
public static void setNativeTransportBackoffOnQueueOverload(long minBackoffMillis, long maxBackoffMillis, TimeUnit timeUnit) -
getNativeTransportTimeout
-
setNativeTransportTimeout
-
getEnforceNativeDeadlineForHints
public static boolean getEnforceNativeDeadlineForHints() -
setEnforceNativeDeadlineForHints
public static void setEnforceNativeDeadlineForHints(boolean value) -
getNativeTransportThrowOnOverload
public static boolean getNativeTransportThrowOnOverload() -
setNativeTransportThrowOnOverload
public static void setNativeTransportThrowOnOverload(boolean throwOnOverload) -
getPingTimeout
-
getPhiConvictThreshold
public static double getPhiConvictThreshold() -
setPhiConvictThreshold
public static void setPhiConvictThreshold(double phiConvictThreshold) -
getConcurrentReaders
public static int getConcurrentReaders() -
setConcurrentReaders
public static void setConcurrentReaders(int concurrent_reads) -
getConcurrentWriters
public static int getConcurrentWriters() -
setConcurrentWriters
public static void setConcurrentWriters(int concurrent_writers) -
getConcurrentCounterWriters
public static int getConcurrentCounterWriters() -
setConcurrentCounterWriters
public static void setConcurrentCounterWriters(int concurrent_counter_writes) -
getConcurrentViewWriters
public static int getConcurrentViewWriters() -
setConcurrentViewWriters
public static void setConcurrentViewWriters(int concurrent_materialized_view_writes) -
getFlushWriters
public static int getFlushWriters() -
getAvailableProcessors
public static int getAvailableProcessors() -
getConcurrentCompactors
public static int getConcurrentCompactors() -
setConcurrentCompactors
public static void setConcurrentCompactors(int value) -
getCompactionThroughputMebibytesPerSecAsInt
public static int getCompactionThroughputMebibytesPerSecAsInt() -
getCompactionThroughputBytesPerSec
public static double getCompactionThroughputBytesPerSec() -
getCompactionThroughputMebibytesPerSec
public static double getCompactionThroughputMebibytesPerSec() -
setCompactionThroughputBytesPerSec
public static void setCompactionThroughputBytesPerSec(int value) -
setCompactionThroughputMebibytesPerSec
public static void setCompactionThroughputMebibytesPerSec(int value) -
getConcurrentValidations
public static int getConcurrentValidations() -
getConcurrentIndexBuilders
public static int getConcurrentIndexBuilders() -
setConcurrentIndexBuilders
public static void setConcurrentIndexBuilders(int value) -
setConcurrentValidations
public static void setConcurrentValidations(int value) -
getConcurrentViewBuilders
public static int getConcurrentViewBuilders() -
setConcurrentViewBuilders
public static void setConcurrentViewBuilders(int value) -
getCompressedReadAheadBufferSize
public static int getCompressedReadAheadBufferSize() -
getCompressedReadAheadBufferSizeInKB
public static int getCompressedReadAheadBufferSizeInKB() -
setCompressedReadAheadBufferSizeInKb
public static void setCompressedReadAheadBufferSizeInKb(int sizeInKb) -
getMinFreeSpacePerDriveInMebibytes
public static long getMinFreeSpacePerDriveInMebibytes() -
getMinFreeSpacePerDriveInBytes
public static long getMinFreeSpacePerDriveInBytes() -
setMinFreeSpacePerDriveInMebibytes
public static long setMinFreeSpacePerDriveInMebibytes(long mebiBytes) -
getMaxSpaceForCompactionsPerDrive
public static double getMaxSpaceForCompactionsPerDrive() -
setMaxSpaceForCompactionsPerDrive
public static void setMaxSpaceForCompactionsPerDrive(double percentage) -
getDisableSTCSInL0
public static boolean getDisableSTCSInL0() -
setDisableSTCSInL0
public static void setDisableSTCSInL0(boolean disabled) -
getStreamThroughputOutboundMegabitsPerSec
public static int getStreamThroughputOutboundMegabitsPerSec() -
getStreamThroughputOutboundMegabitsPerSecAsDouble
public static double getStreamThroughputOutboundMegabitsPerSecAsDouble() -
getStreamThroughputOutboundMebibytesPerSec
public static double getStreamThroughputOutboundMebibytesPerSec() -
getStreamThroughputOutboundBytesPerSec
public static double getStreamThroughputOutboundBytesPerSec() -
getStreamThroughputOutboundMebibytesPerSecAsInt
public static int getStreamThroughputOutboundMebibytesPerSecAsInt() -
setStreamThroughputOutboundMebibytesPerSecAsInt
public static void setStreamThroughputOutboundMebibytesPerSecAsInt(int value) -
setStreamThroughputOutboundBytesPerSec
public static void setStreamThroughputOutboundBytesPerSec(long value) -
setStreamThroughputOutboundMegabitsPerSec
public static void setStreamThroughputOutboundMegabitsPerSec(int value) -
getEntireSSTableStreamThroughputOutboundMebibytesPerSec
public static double getEntireSSTableStreamThroughputOutboundMebibytesPerSec() -
getEntireSSTableStreamThroughputOutboundBytesPerSec
public static double getEntireSSTableStreamThroughputOutboundBytesPerSec() -
setEntireSSTableStreamThroughputOutboundMebibytesPerSec
public static void setEntireSSTableStreamThroughputOutboundMebibytesPerSec(int value) -
getInterDCStreamThroughputOutboundMegabitsPerSec
public static int getInterDCStreamThroughputOutboundMegabitsPerSec() -
getInterDCStreamThroughputOutboundMegabitsPerSecAsDouble
public static double getInterDCStreamThroughputOutboundMegabitsPerSecAsDouble() -
getInterDCStreamThroughputOutboundMebibytesPerSec
public static double getInterDCStreamThroughputOutboundMebibytesPerSec() -
getInterDCStreamThroughputOutboundBytesPerSec
public static double getInterDCStreamThroughputOutboundBytesPerSec() -
getInterDCStreamThroughputOutboundMebibytesPerSecAsInt
public static int getInterDCStreamThroughputOutboundMebibytesPerSecAsInt() -
setInterDCStreamThroughputOutboundMebibytesPerSecAsInt
public static void setInterDCStreamThroughputOutboundMebibytesPerSecAsInt(int value) -
setInterDCStreamThroughputOutboundBytesPerSec
public static void setInterDCStreamThroughputOutboundBytesPerSec(long value) -
setInterDCStreamThroughputOutboundMegabitsPerSec
public static void setInterDCStreamThroughputOutboundMegabitsPerSec(int value) -
getEntireSSTableInterDCStreamThroughputOutboundBytesPerSec
public static double getEntireSSTableInterDCStreamThroughputOutboundBytesPerSec() -
getEntireSSTableInterDCStreamThroughputOutboundMebibytesPerSec
public static double getEntireSSTableInterDCStreamThroughputOutboundMebibytesPerSec() -
setEntireSSTableInterDCStreamThroughputOutboundMebibytesPerSec
public static void setEntireSSTableInterDCStreamThroughputOutboundMebibytesPerSec(int value) -
useSpecificLocationForLocalSystemData
public static boolean useSpecificLocationForLocalSystemData()Checks if the local system data must be stored in a specific location which supports redundancy.- Returns:
trueif the local system keyspaces data must be stored in a different location,falseotherwise.
-
getLocalSystemKeyspacesDataFileLocations
Returns the locations where the local system keyspaces data should be stored.If the
local_system_data_file_directorywas unspecified, the local system keyspaces data should be stored in the first data directory. This approach guarantees that the server can tolerate the lost of all the disks but the first one.- Returns:
- the locations where should be stored the local system keyspaces data
-
getNonLocalSystemKeyspacesDataFileLocations
Returns the locations where the non local system keyspaces data should be stored.- Returns:
- the locations where the non local system keyspaces data should be stored.
-
getAllDataFileLocations
Returns the list of all the directories where the data files can be stored (for local system and non local system keyspaces).- Returns:
- the list of all the directories where the data files can be stored.
-
getCommitLogLocation
-
setCommitLogLocation
-
getCommitLogCompression
-
setCommitLogCompression
-
getFlushCompression
-
setFlushCompression
-
getCommitLogMaxCompressionBuffersInPool
public static int getCommitLogMaxCompressionBuffersInPool()Maximum number of buffers in the compression pool. The default value is 3, it should not be set lower than that (one segment in compression, one written to, one in reserve); delays in compression may cause the log to use more, depending on how soon the sync policy stops all writing threads. -
setCommitLogMaxCompressionBuffersPerPool
public static void setCommitLogMaxCompressionBuffersPerPool(int buffers) -
getMaxMutationSize
public static int getMaxMutationSize() -
getTombstoneWarnThreshold
public static int getTombstoneWarnThreshold() -
setTombstoneWarnThreshold
public static void setTombstoneWarnThreshold(int threshold) -
getTombstoneFailureThreshold
public static int getTombstoneFailureThreshold() -
setTombstoneFailureThreshold
public static void setTombstoneFailureThreshold(int threshold) -
getCachedReplicaRowsWarnThreshold
public static int getCachedReplicaRowsWarnThreshold() -
setCachedReplicaRowsWarnThreshold
public static void setCachedReplicaRowsWarnThreshold(int threshold) -
getCachedReplicaRowsFailThreshold
public static int getCachedReplicaRowsFailThreshold() -
setCachedReplicaRowsFailThreshold
public static void setCachedReplicaRowsFailThreshold(int threshold) -
getCommitLogSegmentSize
public static int getCommitLogSegmentSize()size of commitlog segments to allocate -
setCommitLogSegmentSize
public static void setCommitLogSegmentSize(int sizeMebibytes) Update commitlog_segment_size in the tests.CommitLogSegmentManagerCDCuses the CommitLogSegmentSize to estimate the file size on allocation. It is important to keep the value unchanged for the estimation to be correct.- Parameters:
sizeMebibytes-
-
getCommitLogWriteDiskAccessMode
Return commitlog disk access mode. -
setCommitLogWriteDiskAccessMode
-
initializeCommitLogDiskAccessMode
public static void initializeCommitLogDiskAccessMode() -
getSavedCachesLocation
-
getSeeds
-
getSeedProvider
-
setSeedProvider
-
getListenAddress
-
setListenAddress
-
getBroadcastAddress
-
shouldListenOnBroadcastAddress
public static boolean shouldListenOnBroadcastAddress() -
setShouldListenOnBroadcastAddress
public static void setShouldListenOnBroadcastAddress(boolean shouldListenOnBroadcastAddress) -
setListenOnBroadcastAddress
public static void setListenOnBroadcastAddress(boolean listen_on_broadcast_address) -
getInternodeAuthenticator
-
setInternodeAuthenticator
-
setBroadcastAddress
-
getRpcAddress
This is the address used to bind for the native protocol to communicate with clients. Most usages in the code refer to it as native address although some places still call it RPC address. It's not thrift RPC anymore so native is more appropriate. The address alone is not enough to uniquely identify this instance because multiple instances might use the same interface with different ports. -
setBroadcastRpcAddress
-
getBroadcastRpcAddress
This is the address used to reach this instance for the native protocol to communicate with clients. Most usages in the code refer to it as native address although some places still call it RPC address. It's not thrift RPC anymore so native is more appropriate. The address alone is not enough to uniquely identify this instance because multiple instances might use the same interface with different ports. May be null, please useFBUtilities.getBroadcastNativeAddressAndPort()instead. -
getRpcKeepAlive
public static boolean getRpcKeepAlive() -
getInternodeSocketSendBufferSizeInBytes
public static int getInternodeSocketSendBufferSizeInBytes() -
getInternodeSocketReceiveBufferSizeInBytes
public static int getInternodeSocketReceiveBufferSizeInBytes() -
getInternodeApplicationSendQueueCapacityInBytes
public static int getInternodeApplicationSendQueueCapacityInBytes() -
getInternodeApplicationSendQueueReserveEndpointCapacityInBytes
public static int getInternodeApplicationSendQueueReserveEndpointCapacityInBytes() -
getInternodeApplicationSendQueueReserveGlobalCapacityInBytes
public static int getInternodeApplicationSendQueueReserveGlobalCapacityInBytes() -
getInternodeApplicationReceiveQueueCapacityInBytes
public static int getInternodeApplicationReceiveQueueCapacityInBytes() -
getInternodeApplicationReceiveQueueReserveEndpointCapacityInBytes
public static int getInternodeApplicationReceiveQueueReserveEndpointCapacityInBytes() -
getInternodeApplicationReceiveQueueReserveGlobalCapacityInBytes
public static int getInternodeApplicationReceiveQueueReserveGlobalCapacityInBytes() -
getInternodeTcpConnectTimeoutInMS
public static int getInternodeTcpConnectTimeoutInMS() -
setInternodeTcpConnectTimeoutInMS
public static void setInternodeTcpConnectTimeoutInMS(int value) -
getInternodeTcpUserTimeoutInMS
public static int getInternodeTcpUserTimeoutInMS() -
setInternodeTcpUserTimeoutInMS
public static void setInternodeTcpUserTimeoutInMS(int value) -
getInternodeStreamingTcpUserTimeoutInMS
public static int getInternodeStreamingTcpUserTimeoutInMS() -
setInternodeStreamingTcpUserTimeoutInMS
public static void setInternodeStreamingTcpUserTimeoutInMS(int value) -
getInternodeMaxMessageSizeInBytes
public static int getInternodeMaxMessageSizeInBytes() -
setInternodeMaxMessageSizeInBytes
public static void setInternodeMaxMessageSizeInBytes(int value) -
startNativeTransport
public static boolean startNativeTransport() -
getNativeTransportPort
public static int getNativeTransportPort()This is the port used with RPC address for the native protocol to communicate with clients. Now that thrift RPC is no longer in use there is no RPC port. -
setNativeTransportPort
public static void setNativeTransportPort(int port) -
getNativeTransportPortSSL
public static int getNativeTransportPortSSL() -
setNativeTransportPortSSL
-
getNativeTransportMaxThreads
public static int getNativeTransportMaxThreads() -
setNativeTransportMaxThreads
public static void setNativeTransportMaxThreads(int max_threads) -
getNativeTransportMaxAuthThreads
-
setNativeTransportMaxAuthThreads
public static void setNativeTransportMaxAuthThreads(int threads) If this value is set to <= 0 it will move auth requests to the standard request pool regardless of the current size of theDispatcher.authExecutor's active size. seeDispatcher.dispatch(io.netty.channel.Channel, org.apache.cassandra.transport.Message.Request, org.apache.cassandra.transport.Dispatcher.FlushItemConverter, org.apache.cassandra.transport.ClientResourceLimits.Overload)for executor selection -
getNativeTransportMaxFrameSize
public static int getNativeTransportMaxFrameSize() -
setNativeTransportMaxFrameSize
public static void setNativeTransportMaxFrameSize(int bytes) -
getNativeTransportMaxConcurrentConnections
public static long getNativeTransportMaxConcurrentConnections() -
setNativeTransportMaxConcurrentConnections
public static void setNativeTransportMaxConcurrentConnections(long nativeTransportMaxConcurrentConnections) -
getNativeTransportMaxConcurrentConnectionsPerIp
public static long getNativeTransportMaxConcurrentConnectionsPerIp() -
setNativeTransportMaxConcurrentConnectionsPerIp
public static void setNativeTransportMaxConcurrentConnectionsPerIp(long native_transport_max_concurrent_connections_per_ip) -
useNativeTransportLegacyFlusher
public static boolean useNativeTransportLegacyFlusher() -
getNativeTransportAllowOlderProtocols
public static boolean getNativeTransportAllowOlderProtocols() -
setNativeTransportAllowOlderProtocols
public static void setNativeTransportAllowOlderProtocols(boolean isEnabled) -
getCommitLogSyncGroupWindow
public static long getCommitLogSyncGroupWindow() -
setCommitLogSyncGroupWindow
public static void setCommitLogSyncGroupWindow(long windowMillis) -
getNativeTransportReceiveQueueCapacityInBytes
public static int getNativeTransportReceiveQueueCapacityInBytes() -
setNativeTransportReceiveQueueCapacityInBytes
public static void setNativeTransportReceiveQueueCapacityInBytes(int queueSize) -
getNativeTransportMaxRequestDataInFlightPerIpInBytes
public static long getNativeTransportMaxRequestDataInFlightPerIpInBytes() -
getNativeTransportMaxMessageSizeInBytes
public static long getNativeTransportMaxMessageSizeInBytes() -
setNativeTransportMaxMessageSizeInBytes
public static void setNativeTransportMaxMessageSizeInBytes(long maxMessageSizeInBytes) -
getPaxosVariant
-
setPaxosVariant
-
getPaxosContentionWaitRandomizer
-
getPaxosContentionMinWait
-
getPaxosContentionMaxWait
-
getPaxosContentionMinDelta
-
setPaxosContentionWaitRandomizer
-
setPaxosContentionMinWait
-
setPaxosContentionMaxWait
-
setPaxosContentionMinDelta
-
skipPaxosRepairOnTopologyChange
public static boolean skipPaxosRepairOnTopologyChange() -
setSkipPaxosRepairOnTopologyChange
public static void setSkipPaxosRepairOnTopologyChange(boolean value) -
getPaxosPurgeGrace
-
setPaxosPurgeGrace
public static void setPaxosPurgeGrace(long seconds) -
paxosOnLinearizabilityViolations
-
setPaxosOnLinearizabilityViolations
-
paxosStatePurging
-
setPaxosStatePurging
-
paxosRepairEnabled
public static boolean paxosRepairEnabled() -
setPaxosRepairEnabled
public static void setPaxosRepairEnabled(boolean v) -
skipPaxosRepairOnTopologyChangeKeyspaces
-
setSkipPaxosRepairOnTopologyChangeKeyspaces
-
paxoTopologyRepairNoDcChecks
public static boolean paxoTopologyRepairNoDcChecks() -
paxoTopologyRepairStrictEachQuorum
public static boolean paxoTopologyRepairStrictEachQuorum() -
setNativeTransportMaxRequestDataInFlightPerIpInBytes
public static void setNativeTransportMaxRequestDataInFlightPerIpInBytes(long maxRequestDataInFlightInBytes) -
getNativeTransportMaxRequestDataInFlightInBytes
public static long getNativeTransportMaxRequestDataInFlightInBytes() -
setNativeTransportConcurrentRequestDataInFlightInBytes
public static void setNativeTransportConcurrentRequestDataInFlightInBytes(long maxRequestDataInFlightInBytes) -
getNativeTransportMaxRequestsPerSecond
public static int getNativeTransportMaxRequestsPerSecond() -
setNativeTransportMaxRequestsPerSecond
public static void setNativeTransportMaxRequestsPerSecond(int perSecond) -
setNativeTransportRateLimitingEnabled
public static void setNativeTransportRateLimitingEnabled(boolean enabled) -
getNativeTransportRateLimitingEnabled
public static boolean getNativeTransportRateLimitingEnabled() -
getCommitLogSyncPeriod
public static int getCommitLogSyncPeriod() -
getPeriodicCommitLogSyncBlock
public static long getPeriodicCommitLogSyncBlock() -
setCommitLogSyncPeriod
public static void setCommitLogSyncPeriod(int periodMillis) -
getCommitLogSync
-
setCommitLogSync
-
getDiskAccessMode
-
setDiskAccessMode
-
getIndexAccessMode
-
setIndexAccessMode
-
setDiskFailurePolicy
-
getDiskFailurePolicy
-
setCommitFailurePolicy
-
getCommitFailurePolicy
-
isSnapshotBeforeCompaction
public static boolean isSnapshotBeforeCompaction() -
isAutoSnapshot
public static boolean isAutoSnapshot() -
getAutoSnapshotTtl
-
setAutoSnapshotTtl
-
setAutoSnapshot
public static void setAutoSnapshot(boolean autoSnapshot) -
getAutoSnapshot
public static boolean getAutoSnapshot() -
getSnapshotLinksPerSecond
public static long getSnapshotLinksPerSecond() -
setSnapshotLinksPerSecond
public static void setSnapshotLinksPerSecond(long throttle) -
getSnapshotRateLimiter
public static com.google.common.util.concurrent.RateLimiter getSnapshotRateLimiter() -
isAutoBootstrap
public static boolean isAutoBootstrap() -
setHintedHandoffEnabled
public static void setHintedHandoffEnabled(boolean hintedHandoffEnabled) -
hintedHandoffEnabled
public static boolean hintedHandoffEnabled() -
hintedHandoffDisabledDCs
-
useDeterministicTableID
public static boolean useDeterministicTableID() -
useDeterministicTableID
public static void useDeterministicTableID(boolean value) -
enableHintsForDC
-
disableHintsForDC
-
setMaxHintWindow
public static void setMaxHintWindow(int ms) -
getMaxHintWindow
public static int getMaxHintWindow() -
setMaxHintsSizePerHostInMiB
public static void setMaxHintsSizePerHostInMiB(int value) -
getMaxHintsSizePerHostInMiB
public static int getMaxHintsSizePerHostInMiB() -
getMaxHintsSizePerHost
public static long getMaxHintsSizePerHost() -
getHintsDirectory
-
hintWindowPersistentEnabled
public static boolean hintWindowPersistentEnabled() -
getSerializedCachePath
public static File getSerializedCachePath(CacheService.CacheType cacheType, String version, String extension) -
getDynamicUpdateInterval
public static int getDynamicUpdateInterval() -
setDynamicUpdateInterval
public static void setDynamicUpdateInterval(int dynamicUpdateInterval) -
getDynamicResetInterval
public static int getDynamicResetInterval() -
setDynamicResetInterval
public static void setDynamicResetInterval(int dynamicResetInterval) -
getDynamicBadnessThreshold
public static double getDynamicBadnessThreshold() -
setDynamicBadnessThreshold
public static void setDynamicBadnessThreshold(double dynamicBadnessThreshold) -
getInternodeMessagingEncyptionOptions
-
setInternodeMessagingEncyptionOptions
public static void setInternodeMessagingEncyptionOptions(EncryptionOptions.ServerEncryptionOptions encryptionOptions) -
getNativeProtocolEncryptionOptions
-
updateNativeProtocolEncryptionOptions
public static void updateNativeProtocolEncryptionOptions(Function<EncryptionOptions, EncryptionOptions> update) -
getHintedHandoffThrottleInKiB
public static int getHintedHandoffThrottleInKiB() -
setHintedHandoffThrottleInKiB
public static void setHintedHandoffThrottleInKiB(int throttleInKiB) -
getBatchlogReplayThrottleInKiB
public static int getBatchlogReplayThrottleInKiB() -
setBatchlogReplayThrottleInKiB
public static void setBatchlogReplayThrottleInKiB(int throttleInKiB) -
isDynamicEndpointSnitch
public static boolean isDynamicEndpointSnitch() -
getBatchlogEndpointStrategy
-
setBatchlogEndpointStrategy
public static void setBatchlogEndpointStrategy(Config.BatchlogEndpointStrategy batchlogEndpointStrategy) -
getMaxHintsDeliveryThreads
public static int getMaxHintsDeliveryThreads() -
getHintsFlushPeriodInMS
public static int getHintsFlushPeriodInMS() -
getMaxHintsFileSize
public static long getMaxHintsFileSize() -
getHintsCompression
-
setHintsCompression
-
isAutoHintsCleanupEnabled
public static boolean isAutoHintsCleanupEnabled() -
setAutoHintsCleanupEnabled
public static void setAutoHintsCleanupEnabled(boolean value) -
getTransferHintsOnDecommission
public static boolean getTransferHintsOnDecommission() -
setTransferHintsOnDecommission
public static void setTransferHintsOnDecommission(boolean enabled) -
isUseCreationTimeForHintTtl
public static boolean isUseCreationTimeForHintTtl() -
setUseCreationTimeForHintTtl
public static void setUseCreationTimeForHintTtl(boolean enabled) -
isIncrementalBackupsEnabled
public static boolean isIncrementalBackupsEnabled() -
setIncrementalBackupsEnabled
public static void setIncrementalBackupsEnabled(boolean value) -
getFileCacheEnabled
public static boolean getFileCacheEnabled() -
setFileCacheEnabled
public static void setFileCacheEnabled(boolean enabled) -
getFileCacheSizeInMiB
public static int getFileCacheSizeInMiB() -
getNetworkingCacheSizeInMiB
public static int getNetworkingCacheSizeInMiB() -
getFileCacheRoundUp
public static boolean getFileCacheRoundUp() -
getDiskOptimizationStrategy
-
getDiskOptimizationEstimatePercentile
public static double getDiskOptimizationEstimatePercentile() -
getTotalCommitlogSpaceInMiB
public static long getTotalCommitlogSpaceInMiB() -
shouldMigrateKeycacheOnCompaction
public static boolean shouldMigrateKeycacheOnCompaction() -
setMigrateKeycacheOnCompaction
public static void setMigrateKeycacheOnCompaction(boolean migrateCacheEntry) -
shouldInvalidateKeycacheOnSSTableDeletion
public static boolean shouldInvalidateKeycacheOnSSTableDeletion() -
setInvalidateKeycacheOnSSTableDeletion
public static void setInvalidateKeycacheOnSSTableDeletion(boolean invalidateCacheEntry) -
getSSTablePreemptiveOpenIntervalInMiB
public static int getSSTablePreemptiveOpenIntervalInMiB()This method can return negative number for disabled -
setSSTablePreemptiveOpenIntervalInMiB
public static void setSSTablePreemptiveOpenIntervalInMiB(int mib) Negative number for disabled -
getTrickleFsync
public static boolean getTrickleFsync() -
getTrickleFsyncIntervalInKiB
public static int getTrickleFsyncIntervalInKiB() -
getKeyCacheSizeInMiB
public static long getKeyCacheSizeInMiB() -
getIndexSummaryCapacityInMiB
public static long getIndexSummaryCapacityInMiB() -
getKeyCacheSavePeriod
public static int getKeyCacheSavePeriod() -
setKeyCacheSavePeriod
public static void setKeyCacheSavePeriod(int keyCacheSavePeriod) -
getKeyCacheKeysToSave
public static int getKeyCacheKeysToSave() -
setKeyCacheKeysToSave
public static void setKeyCacheKeysToSave(int keyCacheKeysToSave) -
getRowCacheClassName
-
getRowCacheSizeInMiB
public static long getRowCacheSizeInMiB() -
setRowCacheSizeInMiB
public static void setRowCacheSizeInMiB(long val) -
getRowCacheSavePeriod
public static int getRowCacheSavePeriod() -
setRowCacheSavePeriod
public static void setRowCacheSavePeriod(int rowCacheSavePeriod) -
getRowCacheKeysToSave
public static int getRowCacheKeysToSave() -
getPaxosCacheSizeInMiB
public static long getPaxosCacheSizeInMiB() -
getCounterCacheSizeInMiB
public static long getCounterCacheSizeInMiB() -
setRowCacheKeysToSave
public static void setRowCacheKeysToSave(int rowCacheKeysToSave) -
getCounterCacheSavePeriod
public static int getCounterCacheSavePeriod() -
setCounterCacheSavePeriod
public static void setCounterCacheSavePeriod(int counterCacheSavePeriod) -
getCacheLoadTimeout
public static int getCacheLoadTimeout() -
setCacheLoadTimeout
public static void setCacheLoadTimeout(int seconds) -
getCounterCacheKeysToSave
public static int getCounterCacheKeysToSave() -
setCounterCacheKeysToSave
public static void setCounterCacheKeysToSave(int counterCacheKeysToSave) -
getStreamingKeepAlivePeriod
public static int getStreamingKeepAlivePeriod() -
getStreamingConnectionsPerHost
public static int getStreamingConnectionsPerHost() -
streamEntireSSTables
public static boolean streamEntireSSTables() -
setStreamEntireSSTables
public static boolean setStreamEntireSSTables(boolean value) -
getStreamTransferTaskTimeout
-
getSkipStreamDiskSpaceCheck
public static boolean getSkipStreamDiskSpaceCheck() -
setSkipStreamDiskSpaceCheck
public static void setSkipStreamDiskSpaceCheck(boolean value) -
getLocalDataCenter
-
setLocalDataCenter
-
getLocalComparator
-
internodeCompression
-
setInternodeCompression
-
getInterDCTcpNoDelay
public static boolean getInterDCTcpNoDelay() -
getMemtableHeapSpaceInMiB
public static long getMemtableHeapSpaceInMiB() -
getMemtableOffheapSpaceInMiB
public static long getMemtableOffheapSpaceInMiB() -
getMemtableAllocationType
-
getRepairSessionMaxTreeDepth
public static int getRepairSessionMaxTreeDepth() -
setRepairSessionMaxTreeDepth
public static void setRepairSessionMaxTreeDepth(int depth) -
getRepairSessionSpaceInMiB
public static int getRepairSessionSpaceInMiB() -
setRepairSessionSpaceInMiB
public static void setRepairSessionSpaceInMiB(int sizeInMiB) -
getConcurrentMerkleTreeRequests
public static int getConcurrentMerkleTreeRequests() -
setConcurrentMerkleTreeRequests
public static void setConcurrentMerkleTreeRequests(int value) -
getPaxosRepairParallelism
public static int getPaxosRepairParallelism() -
setPaxosRepairParallelism
public static void setPaxosRepairParallelism(int v) -
getMemtableCleanupThreshold
-
getMemtableConfigurations
-
getIndexSummaryResizeIntervalInMinutes
public static int getIndexSummaryResizeIntervalInMinutes() -
setIndexSummaryResizeIntervalInMinutes
public static void setIndexSummaryResizeIntervalInMinutes(int value) -
hasLargeAddressSpace
public static boolean hasLargeAddressSpace() -
getTracetypeRepairTTL
public static int getTracetypeRepairTTL() -
getTracetypeQueryTTL
public static int getTracetypeQueryTTL() -
getPreparedStatementsCacheSizeMiB
public static long getPreparedStatementsCacheSizeMiB() -
enableUserDefinedFunctions
public static boolean enableUserDefinedFunctions() -
enableScriptedUserDefinedFunctions
public static boolean enableScriptedUserDefinedFunctions() -
enableUserDefinedFunctionsThreads
public static boolean enableUserDefinedFunctionsThreads() -
getUserDefinedFunctionWarnTimeout
public static long getUserDefinedFunctionWarnTimeout() -
setUserDefinedFunctionWarnTimeout
public static void setUserDefinedFunctionWarnTimeout(long userDefinedFunctionWarnTimeout) -
allowInsecureUDFs
public static boolean allowInsecureUDFs() -
allowExtraInsecureUDFs
public static boolean allowExtraInsecureUDFs() -
getMaterializedViewsEnabled
public static boolean getMaterializedViewsEnabled() -
setMaterializedViewsEnabled
public static void setMaterializedViewsEnabled(boolean enableMaterializedViews) -
isMaterializedViewsOnRepairEnabled
public static boolean isMaterializedViewsOnRepairEnabled() -
setMaterializedViewsOnRepairEnabled
public static void setMaterializedViewsOnRepairEnabled(boolean val) -
getSASIIndexesEnabled
public static boolean getSASIIndexesEnabled() -
setSASIIndexesEnabled
public static void setSASIIndexesEnabled(boolean enableSASIIndexes) -
getDefaultSecondaryIndex
-
setDefaultSecondaryIndex
-
getDefaultSecondaryIndexEnabled
public static boolean getDefaultSecondaryIndexEnabled() -
setDefaultSecondaryIndexEnabled
public static void setDefaultSecondaryIndexEnabled(boolean enabled) -
isTransientReplicationEnabled
public static boolean isTransientReplicationEnabled() -
setTransientReplicationEnabledUnsafe
public static void setTransientReplicationEnabledUnsafe(boolean enabled) -
enableDropCompactStorage
public static boolean enableDropCompactStorage() -
setEnableDropCompactStorage
public static void setEnableDropCompactStorage(boolean enableDropCompactStorage) -
getUserDefinedFunctionFailTimeout
public static long getUserDefinedFunctionFailTimeout() -
setUserDefinedFunctionFailTimeout
public static void setUserDefinedFunctionFailTimeout(long userDefinedFunctionFailTimeout) -
getUserFunctionTimeoutPolicy
-
setUserFunctionTimeoutPolicy
public static void setUserFunctionTimeoutPolicy(Config.UserFunctionTimeoutPolicy userFunctionTimeoutPolicy) -
getGCLogThreshold
public static long getGCLogThreshold() -
setGCLogThreshold
public static void setGCLogThreshold(int gcLogThreshold) -
getEncryptionContext
-
getGCWarnThreshold
public static long getGCWarnThreshold() -
setGCWarnThreshold
public static void setGCWarnThreshold(int threshold) -
isCDCEnabled
public static boolean isCDCEnabled() -
setCDCEnabled
public static void setCDCEnabled(boolean cdc_enabled) -
getCDCBlockWrites
public static boolean getCDCBlockWrites() -
setCDCBlockWrites
public static void setCDCBlockWrites(boolean val) -
isCDCOnRepairEnabled
public static boolean isCDCOnRepairEnabled() -
setCDCOnRepairEnabled
public static void setCDCOnRepairEnabled(boolean val) -
getCDCLogLocation
-
getCDCTotalSpace
public static long getCDCTotalSpace() -
setCDCTotalSpaceInMiB
public static void setCDCTotalSpaceInMiB(int mibs) -
getCDCDiskCheckInterval
public static int getCDCDiskCheckInterval() -
setEncryptionContext
-
searchConcurrencyFactor
public static int searchConcurrencyFactor() -
isUnsafeSystem
public static boolean isUnsafeSystem() -
diagnosticEventsEnabled
public static boolean diagnosticEventsEnabled() -
setDiagnosticEventsEnabled
public static void setDiagnosticEventsEnabled(boolean enabled) -
getIdealConsistencyLevel
-
setIdealConsistencyLevel
-
getRepairCommandPoolSize
public static int getRepairCommandPoolSize() -
getRepairCommandPoolFullStrategy
-
getFullQueryLogOptions
-
setFullQueryLogOptions
-
getBlockForPeersInRemoteDatacenters
public static boolean getBlockForPeersInRemoteDatacenters() -
getBlockForPeersTimeoutInSeconds
public static int getBlockForPeersTimeoutInSeconds() -
automaticSSTableUpgrade
public static boolean automaticSSTableUpgrade() -
setAutomaticSSTableUpgradeEnabled
public static void setAutomaticSSTableUpgradeEnabled(boolean enabled) -
maxConcurrentAutoUpgradeTasks
public static int maxConcurrentAutoUpgradeTasks() -
setMaxConcurrentAutoUpgradeTasks
public static void setMaxConcurrentAutoUpgradeTasks(int value) -
getAuditLoggingOptions
-
setAuditLoggingOptions
-
getCorruptedTombstoneStrategy
-
setCorruptedTombstoneStrategy
-
getRepairedDataTrackingForRangeReadsEnabled
public static boolean getRepairedDataTrackingForRangeReadsEnabled() -
setRepairedDataTrackingForRangeReadsEnabled
public static void setRepairedDataTrackingForRangeReadsEnabled(boolean enabled) -
getRepairedDataTrackingForPartitionReadsEnabled
public static boolean getRepairedDataTrackingForPartitionReadsEnabled() -
setRepairedDataTrackingForPartitionReadsEnabled
public static void setRepairedDataTrackingForPartitionReadsEnabled(boolean enabled) -
snapshotOnRepairedDataMismatch
public static boolean snapshotOnRepairedDataMismatch() -
setSnapshotOnRepairedDataMismatch
public static void setSnapshotOnRepairedDataMismatch(boolean enabled) -
snapshotOnDuplicateRowDetection
public static boolean snapshotOnDuplicateRowDetection() -
setSnapshotOnDuplicateRowDetection
public static void setSnapshotOnDuplicateRowDetection(boolean enabled) -
reportUnconfirmedRepairedDataMismatches
public static boolean reportUnconfirmedRepairedDataMismatches() -
reportUnconfirmedRepairedDataMismatches
public static void reportUnconfirmedRepairedDataMismatches(boolean enabled) -
strictRuntimeChecks
public static boolean strictRuntimeChecks() -
useOffheapMerkleTrees
public static boolean useOffheapMerkleTrees() -
useOffheapMerkleTrees
public static void useOffheapMerkleTrees(boolean value) -
getCommitLogSegmentMgrProvider
-
setCommitLogSegmentMgrProvider
public static void setCommitLogSegmentMgrProvider(Function<CommitLog, AbstractCommitLogSegmentManager> provider) -
getValidationPreviewPurgeHeadStartInSec
public static int getValidationPreviewPurgeHeadStartInSec() -
checkForDuplicateRowsDuringReads
public static boolean checkForDuplicateRowsDuringReads() -
setCheckForDuplicateRowsDuringReads
public static void setCheckForDuplicateRowsDuringReads(boolean enabled) -
checkForDuplicateRowsDuringCompaction
public static boolean checkForDuplicateRowsDuringCompaction() -
setCheckForDuplicateRowsDuringCompaction
public static void setCheckForDuplicateRowsDuringCompaction(boolean enabled) -
getRepairPendingCompactionRejectThreshold
public static int getRepairPendingCompactionRejectThreshold() -
setRepairPendingCompactionRejectThreshold
public static void setRepairPendingCompactionRejectThreshold(int value) -
getInitialRangeTombstoneListAllocationSize
public static int getInitialRangeTombstoneListAllocationSize() -
setInitialRangeTombstoneListAllocationSize
public static void setInitialRangeTombstoneListAllocationSize(int size) -
getRangeTombstoneListGrowthFactor
public static double getRangeTombstoneListGrowthFactor() -
setRangeTombstoneListGrowthFactor
public static void setRangeTombstoneListGrowthFactor(double resizeFactor) -
getAutocompactionOnStartupEnabled
public static boolean getAutocompactionOnStartupEnabled() -
autoOptimiseIncRepairStreams
public static boolean autoOptimiseIncRepairStreams() -
setAutoOptimiseIncRepairStreams
public static void setAutoOptimiseIncRepairStreams(boolean enabled) -
autoOptimiseFullRepairStreams
public static boolean autoOptimiseFullRepairStreams() -
setAutoOptimiseFullRepairStreams
public static void setAutoOptimiseFullRepairStreams(boolean enabled) -
autoOptimisePreviewRepairStreams
public static boolean autoOptimisePreviewRepairStreams() -
setAutoOptimisePreviewRepairStreams
public static void setAutoOptimisePreviewRepairStreams(boolean enabled) -
getAuthWriteConsistencyLevel
Deprecated.See CASSANDRA-17195 -
getAuthReadConsistencyLevel
-
setAuthWriteConsistencyLevel
-
setAuthReadConsistencyLevel
-
getConsecutiveMessageErrorsThreshold
public static int getConsecutiveMessageErrorsThreshold() -
setConsecutiveMessageErrorsThreshold
public static void setConsecutiveMessageErrorsThreshold(int value) -
getPartitionDenylistEnabled
public static boolean getPartitionDenylistEnabled() -
setPartitionDenylistEnabled
public static void setPartitionDenylistEnabled(boolean enabled) -
getDenylistWritesEnabled
public static boolean getDenylistWritesEnabled() -
setDenylistWritesEnabled
public static void setDenylistWritesEnabled(boolean enabled) -
getDenylistReadsEnabled
public static boolean getDenylistReadsEnabled() -
setDenylistReadsEnabled
public static void setDenylistReadsEnabled(boolean enabled) -
getDenylistRangeReadsEnabled
public static boolean getDenylistRangeReadsEnabled() -
setDenylistRangeReadsEnabled
public static void setDenylistRangeReadsEnabled(boolean enabled) -
getDenylistRefreshSeconds
public static int getDenylistRefreshSeconds() -
setDenylistRefreshSeconds
public static void setDenylistRefreshSeconds(int seconds) -
getDenylistInitialLoadRetrySeconds
public static int getDenylistInitialLoadRetrySeconds() -
setDenylistInitialLoadRetrySeconds
public static void setDenylistInitialLoadRetrySeconds(int seconds) -
getDenylistConsistencyLevel
-
setDenylistConsistencyLevel
-
getDenylistMaxKeysPerTable
public static int getDenylistMaxKeysPerTable() -
setDenylistMaxKeysPerTable
public static void setDenylistMaxKeysPerTable(int value) -
getDenylistMaxKeysTotal
public static int getDenylistMaxKeysTotal() -
setDenylistMaxKeysTotal
public static void setDenylistMaxKeysTotal(int value) -
getAuthCacheWarmingEnabled
public static boolean getAuthCacheWarmingEnabled() -
getClientErrorReportingExclusions
-
getInternodeErrorReportingExclusions
-
getInvalidLegacyProtocolMagicNoSpamEnabled
public static boolean getInvalidLegacyProtocolMagicNoSpamEnabled() -
getReadThresholdsEnabled
public static boolean getReadThresholdsEnabled() -
setReadThresholdsEnabled
public static void setReadThresholdsEnabled(boolean value) -
getCoordinatorReadSizeWarnThreshold
-
setCoordinatorReadSizeWarnThreshold
public static void setCoordinatorReadSizeWarnThreshold(@Nullable DataStorageSpec.LongBytesBound value) -
getCoordinatorReadSizeFailThreshold
-
setCoordinatorReadSizeFailThreshold
public static void setCoordinatorReadSizeFailThreshold(@Nullable DataStorageSpec.LongBytesBound value) -
getLocalReadSizeWarnThreshold
-
setLocalReadSizeWarnThreshold
-
getLocalReadSizeFailThreshold
-
setLocalReadSizeFailThreshold
-
getRowIndexReadSizeWarnThreshold
-
setRowIndexReadSizeWarnThreshold
-
getRowIndexReadSizeFailThreshold
-
setRowIndexReadSizeFailThreshold
-
getDefaultKeyspaceRF
public static int getDefaultKeyspaceRF() -
setDefaultKeyspaceRF
- Throws:
IllegalArgumentException
-
getUseStatementsEnabled
public static boolean getUseStatementsEnabled() -
setUseStatementsEnabled
public static void setUseStatementsEnabled(boolean enabled) -
getForceNewPreparedStatementBehaviour
public static boolean getForceNewPreparedStatementBehaviour() -
setForceNewPreparedStatementBehaviour
public static void setForceNewPreparedStatementBehaviour(boolean value) -
getStreamingStateExpires
-
setStreamingStateExpires
-
getStreamingStateSize
-
setStreamingStateSize
-
getStreamingStatsEnabled
public static boolean getStreamingStatsEnabled() -
setStreamingStatsEnabled
public static void setStreamingStatsEnabled(boolean streamingStatsEnabled) -
getStreamingSlowEventsLogTimeout
-
setStreamingSlowEventsLogTimeout
-
isUUIDSSTableIdentifiersEnabled
public static boolean isUUIDSSTableIdentifiersEnabled() -
getRepairStateExpires
-
setRepairStateExpires
-
getRepairStateSize
public static int getRepairStateSize() -
setRepairStateSize
public static void setRepairStateSize(int size) -
topPartitionsEnabled
public static boolean topPartitionsEnabled() -
getMaxTopSizePartitionCount
public static int getMaxTopSizePartitionCount() -
setMaxTopSizePartitionCount
public static void setMaxTopSizePartitionCount(int value) -
getMaxTopTombstonePartitionCount
public static int getMaxTopTombstonePartitionCount() -
setMaxTopTombstonePartitionCount
public static void setMaxTopTombstonePartitionCount(int value) -
getMinTrackedPartitionSizeInBytes
-
setMinTrackedPartitionSizeInBytes
-
getMinTrackedPartitionTombstoneCount
public static long getMinTrackedPartitionTombstoneCount() -
setMinTrackedPartitionTombstoneCount
public static void setMinTrackedPartitionTombstoneCount(long value) -
getDumpHeapOnUncaughtException
public static boolean getDumpHeapOnUncaughtException() -
getHeapDumpPath
As this is at its heart a debug operation (getting a one-shot heapdump from an uncaught exception), we support both the more evolved cassandra.yaml approach but also the -XX param to override it on a one-off basis so you don't have to change the full config of a node or a cluster in order to get a heap dump from a single node that's misbehaving.- Returns:
- the absolute path of the -XX param if provided, else the heap_dump_path in cassandra.yaml
-
setDumpHeapOnUncaughtException
public static void setDumpHeapOnUncaughtException(boolean enabled) -
getSStableReadRatePersistenceEnabled
public static boolean getSStableReadRatePersistenceEnabled() -
setSStableReadRatePersistenceEnabled
public static void setSStableReadRatePersistenceEnabled(boolean enabled) -
getClientRequestSizeMetricsEnabled
public static boolean getClientRequestSizeMetricsEnabled() -
setClientRequestSizeMetricsEnabled
public static void setClientRequestSizeMetricsEnabled(boolean enabled) -
resetSSTableFormats
public static void resetSSTableFormats(Iterable<SSTableFormat.Factory> factories, Config.SSTableConfig config) -
getSSTableFormats
-
getSelectedSSTableFormat
-
setSelectedSSTableFormat
-
getDynamicDataMaskingEnabled
public static boolean getDynamicDataMaskingEnabled() -
setDynamicDataMaskingEnabled
public static void setDynamicDataMaskingEnabled(boolean enabled) -
getSeverityDuringDecommission
-
getStorageCompatibilityMode
-
getDefaultCompaction
-
getSAISegmentWriteBufferSpace
-
getPrioritizeSAIOverLegacyIndex
public static boolean getPrioritizeSAIOverLegacyIndex() -
setPrioritizeSAIOverLegacyIndex
public static void setPrioritizeSAIOverLegacyIndex(boolean value) -
getForceOptimizedIndexStatusFormat
public static boolean getForceOptimizedIndexStatusFormat() -
setForceOptimizedIndexStatusFormat
public static void setForceOptimizedIndexStatusFormat(boolean value) -
getRepairRetrySpec
-
getSaiSSTableIndexesPerQueryWarnThreshold
public static int getSaiSSTableIndexesPerQueryWarnThreshold() -
getSaiSSTableIndexesPerQueryFailThreshold
public static int getSaiSSTableIndexesPerQueryFailThreshold() -
getLogOutOfTokenRangeRequests
public static boolean getLogOutOfTokenRangeRequests() -
setLogOutOfTokenRangeRequests
public static void setLogOutOfTokenRangeRequests(boolean enabled) -
getRejectOutOfTokenRangeRequests
public static boolean getRejectOutOfTokenRangeRequests() -
setRejectOutOfTokenRangeRequests
public static void setRejectOutOfTokenRangeRequests(boolean enabled) -
getPaxosRepairRaceWait
public static boolean getPaxosRepairRaceWait() -
setPaxosRepairRaceWait
public static void setPaxosRepairRaceWait(boolean paxosRepairRaceWait) -
getAutoRepairConfig
-
getRepairDiskHeadroomRejectRatio
public static double getRepairDiskHeadroomRejectRatio() -
setRepairDiskHeadroomRejectRatio
public static void setRepairDiskHeadroomRejectRatio(double value)
-