Package org.apache.cassandra.service
Interface StorageServiceMBean
-
- All Superinterfaces:
javax.management.NotificationBroadcaster,javax.management.NotificationEmitter
- All Known Implementing Classes:
StorageService
public interface StorageServiceMBean extends javax.management.NotificationEmitter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classStorageServiceMBean.StageConcurrencyGets the concurrency settings for processing stages
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description booleanautoOptimiseFullRepairStreams()booleanautoOptimiseIncRepairStreams()booleanautoOptimisePreviewRepairStreams()voidbulkLoad(java.lang.String directory)Starts a bulk load and blocks until it completes.java.lang.StringbulkLoadAsync(java.lang.String directory)Starts a bulk load asynchronously and returns the String representation of the planID for the new streaming session.voidbypassConcurrentValidatorsLimit()voidcleanupSizeEstimates()Removes extraneous entries in system.size_estimates.voidclearConnectionHistory()Clears the history of clients that have connected in the pastvoidclearPaxosRepairs()voidclearSnapshot(java.lang.String tag, java.lang.String... keyspaceNames)Remove the snapshot with the given name from the given keyspaces.voiddecommission(boolean force)transfer this node's data to other machines and remove it from service.voiddeliverHints(java.lang.String host)java.util.List<java.lang.String>describeRingJMX(java.lang.String keyspace)Deprecated.java.util.List<java.lang.String>describeRingWithPortJMX(java.lang.String keyspace)voiddisableAuditLog()voiddisableAutoCompaction(java.lang.String ks, java.lang.String... tables)voiddisableNativeTransportOldProtocolVersions()voiddrain()makes node unavailable for writes, flushes memtables and replays commitlog.java.util.Map<java.net.InetAddress,java.lang.Float>effectiveOwnership(java.lang.String keyspace)Deprecated.java.util.Map<java.lang.String,java.lang.Float>effectiveOwnershipWithPort(java.lang.String keyspace)voidenableAuditLog(java.lang.String loggerName, java.lang.String includedKeyspaces, java.lang.String excludedKeyspaces, java.lang.String includedCategories, java.lang.String excludedCategories, java.lang.String includedUsers, java.lang.String excludedUsers)Deprecated.voidenableAuditLog(java.lang.String loggerName, java.lang.String includedKeyspaces, java.lang.String excludedKeyspaces, java.lang.String includedCategories, java.lang.String excludedCategories, java.lang.String includedUsers, java.lang.String excludedUsers, java.lang.Integer maxArchiveRetries, java.lang.Boolean block, java.lang.String rollCycle, java.lang.Long maxLogSize, java.lang.Integer maxQueueWeight, java.lang.String archiveCommand)voidenableAuditLog(java.lang.String loggerName, java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String includedKeyspaces, java.lang.String excludedKeyspaces, java.lang.String includedCategories, java.lang.String excludedCategories, java.lang.String includedUsers, java.lang.String excludedUsers)Deprecated.voidenableAuditLog(java.lang.String loggerName, java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String includedKeyspaces, java.lang.String excludedKeyspaces, java.lang.String includedCategories, java.lang.String excludedCategories, java.lang.String includedUsers, java.lang.String excludedUsers, java.lang.Integer maxArchiveRetries, java.lang.Boolean block, java.lang.String rollCycle, java.lang.Long maxLogSize, java.lang.Integer maxQueueWeight, java.lang.String archiveCommand)voidenableAutoCompaction(java.lang.String ks, java.lang.String... tables)voidenableFullQueryLogger(java.lang.String path, java.lang.String rollCycle, java.lang.Boolean blocking, int maxQueueWeight, long maxLogSize, java.lang.String archiveCommand, int maxArchiveRetries)Start the fully query logger.voidenableNativeTransportOldProtocolVersions()voidenforceConcurrentValidatorsLimit()voidevictHungRepairs()intforceKeyspaceCleanup(int jobs, java.lang.String keyspaceName, java.lang.String... tables)intforceKeyspaceCleanup(java.lang.String keyspaceName, java.lang.String... tables)Deprecated.voidforceKeyspaceCompaction(boolean splitOutput, java.lang.String keyspaceName, java.lang.String... tableNames)Forces major compaction of a single keyspacevoidforceKeyspaceCompactionForPartitionKey(java.lang.String keyspaceName, java.lang.String partitionKey, java.lang.String... tableNames)Forces major compactions for the range represented by the partition keyvoidforceKeyspaceCompactionForTokenRange(java.lang.String keyspaceName, java.lang.String startToken, java.lang.String endToken, java.lang.String... tableNames)Forces major compaction of specified token range in a single keyspace.voidforceKeyspaceFlush(java.lang.String keyspaceName, java.lang.String... tableNames)Flush all memtables for the given column families, or all columnfamilies for the given keyspace if none are explicitly listed.voidforceRemoveCompletion()Force a remove operation to finish.voidforceTerminateAllRepairSessions()intgarbageCollect(java.lang.String tombstoneOption, int jobs, java.lang.String keyspaceName, java.lang.String... tableNames)Rewrites all sstables from the given tables to remove deleted data.java.lang.String[]getAllDataFileLocations()Get the list of all data file locations from confjava.util.Map<java.lang.String,java.lang.Boolean>getAutoCompactionStatus(java.lang.String ks, java.lang.String... tables)java.lang.StringgetBatchlogEndpointStrategy()intgetBatchlogReplayThrottleInKB()intgetBatchSizeFailureThreshold()Returns the threshold for rejecting queries due to a large batch sizeintgetBatchSizeWarnThreshold()Returns the threshold for warning queries due to a large batch sizeintgetCachedReplicaRowsFailThreshold()Returns the number of rows cached at the coordinator before filtering/index queries fail outright.intgetCachedReplicaRowsWarnThreshold()Returns the number of rows cached at the coordinator before filtering/index queries log a warning.longgetCasContentionTimeout()java.lang.StringgetClusterName()Returns the name of the clusterintgetColumnIndexCacheSize()Returns the threshold for skipping the column index when caching partition infointgetColumnIndexSizeInKiB()Returns the granularity of the collation index of rows within a partitionjava.lang.StringgetCommitLogLocation()Get location of the commit logintgetCompactionThroughputMbPerSec()Deprecated.Use getCompactionThroughtputMibPerSecAsDouble instead as this one will provide a rounded valuelonggetCompactionThroughtputBytesPerSec()doublegetCompactionThroughtputMibPerSecAsDouble()intgetCompactionTombstoneWarningThreshold()java.util.Map<java.lang.String,java.util.List<java.lang.Integer>>getConcurrency(java.util.List<java.lang.String> stageNames)intgetConcurrentCompactors()intgetConcurrentValidators()intgetConcurrentViewBuilders()java.lang.StringgetCoordinatorLargeReadAbortThreshold()java.lang.StringgetCoordinatorLargeReadWarnThreshold()java.lang.StringgetCorruptedTombstoneStrategy()longgetCounterWriteRpcTimeout()java.lang.StringgetCQLStartTime()intgetCurrentGenerationNumber()Return the generation value for this node.intgetDefaultKeyspaceReplicationFactor()java.lang.StringgetDrainProgress()get the progress of a drain operationintgetDynamicUpdateInterval()java.util.Map<java.lang.String,java.lang.String>getEndpointToHostId()Deprecated.java.util.Map<java.lang.String,java.lang.String>getEndpointWithPortToHostId()booleangetEnforceNativeDeadlineForHints()doublegetEntireSSTableInterDCStreamThroughputMebibytesPerSecAsDouble()doublegetEntireSSTableStreamThroughputMebibytesPerSecAsDouble()javax.management.openmbean.CompositeDatagetFullQueryLoggerOptions()Returns the current state of FQL.java.util.Map<java.lang.String,java.lang.String>getHostIdMap()Deprecated.java.util.Map<java.lang.String,java.lang.String>getHostIdToEndpoint()Deprecated.java.util.Map<java.lang.String,java.lang.String>getHostIdToEndpointWithPort()intgetInitialRangeTombstoneListAllocationSize()Returns the initial allocation size of backing arrays for new RangeTombstoneList objectsintgetInterDCStreamThroughputMbitPerSec()Deprecated.Use getInterDCStreamThroughputMbitPerSecAsDouble instead as this one will provide a rounded valuedoublegetInterDCStreamThroughputMbitPerSecAsDouble()intgetInterDCStreamThroughputMbPerSec()Deprecated.Use getInterDCStreamThroughputMebibytesPerSecAsDouble instead as this one will provide a rounded valueintgetInterDCStreamThroughputMebibytesPerSec()Below method returns Inter_dc_stream_throughput_outbound rounded, for precise number, please, use getInterDCStreamThroughputMebibytesPerSecAsDoubledoublegetInterDCStreamThroughputMebibytesPerSecAsDouble()intgetInternodeStreamingTcpUserTimeoutInMS()intgetInternodeTcpConnectTimeoutInMS()intgetInternodeTcpUserTimeoutInMS()java.util.List<java.lang.String>getJoiningNodes()Deprecated.java.util.List<java.lang.String>getJoiningNodesWithPort()intgetKeyspaceCountWarnThreshold()Deprecated.java.lang.StringgetKeyspaceReplicationInfo(java.lang.String keyspaceName)Fetch the replication factor for a given keyspace.java.util.List<java.lang.String>getKeyspaces()java.util.List<java.lang.String>getLeavingNodes()Deprecated.java.util.List<java.lang.String>getLeavingNodesWithPort()java.util.List<java.lang.String>getLiveNodes()Deprecated.java.util.List<java.lang.String>getLiveNodesWithPort()java.util.Map<java.lang.String,java.lang.String>getLoadMap()Deprecated.java.util.Map<java.lang.String,java.lang.String>getLoadMapWithPort()java.lang.StringgetLoadString()Human-readable load valuejava.lang.StringgetLocalHostId()Retrieve this hosts unique IDjava.lang.StringgetLocalReadTooLargeAbortThreshold()java.lang.StringgetLocalReadTooLargeWarnThreshold()java.lang.String[]getLocalSystemKeyspacesDataFileLocations()Returns the locations where the local system keyspaces data should be stored.java.util.Map<java.lang.String,java.lang.String>getLoggingLevels()get the runtime logging levelsintgetMaxHintTTL()Returns upper bound on the hint ttlintgetMaxTopSizePartitionCount()intgetMaxTopTombstonePartitionCount()booleangetMigrateKeycacheOnCompaction()java.lang.StringgetMinTrackedPartitionSize()longgetMinTrackedPartitionTombstoneCount()java.util.List<java.lang.String>getMovingNodes()Deprecated.java.util.List<java.lang.String>getMovingNodesWithPort()longgetNativeTransportMaxBackoffOnQueueOverloadInMillis()longgetNativeTransportMaxConcurrentRequestsInBytes()longgetNativeTransportMaxConcurrentRequestsInBytesPerIp()intgetNativeTransportMaxRequestsPerSecond()longgetNativeTransportMinBackoffOnQueueOverloadInMillis()doublegetNativeTransportQueueMaxItemAgeThreshold()booleangetNativeTransportRateLimitingEnabled()booleangetNativeTransportThrowOnOverload()longgetNativeTransportTimeoutMillis()java.util.List<java.net.InetAddress>getNaturalEndpoints(java.lang.String keyspaceName, java.lang.String cf, java.lang.String key)Deprecated.java.util.List<java.net.InetAddress>getNaturalEndpoints(java.lang.String keyspaceName, java.nio.ByteBuffer key)Deprecated.java.util.List<java.lang.String>getNaturalEndpointsWithPort(java.lang.String keyspaceName, java.lang.String cf, java.lang.String key)java.util.List<java.lang.String>getNaturalEndpointsWithPort(java.lang.String keysapceName, java.nio.ByteBuffer key)java.util.List<java.lang.String>getNonLocalStrategyKeyspaces()java.lang.String[]getNonLocalSystemKeyspacesDataFileLocations()Returns the locations where should be stored the non system keyspaces data.java.util.List<java.lang.String>getNonSystemKeyspaces()java.lang.StringgetOperationMode()get the operational mode (leaving, joining, normal, decommissioned, client)java.util.Map<java.lang.String,long[]>getOutOfRangeOperationCounts()Get the per-keyspace counts of operations that the node has received for tokens outside its owned ranges.java.util.Map<java.lang.String,java.util.Set<java.net.InetAddress>>getOutstandingSchemaVersions()Deprecated.java.util.Map<java.lang.String,java.util.Set<java.lang.String>>getOutstandingSchemaVersionsWithPort()java.util.Map<java.net.InetAddress,java.lang.Float>getOwnership()Deprecated.java.util.Map<java.lang.String,java.lang.Float>getOwnershipWithPort()java.util.List<java.lang.String>getParentRepairStatus(int cmd)Get the status of a given parent repair session.java.lang.StringgetPartitionerName()Returns the cluster partitionerbooleangetPaxosAutoRepairsEnabled()java.util.List<java.lang.String>getPaxosAutoRepairTables()java.lang.StringgetPaxosBallotLowBound(java.lang.String keyspace, java.lang.String table, java.lang.String key)booleangetPaxosDcLocalCommitEnabled()java.lang.StringgetPaxosOnLinearizabilityViolations()longgetPaxosPurgeGraceSeconds()booleangetPaxosRepairEnabled()booleangetPaxosRepairRaceWait()booleangetPaxosStateFlushEnabled()java.lang.StringgetPaxosStatePurging()java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>>getPendingRangeToEndpointMap(java.lang.String keyspace)Deprecated.java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>>getPendingRangeToEndpointWithPortMap(java.lang.String keyspace)longgetRangeRpcTimeout()java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>>getRangeToEndpointMap(java.lang.String keyspace)Deprecated.java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>>getRangeToEndpointWithPortMap(java.lang.String keyspace)doublegetRangeTombstoneResizeListGrowthFactor()Returns the resize factor to use when growing/resizing a RangeTombstoneListjava.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>>getRangeToNativeaddressWithPortMap(java.lang.String keyspace)java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>>getRangeToRpcaddressMap(java.lang.String keyspace)Deprecated.longgetReadRpcTimeout()booleangetReadThresholdsEnabled()java.lang.StringgetReleaseVersion()Fetch a string representation of the Cassandra version.java.lang.StringgetRemovalStatus()Deprecated.java.lang.StringgetRemovalStatusWithPort()java.lang.LonggetRepairRpcTimeout()intgetRepairSessionMaxTreeDepth()java.lang.StringgetRowIndexReadSizeAbortThreshold()java.lang.StringgetRowIndexReadSizeWarnThreshold()longgetRpcTimeout()java.lang.StringgetSavedCachesLocation()Get location of the saved caches dirjava.lang.StringgetSchemaVersion()Fetch a string representation of the current Schema version.booleangetSkipPaxosRepairCompatibilityCheck()booleangetSkipPaxosRepairOnTopologyChange()java.lang.StringgetSkipPaxosRepairOnTopologyChangeKeyspaces()java.util.Map<java.lang.String,javax.management.openmbean.TabularData>getSnapshotDetails()Deprecated.java.util.Map<java.lang.String,javax.management.openmbean.TabularData>getSnapshotDetails(java.util.Map<java.lang.String,java.lang.String> options)Get the details of all the snapshotslonggetSnapshotLinksPerSecond()Get the current hardlink-per-second throttle for snapshots A setting of zero indicates no throttling.intgetSSTablePreemptiveOpenIntervalInMB()intgetStreamThroughputMbitPerSec()Deprecated.Use getStreamThroughputMbitPerSecAsDouble instead as this one will provide a rounded valuedoublegetStreamThroughputMbitPerSecAsDouble()intgetStreamThroughputMbPerSec()Deprecated.Use getStreamThroughputMebibytesPerSecAsDouble instead as this one will provide a rounded valueintgetStreamThroughputMebibytesPerSec()Below method returns stream_throughput_outbound rounded, for precise number, please, use getStreamThroughputMebibytesPerSecAsDoubledoublegetStreamThroughputMebibytesPerSecAsDouble()intgetTableCountWarnThreshold()Deprecated.java.lang.StringgetToken(java.lang.String keyspaceName, java.lang.String table, java.lang.String partitionKey)java.util.List<java.lang.String>getTokens()Fetch string representations of the tokens for this node.java.util.List<java.lang.String>getTokens(java.lang.String endpoint)Fetch string representations of the tokens for a specified node.java.util.Map<java.lang.String,java.lang.String>getTokenToEndpointMap()Deprecated.java.util.Map<java.lang.String,java.lang.String>getTokenToEndpointWithPortMap()intgetTombstoneFailureThreshold()Returns the threshold for abandoning queries with many tombstonesintgetTombstoneWarnThreshold()Returns the threshold for warning of queries with many tombstonesdoublegetTraceProbability()Returns the configured tracing probability.booleangetTransferHintsOnDecommission()longgetTruncateRpcTimeout()java.util.List<java.lang.String>getUnreachableNodes()Deprecated.java.util.List<java.lang.String>getUnreachableNodesWithPort()java.util.Map<java.lang.String,java.lang.String>getViewBuildStatuses(java.lang.String keyspace, java.lang.String view)Deprecated.java.util.Map<java.lang.String,java.lang.String>getViewBuildStatusesWithPort(java.lang.String keyspace, java.lang.String view)longgetWriteRpcTimeout()booleanisAuditLogEnabled()booleanisBootstrapMode()Check if currently bootstrapping.booleanisConcurrentValidatorsLimitEnforced()booleanisDrained()booleanisDraining()booleanisFullQueryLogEnabled()booleanisGossipRunning()booleanisHintTtlUseMutationCreationTime()Returns whether we are using the creation time of the mutation for determining hint ttlbooleanisIncrementalBackupsEnabled()booleanisInitialized()booleanisJoined()booleanisNativeTransportRunning()booleanisOutOfTokenRangeRequestLoggingEnabled()Toggles to turn on the logging or rejection of operations for token ranges that the node does not own, or is not about to acquire.booleanisOutOfTokenRangeRequestRejectionEnabled()booleanisStarting()Returns whether the storage service is starting or notvoidjoinRing()voidloadNewSSTables(java.lang.String ksName, java.lang.String tableName)Deprecated.voidmove(java.lang.String newToken)voidrebuild(java.lang.String sourceDc)Initiate a process of streaming data for which we are responsible from other nodes.voidrebuild(java.lang.String sourceDc, java.lang.String keyspace, java.lang.String tokens, java.lang.String specificSources)Same asrebuild(String), but only for specified keyspace and ranges.voidrebuildSecondaryIndex(java.lang.String ksName, java.lang.String cfName, java.lang.String... idxNames)rebuild the specified indexesintrecompressSSTables(java.lang.String keyspaceName, int jobs, java.lang.String... tableNames)voidrefreshSizeEstimates()Forces refresh of values stored in system.size_estimates of all column families.voidreloadLocalSchema()intrelocateSSTables(int jobs, java.lang.String keyspace, java.lang.String... cfnames)intrelocateSSTables(java.lang.String keyspace, java.lang.String... cfnames)Deprecated.voidremoveNode(java.lang.String token)removeToken removes token (and all data associated with enpoint that had it) from the ringintrepairAsync(java.lang.String keyspace, java.util.Map<java.lang.String,java.lang.String> options)Invoke repair asynchronously.voidrescheduleFailedDeletions()voidresetFullQueryLogger()Disable the full query logger if it is enabled.voidresetLocalSchema()booleanresumeBootstrap()Resume bootstrap streaming when there is failed data streaming.java.util.List<java.lang.String>sampleKeyRange()Return a List of Tokens representing a sample of keys across all ColumnFamilyStores.java.util.Map<java.lang.String,java.util.List<javax.management.openmbean.CompositeData>>samplePartitions(int duration, int capacity, int count, java.util.List<java.lang.String> samplers)intscrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, int jobs, java.lang.String keyspaceName, java.lang.String... columnFamilies)intscrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, int jobs, java.lang.String keyspaceName, java.lang.String... columnFamilies)Deprecated.intscrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, java.lang.String keyspaceName, java.lang.String... tableNames)Deprecated.intscrub(boolean disableSnapshot, boolean skipCorrupted, java.lang.String keyspaceName, java.lang.String... tableNames)Deprecated.voidsetAutoOptimiseFullRepairStreams(boolean enabled)voidsetAutoOptimiseIncRepairStreams(boolean enabled)voidsetAutoOptimisePreviewRepairStreams(boolean enabled)voidsetBatchlogEndpointStrategy(java.lang.String batchlogEndpointStrategy)SeeConfig.BatchlogEndpointStrategyfor valid values.voidsetBatchlogReplayThrottleInKB(int value)voidsetBatchSizeFailureThreshold(int batchSizeDebugThreshold)Sets the threshold for rejecting queries due to a large batch sizevoidsetBatchSizeWarnThreshold(int batchSizeDebugThreshold)Sets the threshold for warning queries due to a large batch sizevoidsetCachedReplicaRowsFailThreshold(int threshold)Sets the number of rows cached at the coordinator before filtering/index queries fail outright.voidsetCachedReplicaRowsWarnThreshold(int threshold)Sets the number of rows cached at the coordinator before filtering/index queries log a warning.voidsetCasContentionTimeout(long value)voidsetColumnIndexCacheSize(int cacheSizeInKB)Sets the threshold for skipping the column index when caching partition infovoidsetColumnIndexSize(int columnIndexSizeInKB)Sets the granularity of the collation index of rows within a partitionvoidsetCompactionThroughputMbPerSec(int value)voidsetCompactionTombstoneWarningThreshold(int count)voidsetConcurrency(java.lang.String threadPoolName, int newCorePoolSize, int newMaximumPoolSize)Sets the concurrency setting for processing stagesvoidsetConcurrentCompactors(int value)voidsetConcurrentValidators(int value)voidsetConcurrentViewBuilders(int value)voidsetCoordinatorLargeReadAbortThreshold(java.lang.String threshold)voidsetCoordinatorLargeReadWarnThreshold(java.lang.String threshold)voidsetCorruptedTombstoneStrategy(java.lang.String strategy)voidsetCounterWriteRpcTimeout(long value)voidsetCQLStartTime(java.lang.String value)voidsetDefaultKeyspaceReplicationFactor(int value)voidsetDynamicUpdateInterval(int dynamicUpdateInterval)voidsetEnforceNativeDeadlineForHints(boolean value)voidsetEntireSSTableInterDCStreamThroughputMebibytesPerSec(int value)voidsetEntireSSTableStreamThroughputMebibytesPerSec(int value)voidsetHintedHandoffThrottleInKB(int throttleInKB)Sets the hinted handoff throttle in KiB per second, per delivery thread.voidsetIncrementalBackupsEnabled(boolean value)voidsetInitialRangeTombstoneListAllocationSize(int size)Sets the initial allocation size of backing arrays for new RangeTombstoneList objectsvoidsetInterDCStreamThroughputMbitPerSec(int value)voidsetInterDCStreamThroughputMbPerSec(int value)Deprecated.voidsetInterDCStreamThroughputMebibytesPerSec(int value)voidsetInternodeStreamingTcpUserTimeoutInMS(int value)voidsetInternodeTcpConnectTimeoutInMS(int value)voidsetInternodeTcpUserTimeoutInMS(int value)voidsetKeyspaceCountWarnThreshold(int value)Deprecated.voidsetLocalReadTooLargeAbortThreshold(java.lang.String value)voidsetLocalReadTooLargeWarnThreshold(java.lang.String value)voidsetLoggingLevel(java.lang.String classQualifier, java.lang.String level)set the logging level at runtime
If both classQualifer and level are empty/null, it will reload the configuration to reset.
If classQualifer is not empty but level is empty/null, it will set the level to null for the defined classQualifer
If level cannot be parsed, then the level will be defaulted to DEBUG
The logback configuration should have< jmxConfigurator />setvoidsetMaxHintTTL(int maxHintTTL)Sets the upper bound on the hint ttlvoidsetMaxTopSizePartitionCount(int value)voidsetMaxTopTombstonePartitionCount(int value)voidsetMigrateKeycacheOnCompaction(boolean invalidateKeyCacheOnCompaction)voidsetMinTrackedPartitionSize(java.lang.String value)voidsetMinTrackedPartitionTombstoneCount(long value)voidsetNativeTransportBackoffOnQueueOverloadInMillis(long min, long max)voidsetNativeTransportMaxConcurrentRequestsInBytes(long newLimit)voidsetNativeTransportMaxConcurrentRequestsInBytesPerIp(long newLimit)voidsetNativeTransportMaxRequestsPerSecond(int newPerSecond)voidsetNativeTransportQueueMaxItemAgeThreshold(double threshold)voidsetNativeTransportRateLimitingEnabled(boolean enabled)voidsetNativeTransportThrowOnOverload(boolean throwOnOverload)voidsetNativeTransportTimeoutMillis(long deadlineMillis)voidsetOutOfTokenRangeRequestLoggingEnabled(boolean enabled)voidsetOutOfTokenRangeRequestRejectionEnabled(boolean enabled)voidsetPaxosAutoRepairsEnabled(boolean enabled)voidsetPaxosDcLocalCommitEnabled(boolean v)voidsetPaxosOnLinearizabilityViolations(java.lang.String v)voidsetPaxosPurgeGraceSeconds(long v)voidsetPaxosRepairEnabled(boolean v)voidsetPaxosRepairRaceWait(boolean paxosRepairCoordinatorWait)voidsetPaxosStateFlushEnabled(boolean enabled)voidsetPaxosStatePurging(java.lang.String v)voidsetRangeRpcTimeout(long value)voidsetRangeTombstoneListResizeGrowthFactor(double growthFactor)Sets the resize factor to use when growing/resizing a RangeTombstoneListvoidsetReadRpcTimeout(long value)voidsetReadThresholdsEnabled(boolean value)voidsetRepairRpcTimeout(java.lang.Long timeoutInMillis)voidsetRepairSessionMaxTreeDepth(int depth)voidsetRowIndexReadSizeAbortThreshold(java.lang.String value)voidsetRowIndexReadSizeWarnThreshold(java.lang.String value)voidsetRpcTimeout(long value)voidsetSkipPaxosRepairCompatibilityCheck(boolean v)voidsetSkipPaxosRepairOnTopologyChange(boolean v)voidsetSkipPaxosRepairOnTopologyChangeKeyspaces(java.lang.String v)voidsetSnapshotLinksPerSecond(long throttle)Set the current hardlink-per-second throttle for snapshots A setting of zero indicates no throttlingvoidsetSSTablePreemptiveOpenIntervalInMB(int intervalInMB)voidsetStreamThroughputMbitPerSec(int value)voidsetStreamThroughputMbPerSec(int value)Deprecated.voidsetStreamThroughputMebibytesPerSec(int value)voidsetTableCountWarnThreshold(int value)Deprecated.voidsetTombstoneFailureThreshold(int tombstoneDebugThreshold)Sets the threshold for abandoning queries with many tombstonesvoidsetTombstoneWarnThreshold(int tombstoneDebugThreshold)Sets the threshold for warning queries with many tombstonesvoidsetTraceProbability(double probability)Enables/Disables tracing for the whole system.voidsetTransferHintsOnDecommission(boolean enabled)voidsetTruncateRpcTimeout(long value)voidsetUseCreationTimeForHintTtl(boolean enabled)Sets whether we are using the creation time of the mutation for determining hint ttlvoidsetWriteRpcTimeout(long value)voidstartGossiping()voidstartNativeTransport()voidstopDaemon()voidstopFullQueryLogger()Stop logging queries but leave any generated files on disk.voidstopGossiping()voidstopNativeTransport()voidtakeMultipleTableSnapshot(java.lang.String tag, java.lang.String... tableList)Deprecated.voidtakeSnapshot(java.lang.String tag, java.lang.String... keyspaceNames)Deprecated.voidtakeSnapshot(java.lang.String tag, java.util.Map<java.lang.String,java.lang.String> options, java.lang.String... entities)Takes the snapshot of a multiple column family from different keyspaces.voidtakeTableSnapshot(java.lang.String keyspaceName, java.lang.String tableName, java.lang.String tag)Deprecated.booleantopPartitionsEnabled()longtrueSnapshotsSize()Get the true size taken by all snapshots across all keyspaces.voidtruncate(java.lang.String keyspace, java.lang.String table)Truncates (deletes) the given table from the provided keyspace.voidupdateSnitch(java.lang.String epSnitchClassName, java.lang.Boolean dynamic, java.lang.Integer dynamicUpdateInterval, java.lang.Integer dynamicResetInterval, java.lang.Double dynamicBadnessThreshold)Change endpointsnitch class and dynamic-ness (and dynamic attributes) at runtime.default intupgradeSSTables(java.lang.String keyspaceName, boolean excludeCurrentVersion, int jobs, java.lang.String... tableNames)Deprecated.intupgradeSSTables(java.lang.String keyspaceName, boolean excludeCurrentVersion, long maxSSTableTimestamp, int jobs, java.lang.String... tableNames)intupgradeSSTables(java.lang.String keyspaceName, boolean excludeCurrentVersion, java.lang.String... tableNames)Deprecated.intverify(boolean extendedVerify, boolean checkVersion, boolean diskFailurePolicy, boolean mutateRepairStatus, boolean checkOwnsTokens, boolean quick, java.lang.String keyspaceName, java.lang.String... tableNames)intverify(boolean extendedVerify, java.lang.String keyspaceName, java.lang.String... tableNames)Verify (checksums of) the given keyspace.
-
-
-
Method Detail
-
getLiveNodes
@Deprecated java.util.List<java.lang.String> getLiveNodes()
Deprecated.Retrieve the list of live nodes in the cluster, where "liveness" is determined by the failure detector of the node being queried.- Returns:
- set of IP addresses, as Strings
-
getLiveNodesWithPort
java.util.List<java.lang.String> getLiveNodesWithPort()
-
getUnreachableNodes
@Deprecated java.util.List<java.lang.String> getUnreachableNodes()
Deprecated.Retrieve the list of unreachable nodes in the cluster, as determined by this node's failure detector.- Returns:
- set of IP addresses, as Strings
-
getUnreachableNodesWithPort
java.util.List<java.lang.String> getUnreachableNodesWithPort()
-
getJoiningNodes
@Deprecated java.util.List<java.lang.String> getJoiningNodes()
Deprecated.Retrieve the list of nodes currently bootstrapping into the ring.- Returns:
- set of IP addresses, as Strings
-
getJoiningNodesWithPort
java.util.List<java.lang.String> getJoiningNodesWithPort()
-
getLeavingNodes
@Deprecated java.util.List<java.lang.String> getLeavingNodes()
Deprecated.Retrieve the list of nodes currently leaving the ring.- Returns:
- set of IP addresses, as Strings
-
getLeavingNodesWithPort
java.util.List<java.lang.String> getLeavingNodesWithPort()
-
getMovingNodes
@Deprecated java.util.List<java.lang.String> getMovingNodes()
Deprecated.Retrieve the list of nodes currently moving in the ring.- Returns:
- set of IP addresses, as Strings
-
getMovingNodesWithPort
java.util.List<java.lang.String> getMovingNodesWithPort()
-
getTokens
java.util.List<java.lang.String> getTokens()
Fetch string representations of the tokens for this node.- Returns:
- a collection of tokens formatted as strings
-
getTokens
java.util.List<java.lang.String> getTokens(java.lang.String endpoint) throws java.net.UnknownHostExceptionFetch string representations of the tokens for a specified node.- Parameters:
endpoint- string representation of an node- Returns:
- a collection of tokens formatted as strings
- Throws:
java.net.UnknownHostException
-
getReleaseVersion
java.lang.String getReleaseVersion()
Fetch a string representation of the Cassandra version.- Returns:
- A string representation of the Cassandra version.
-
getSchemaVersion
java.lang.String getSchemaVersion()
Fetch a string representation of the current Schema version.- Returns:
- A string representation of the Schema version.
-
getKeyspaceReplicationInfo
java.lang.String getKeyspaceReplicationInfo(java.lang.String keyspaceName)
Fetch the replication factor for a given keyspace.- Returns:
- An integer that represents replication factor for the given keyspace.
-
getAllDataFileLocations
java.lang.String[] getAllDataFileLocations()
Get the list of all data file locations from conf- Returns:
- String array of all locations
-
getLocalSystemKeyspacesDataFileLocations
java.lang.String[] getLocalSystemKeyspacesDataFileLocations()
Returns the locations where the local system keyspaces data should be stored.- Returns:
- the locations where the local system keyspaces data should be stored
-
getNonLocalSystemKeyspacesDataFileLocations
java.lang.String[] getNonLocalSystemKeyspacesDataFileLocations()
Returns the locations where should be stored the non system keyspaces data.- Returns:
- the locations where should be stored the non system keyspaces data
-
getCommitLogLocation
java.lang.String getCommitLogLocation()
Get location of the commit log- Returns:
- a string path
-
getSavedCachesLocation
java.lang.String getSavedCachesLocation()
Get location of the saved caches dir- Returns:
- a string path
-
getRangeToEndpointMap
@Deprecated java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getRangeToEndpointMap(java.lang.String keyspace)
Deprecated.Retrieve a map of range to end points that describe the ring topology of a Cassandra cluster.- Returns:
- mapping of ranges to end points
-
getRangeToEndpointWithPortMap
java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getRangeToEndpointWithPortMap(java.lang.String keyspace)
-
getRangeToRpcaddressMap
@Deprecated java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getRangeToRpcaddressMap(java.lang.String keyspace)
Deprecated.Retrieve a map of range to rpc addresses that describe the ring topology of a Cassandra cluster.- Returns:
- mapping of ranges to rpc addresses
-
getRangeToNativeaddressWithPortMap
java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getRangeToNativeaddressWithPortMap(java.lang.String keyspace)
-
describeRingJMX
@Deprecated java.util.List<java.lang.String> describeRingJMX(java.lang.String keyspace) throws java.io.IOExceptionDeprecated.The same asdescribeRing(String)but converts TokenRange to the String for JMX compatibility- Parameters:
keyspace- The keyspace to fetch information about- Returns:
- a List of TokenRange(s) converted to String for the given keyspace
- Throws:
java.io.IOException
-
describeRingWithPortJMX
java.util.List<java.lang.String> describeRingWithPortJMX(java.lang.String keyspace) throws java.io.IOException- Throws:
java.io.IOException
-
getPendingRangeToEndpointMap
@Deprecated java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getPendingRangeToEndpointMap(java.lang.String keyspace)
Deprecated.Retrieve a map of pending ranges to endpoints that describe the ring topology- Parameters:
keyspace- the keyspace to get the pending range map for.- Returns:
- a map of pending ranges to endpoints
-
getPendingRangeToEndpointWithPortMap
java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>> getPendingRangeToEndpointWithPortMap(java.lang.String keyspace)
-
getTokenToEndpointMap
@Deprecated java.util.Map<java.lang.String,java.lang.String> getTokenToEndpointMap()
Deprecated.Retrieve a map of tokens to endpoints, including the bootstrapping ones.- Returns:
- a map of tokens to endpoints in ascending order
-
getTokenToEndpointWithPortMap
java.util.Map<java.lang.String,java.lang.String> getTokenToEndpointWithPortMap()
-
getLocalHostId
java.lang.String getLocalHostId()
Retrieve this hosts unique ID
-
getHostIdMap
@Deprecated java.util.Map<java.lang.String,java.lang.String> getHostIdMap()
Deprecated.
-
getEndpointToHostId
@Deprecated java.util.Map<java.lang.String,java.lang.String> getEndpointToHostId()
Deprecated.Retrieve the mapping of endpoint to host ID
-
getEndpointWithPortToHostId
java.util.Map<java.lang.String,java.lang.String> getEndpointWithPortToHostId()
-
getHostIdToEndpoint
@Deprecated java.util.Map<java.lang.String,java.lang.String> getHostIdToEndpoint()
Deprecated.Retrieve the mapping of host ID to endpoint
-
getHostIdToEndpointWithPort
java.util.Map<java.lang.String,java.lang.String> getHostIdToEndpointWithPort()
-
getLoadString
java.lang.String getLoadString()
Human-readable load value
-
getLoadMap
@Deprecated java.util.Map<java.lang.String,java.lang.String> getLoadMap()
Deprecated.Human-readable load value. Keys are IP addresses.
-
getLoadMapWithPort
java.util.Map<java.lang.String,java.lang.String> getLoadMapWithPort()
-
getCurrentGenerationNumber
int getCurrentGenerationNumber()
Return the generation value for this node.- Returns:
- generation number
-
getNaturalEndpoints
@Deprecated java.util.List<java.net.InetAddress> getNaturalEndpoints(java.lang.String keyspaceName, java.lang.String cf, java.lang.String key)Deprecated.This method returns the N endpoints that are responsible for storing the specified key i.e for replication.- Parameters:
keyspaceName- keyspace namecf- Column family namekey- - key for which we need to find the endpoint return value - the endpoint responsible for this key
-
getNaturalEndpointsWithPort
java.util.List<java.lang.String> getNaturalEndpointsWithPort(java.lang.String keyspaceName, java.lang.String cf, java.lang.String key)
-
getNaturalEndpoints
@Deprecated java.util.List<java.net.InetAddress> getNaturalEndpoints(java.lang.String keyspaceName, java.nio.ByteBuffer key)Deprecated.
-
getNaturalEndpointsWithPort
java.util.List<java.lang.String> getNaturalEndpointsWithPort(java.lang.String keysapceName, java.nio.ByteBuffer key)
-
takeSnapshot
@Deprecated void takeSnapshot(java.lang.String tag, java.lang.String... keyspaceNames) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
takeTableSnapshot
@Deprecated void takeTableSnapshot(java.lang.String keyspaceName, java.lang.String tableName, java.lang.String tag) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
takeMultipleTableSnapshot
@Deprecated void takeMultipleTableSnapshot(java.lang.String tag, java.lang.String... tableList) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
takeSnapshot
void takeSnapshot(java.lang.String tag, java.util.Map<java.lang.String,java.lang.String> options, java.lang.String... entities) throws java.io.IOExceptionTakes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified.- Parameters:
tag- the tag given to the snapshot; may not be null or emptyoptions- Map of options (skipFlush is the only supported option for now)entities- list of keyspaces / tables in the form of empty | ks1 ks2 ... | ks1.cf1,ks2.cf2,...- Throws:
java.io.IOException
-
clearSnapshot
void clearSnapshot(java.lang.String tag, java.lang.String... keyspaceNames) throws java.io.IOExceptionRemove the snapshot with the given name from the given keyspaces. If no tag is specified we will remove all snapshots.- Throws:
java.io.IOException
-
getSnapshotDetails
@Deprecated java.util.Map<java.lang.String,javax.management.openmbean.TabularData> getSnapshotDetails()
Deprecated.Get the details of all the snapshot- Returns:
- A map of snapshotName to all its details in Tabular form.
-
getSnapshotDetails
java.util.Map<java.lang.String,javax.management.openmbean.TabularData> getSnapshotDetails(java.util.Map<java.lang.String,java.lang.String> options)
Get the details of all the snapshots- Parameters:
options- map of options used for filtering of snapshots- Returns:
- A map of snapshotName to all its details in Tabular form.
-
trueSnapshotsSize
long trueSnapshotsSize()
Get the true size taken by all snapshots across all keyspaces.- Returns:
- True size taken by all the snapshots.
-
setSnapshotLinksPerSecond
void setSnapshotLinksPerSecond(long throttle)
Set the current hardlink-per-second throttle for snapshots A setting of zero indicates no throttling- Parameters:
throttle-
-
getSnapshotLinksPerSecond
long getSnapshotLinksPerSecond()
Get the current hardlink-per-second throttle for snapshots A setting of zero indicates no throttling.- Returns:
- snapshot links-per-second throttle
-
refreshSizeEstimates
void refreshSizeEstimates() throws java.util.concurrent.ExecutionExceptionForces refresh of values stored in system.size_estimates of all column families.- Throws:
java.util.concurrent.ExecutionException
-
cleanupSizeEstimates
void cleanupSizeEstimates()
Removes extraneous entries in system.size_estimates.
-
forceKeyspaceCompaction
void forceKeyspaceCompaction(boolean splitOutput, java.lang.String keyspaceName, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionForces major compaction of a single keyspace- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
relocateSSTables
@Deprecated int relocateSSTables(java.lang.String keyspace, java.lang.String... cfnames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionDeprecated.- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
relocateSSTables
int relocateSSTables(int jobs, java.lang.String keyspace, java.lang.String... cfnames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
forceKeyspaceCompactionForTokenRange
void forceKeyspaceCompactionForTokenRange(java.lang.String keyspaceName, java.lang.String startToken, java.lang.String endToken, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionForces major compaction of specified token range in a single keyspace.- Parameters:
keyspaceName- the name of the keyspace to be compactedstartToken- the token at which the compaction range starts (inclusive)endToken- the token at which compaction range ends (inclusive)tableNames- the names of the tables to be compacted- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
forceKeyspaceCompactionForPartitionKey
void forceKeyspaceCompactionForPartitionKey(java.lang.String keyspaceName, java.lang.String partitionKey, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionForces major compactions for the range represented by the partition key- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
forceKeyspaceCleanup
@Deprecated int forceKeyspaceCleanup(java.lang.String keyspaceName, java.lang.String... tables) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionDeprecated.Trigger a cleanup of keys on a single keyspace- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
forceKeyspaceCleanup
int forceKeyspaceCleanup(int jobs, java.lang.String keyspaceName, java.lang.String... tables) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
scrub
@Deprecated int scrub(boolean disableSnapshot, boolean skipCorrupted, java.lang.String keyspaceName, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionDeprecated.Scrub (deserialize + reserialize at the latest version, skipping bad rows if any) the given keyspace. If tableNames array is empty, all CFs are scrubbed. Scrubbed CFs will be snapshotted first, if disableSnapshot is false- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
scrub
@Deprecated int scrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, java.lang.String keyspaceName, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionDeprecated.- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
scrub
@Deprecated int scrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, int jobs, java.lang.String keyspaceName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionDeprecated.- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
scrub
int scrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, int jobs, java.lang.String keyspaceName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
verify
int verify(boolean extendedVerify, java.lang.String keyspaceName, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionVerify (checksums of) the given keyspace. If tableNames array is empty, all CFs are verified. The entire sstable will be read to ensure each cell validates if extendedVerify is true- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
verify
int verify(boolean extendedVerify, boolean checkVersion, boolean diskFailurePolicy, boolean mutateRepairStatus, boolean checkOwnsTokens, boolean quick, java.lang.String keyspaceName, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
upgradeSSTables
@Deprecated int upgradeSSTables(java.lang.String keyspaceName, boolean excludeCurrentVersion, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionDeprecated.Rewrite all sstables to the latest version. Unlike scrub, it doesn't skip bad rows and do not snapshot sstables first.- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
upgradeSSTables
@Deprecated default int upgradeSSTables(java.lang.String keyspaceName, boolean excludeCurrentVersion, int jobs, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionDeprecated.- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
upgradeSSTables
int upgradeSSTables(java.lang.String keyspaceName, boolean excludeCurrentVersion, long maxSSTableTimestamp, int jobs, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
recompressSSTables
int recompressSSTables(java.lang.String keyspaceName, int jobs, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
garbageCollect
int garbageCollect(java.lang.String tombstoneOption, int jobs, java.lang.String keyspaceName, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionRewrites all sstables from the given tables to remove deleted data. The tombstone option defines the granularity of the procedure: ROW removes deleted partitions and rows, CELL also removes overwritten or deleted cells.- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
forceKeyspaceFlush
void forceKeyspaceFlush(java.lang.String keyspaceName, java.lang.String... tableNames) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedExceptionFlush all memtables for the given column families, or all columnfamilies for the given keyspace if none are explicitly listed.- Parameters:
keyspaceName-tableNames-- Throws:
java.io.IOExceptionjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedException
-
repairAsync
int repairAsync(java.lang.String keyspace, java.util.Map<java.lang.String,java.lang.String> options)Invoke repair asynchronously. You can track repair progress by subscribing JMX notification sent from this StorageServiceMBean. Notification format is: type: "repair" userObject: int array of length 2, [0]=command number, [1]=ordinal of ActiveRepairService.Status- Parameters:
keyspace- Keyspace name to repair. Should not be null.options- repair option.- Returns:
- Repair command number, or 0 if nothing to repair
-
forceTerminateAllRepairSessions
void forceTerminateAllRepairSessions()
-
setRepairSessionMaxTreeDepth
void setRepairSessionMaxTreeDepth(int depth)
-
getRepairSessionMaxTreeDepth
int getRepairSessionMaxTreeDepth()
-
getParentRepairStatus
@Nullable java.util.List<java.lang.String> getParentRepairStatus(int cmd)
Get the status of a given parent repair session.- Parameters:
cmd- the int reference returned when issuing the repair- Returns:
- status of parent repair from enum
org.apache.cassandra.repair.RepairRunnable.Statusfollowed by final message or messages of the session
-
decommission
void decommission(boolean force) throws java.lang.InterruptedExceptiontransfer this node's data to other machines and remove it from service.- Parameters:
force- Decommission even if this will reduce N to be less than RF.- Throws:
java.lang.InterruptedException
-
move
void move(java.lang.String newToken) throws java.io.IOException
- Parameters:
newToken- token to move this node to. This node will unload its data onto its neighbors, and bootstrap to the new token.- Throws:
java.io.IOException
-
removeNode
void removeNode(java.lang.String token)
removeToken removes token (and all data associated with enpoint that had it) from the ring
-
getRemovalStatus
@Deprecated java.lang.String getRemovalStatus()
Deprecated.Get the status of a token removal.
-
getRemovalStatusWithPort
java.lang.String getRemovalStatusWithPort()
-
forceRemoveCompletion
void forceRemoveCompletion()
Force a remove operation to finish.
-
setLoggingLevel
void setLoggingLevel(java.lang.String classQualifier, java.lang.String level) throws java.lang.Exceptionset the logging level at runtime
If both classQualifer and level are empty/null, it will reload the configuration to reset.
If classQualifer is not empty but level is empty/null, it will set the level to null for the defined classQualifer
If level cannot be parsed, then the level will be defaulted to DEBUG
The logback configuration should have< jmxConfigurator />set- Parameters:
classQualifier- The logger's classQualiferlevel- The log level- Throws:
java.lang.Exception- See Also:
Level.toLevel(String)
-
getLoggingLevels
java.util.Map<java.lang.String,java.lang.String> getLoggingLevels()
get the runtime logging levels
-
getOperationMode
java.lang.String getOperationMode()
get the operational mode (leaving, joining, normal, decommissioned, client)
-
isStarting
boolean isStarting()
Returns whether the storage service is starting or not
-
getDrainProgress
java.lang.String getDrainProgress()
get the progress of a drain operation
-
drain
void drain() throws java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionExceptionmakes node unavailable for writes, flushes memtables and replays commitlog.- Throws:
java.io.IOExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionException
-
truncate
void truncate(java.lang.String keyspace, java.lang.String table) throws java.util.concurrent.TimeoutException, java.io.IOExceptionTruncates (deletes) the given table from the provided keyspace. Calling truncate results in actual deletion of all data in the cluster under the given table and it will fail unless all hosts are up. All data in the given column family will be deleted, but its definition will not be affected.- Parameters:
keyspace- The keyspace to delete fromtable- The column family to delete data from.- Throws:
java.util.concurrent.TimeoutExceptionjava.io.IOException
-
getOwnership
@Deprecated java.util.Map<java.net.InetAddress,java.lang.Float> getOwnership()
Deprecated.given a list of tokens (representing the nodes in the cluster), returns a mapping from"token -> %age of cluster owned by that token"
-
getOwnershipWithPort
java.util.Map<java.lang.String,java.lang.Float> getOwnershipWithPort()
-
effectiveOwnership
@Deprecated java.util.Map<java.net.InetAddress,java.lang.Float> effectiveOwnership(java.lang.String keyspace) throws java.lang.IllegalStateExceptionDeprecated.Effective ownership is % of the data each node owns given the keyspace we calculate the percentage using replication factor. If Keyspace == null, this method will try to verify if all the keyspaces in the cluster have the same replication strategies and if yes then we will use the first else a empty Map is returned.- Throws:
java.lang.IllegalStateException
-
effectiveOwnershipWithPort
java.util.Map<java.lang.String,java.lang.Float> effectiveOwnershipWithPort(java.lang.String keyspace) throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
getKeyspaces
java.util.List<java.lang.String> getKeyspaces()
-
getNonSystemKeyspaces
java.util.List<java.lang.String> getNonSystemKeyspaces()
-
getNonLocalStrategyKeyspaces
java.util.List<java.lang.String> getNonLocalStrategyKeyspaces()
-
getViewBuildStatuses
@Deprecated java.util.Map<java.lang.String,java.lang.String> getViewBuildStatuses(java.lang.String keyspace, java.lang.String view)Deprecated.
-
getViewBuildStatusesWithPort
java.util.Map<java.lang.String,java.lang.String> getViewBuildStatusesWithPort(java.lang.String keyspace, java.lang.String view)
-
updateSnitch
void updateSnitch(java.lang.String epSnitchClassName, java.lang.Boolean dynamic, java.lang.Integer dynamicUpdateInterval, java.lang.Integer dynamicResetInterval, java.lang.Double dynamicBadnessThreshold) throws java.lang.ClassNotFoundExceptionChange endpointsnitch class and dynamic-ness (and dynamic attributes) at runtime. This method is used to change the snitch implementation and/or dynamic snitch parameters. IfepSnitchClassNameis specified, it will configure a new snitch instance and make it a 'dynamic snitch' ifdynamicis specified andtrue. The parametersdynamicUpdateInterval,dynamicResetIntervalanddynamicBadnessThresholdcan be specified individually to update the parameters of the dynamic snitch during runtime.- Parameters:
epSnitchClassName- the canonical path name for a class implementing IEndpointSnitchdynamic- boolean that decides whether dynamicsnitch is used or not - only valid, ifepSnitchClassNameis specifieddynamicUpdateInterval- integer, in ms (defaults to the value configured in cassandra.yaml, which defaults to 100)dynamicResetInterval- integer, in ms (defaults to the value configured in cassandra.yaml, which defaults to 600,000)dynamicBadnessThreshold- double, (defaults to the value configured in cassandra.yaml, which defaults to 0.0)- Throws:
java.lang.ClassNotFoundException
-
setDynamicUpdateInterval
void setDynamicUpdateInterval(int dynamicUpdateInterval)
-
getDynamicUpdateInterval
int getDynamicUpdateInterval()
-
getBatchlogEndpointStrategy
java.lang.String getBatchlogEndpointStrategy()
-
setBatchlogEndpointStrategy
void setBatchlogEndpointStrategy(java.lang.String batchlogEndpointStrategy)
SeeConfig.BatchlogEndpointStrategyfor valid values.
-
stopGossiping
void stopGossiping()
-
startGossiping
void startGossiping()
-
isGossipRunning
boolean isGossipRunning()
-
stopDaemon
void stopDaemon()
-
isInitialized
boolean isInitialized()
-
stopNativeTransport
void stopNativeTransport()
-
startNativeTransport
void startNativeTransport()
-
isNativeTransportRunning
boolean isNativeTransportRunning()
-
enableNativeTransportOldProtocolVersions
void enableNativeTransportOldProtocolVersions()
-
disableNativeTransportOldProtocolVersions
void disableNativeTransportOldProtocolVersions()
-
getNativeTransportMaxConcurrentRequestsInBytes
long getNativeTransportMaxConcurrentRequestsInBytes()
-
setNativeTransportMaxConcurrentRequestsInBytes
void setNativeTransportMaxConcurrentRequestsInBytes(long newLimit)
-
getNativeTransportMaxConcurrentRequestsInBytesPerIp
long getNativeTransportMaxConcurrentRequestsInBytesPerIp()
-
setNativeTransportMaxConcurrentRequestsInBytesPerIp
void setNativeTransportMaxConcurrentRequestsInBytesPerIp(long newLimit)
-
getNativeTransportMaxRequestsPerSecond
int getNativeTransportMaxRequestsPerSecond()
-
setNativeTransportMaxRequestsPerSecond
void setNativeTransportMaxRequestsPerSecond(int newPerSecond)
-
setNativeTransportRateLimitingEnabled
void setNativeTransportRateLimitingEnabled(boolean enabled)
-
getNativeTransportRateLimitingEnabled
boolean getNativeTransportRateLimitingEnabled()
-
joinRing
void joinRing() throws java.io.IOException- Throws:
java.io.IOException
-
isJoined
boolean isJoined()
-
isDrained
boolean isDrained()
-
isDraining
boolean isDraining()
-
isBootstrapMode
boolean isBootstrapMode()
Check if currently bootstrapping. Note this becomes false beforeSystemKeyspace.bootstrapComplete()is called, as setting bootstrap to complete is called only when the node joins the ring.- Returns:
- True prior to bootstrap streaming completing. False prior to start of bootstrap and post streaming.
-
setRpcTimeout
void setRpcTimeout(long value)
-
getRpcTimeout
long getRpcTimeout()
-
setReadRpcTimeout
void setReadRpcTimeout(long value)
-
getReadRpcTimeout
long getReadRpcTimeout()
-
setRangeRpcTimeout
void setRangeRpcTimeout(long value)
-
getRangeRpcTimeout
long getRangeRpcTimeout()
-
setWriteRpcTimeout
void setWriteRpcTimeout(long value)
-
getWriteRpcTimeout
long getWriteRpcTimeout()
-
setInternodeTcpConnectTimeoutInMS
void setInternodeTcpConnectTimeoutInMS(int value)
-
getInternodeTcpConnectTimeoutInMS
int getInternodeTcpConnectTimeoutInMS()
-
setInternodeTcpUserTimeoutInMS
void setInternodeTcpUserTimeoutInMS(int value)
-
getInternodeTcpUserTimeoutInMS
int getInternodeTcpUserTimeoutInMS()
-
setInternodeStreamingTcpUserTimeoutInMS
void setInternodeStreamingTcpUserTimeoutInMS(int value)
-
getInternodeStreamingTcpUserTimeoutInMS
int getInternodeStreamingTcpUserTimeoutInMS()
-
setCounterWriteRpcTimeout
void setCounterWriteRpcTimeout(long value)
-
getCounterWriteRpcTimeout
long getCounterWriteRpcTimeout()
-
setCasContentionTimeout
void setCasContentionTimeout(long value)
-
getCasContentionTimeout
long getCasContentionTimeout()
-
setTruncateRpcTimeout
void setTruncateRpcTimeout(long value)
-
getTruncateRpcTimeout
long getTruncateRpcTimeout()
-
setStreamThroughputMbitPerSec
void setStreamThroughputMbitPerSec(int value)
-
getStreamThroughputMbitPerSec
@Deprecated int getStreamThroughputMbitPerSec()
Deprecated.Use getStreamThroughputMbitPerSecAsDouble instead as this one will provide a rounded value- Returns:
- stream_throughput_outbound in megabits
-
getStreamThroughputMbitPerSecAsDouble
double getStreamThroughputMbitPerSecAsDouble()
-
setStreamThroughputMbPerSec
@Deprecated void setStreamThroughputMbPerSec(int value)
Deprecated.
-
getStreamThroughputMbPerSec
@Deprecated int getStreamThroughputMbPerSec()
Deprecated.Use getStreamThroughputMebibytesPerSecAsDouble instead as this one will provide a rounded value- Returns:
- stream_throughput_outbound in MiB
-
setStreamThroughputMebibytesPerSec
void setStreamThroughputMebibytesPerSec(int value)
-
getStreamThroughputMebibytesPerSec
int getStreamThroughputMebibytesPerSec()
Below method returns stream_throughput_outbound rounded, for precise number, please, use getStreamThroughputMebibytesPerSecAsDouble- Returns:
- stream_throughput_outbound in MiB
-
getStreamThroughputMebibytesPerSecAsDouble
double getStreamThroughputMebibytesPerSecAsDouble()
-
setInterDCStreamThroughputMbitPerSec
void setInterDCStreamThroughputMbitPerSec(int value)
-
getInterDCStreamThroughputMbitPerSec
@Deprecated int getInterDCStreamThroughputMbitPerSec()
Deprecated.Use getInterDCStreamThroughputMbitPerSecAsDouble instead as this one will provide a rounded value- Returns:
- inter_dc_stream_throughput_outbound in megabits
-
getInterDCStreamThroughputMbitPerSecAsDouble
double getInterDCStreamThroughputMbitPerSecAsDouble()
-
setInterDCStreamThroughputMbPerSec
@Deprecated void setInterDCStreamThroughputMbPerSec(int value)
Deprecated.
-
getInterDCStreamThroughputMbPerSec
@Deprecated int getInterDCStreamThroughputMbPerSec()
Deprecated.Use getInterDCStreamThroughputMebibytesPerSecAsDouble instead as this one will provide a rounded value- Returns:
- inter_dc_stream_throughput_outbound in MiB
-
setInterDCStreamThroughputMebibytesPerSec
void setInterDCStreamThroughputMebibytesPerSec(int value)
-
getInterDCStreamThroughputMebibytesPerSec
int getInterDCStreamThroughputMebibytesPerSec()
Below method returns Inter_dc_stream_throughput_outbound rounded, for precise number, please, use getInterDCStreamThroughputMebibytesPerSecAsDouble- Returns:
- inter_dc_stream_throughput_outbound in MiB
-
getInterDCStreamThroughputMebibytesPerSecAsDouble
double getInterDCStreamThroughputMebibytesPerSecAsDouble()
-
setEntireSSTableStreamThroughputMebibytesPerSec
void setEntireSSTableStreamThroughputMebibytesPerSec(int value)
-
getEntireSSTableStreamThroughputMebibytesPerSecAsDouble
double getEntireSSTableStreamThroughputMebibytesPerSecAsDouble()
-
setEntireSSTableInterDCStreamThroughputMebibytesPerSec
void setEntireSSTableInterDCStreamThroughputMebibytesPerSec(int value)
-
getEntireSSTableInterDCStreamThroughputMebibytesPerSecAsDouble
double getEntireSSTableInterDCStreamThroughputMebibytesPerSecAsDouble()
-
getCompactionThroughtputMibPerSecAsDouble
double getCompactionThroughtputMibPerSecAsDouble()
-
getCompactionThroughtputBytesPerSec
long getCompactionThroughtputBytesPerSec()
-
getCompactionThroughputMbPerSec
@Deprecated int getCompactionThroughputMbPerSec()
Deprecated.Use getCompactionThroughtputMibPerSecAsDouble instead as this one will provide a rounded value- Returns:
- compaction_throughgput in MiB
-
setCompactionThroughputMbPerSec
void setCompactionThroughputMbPerSec(int value)
-
getBatchlogReplayThrottleInKB
int getBatchlogReplayThrottleInKB()
-
setBatchlogReplayThrottleInKB
void setBatchlogReplayThrottleInKB(int value)
-
getConcurrentCompactors
int getConcurrentCompactors()
-
setConcurrentCompactors
void setConcurrentCompactors(int value)
-
bypassConcurrentValidatorsLimit
void bypassConcurrentValidatorsLimit()
-
enforceConcurrentValidatorsLimit
void enforceConcurrentValidatorsLimit()
-
isConcurrentValidatorsLimitEnforced
boolean isConcurrentValidatorsLimitEnforced()
-
getConcurrentValidators
int getConcurrentValidators()
-
setConcurrentValidators
void setConcurrentValidators(int value)
-
getSSTablePreemptiveOpenIntervalInMB
int getSSTablePreemptiveOpenIntervalInMB()
-
setSSTablePreemptiveOpenIntervalInMB
void setSSTablePreemptiveOpenIntervalInMB(int intervalInMB)
-
getMigrateKeycacheOnCompaction
boolean getMigrateKeycacheOnCompaction()
-
setMigrateKeycacheOnCompaction
void setMigrateKeycacheOnCompaction(boolean invalidateKeyCacheOnCompaction)
-
getConcurrentViewBuilders
int getConcurrentViewBuilders()
-
setConcurrentViewBuilders
void setConcurrentViewBuilders(int value)
-
isIncrementalBackupsEnabled
boolean isIncrementalBackupsEnabled()
-
setIncrementalBackupsEnabled
void setIncrementalBackupsEnabled(boolean value)
-
rebuild
void rebuild(java.lang.String sourceDc)
Initiate a process of streaming data for which we are responsible from other nodes. It is similar to bootstrap except meant to be used on a node which is already in the cluster (typically containing no data) as an alternative to running repair.- Parameters:
sourceDc- Name of DC from which to select sources for streaming or null to pick any node
-
rebuild
void rebuild(java.lang.String sourceDc, java.lang.String keyspace, java.lang.String tokens, java.lang.String specificSources)Same asrebuild(String), but only for specified keyspace and ranges.- Parameters:
sourceDc- Name of DC from which to select sources for streaming or null to pick any nodekeyspace- Name of the keyspace which to rebuild or null to rebuild all keyspaces.tokens- Range of tokens to rebuild or null to rebuild all token ranges. In the format of: "(start_token_1,end_token_1],(start_token_2,end_token_2],...(start_token_n,end_token_n]"
-
bulkLoad
void bulkLoad(java.lang.String directory)
Starts a bulk load and blocks until it completes.
-
bulkLoadAsync
java.lang.String bulkLoadAsync(java.lang.String directory)
Starts a bulk load asynchronously and returns the String representation of the planID for the new streaming session.
-
rescheduleFailedDeletions
void rescheduleFailedDeletions()
-
loadNewSSTables
@Deprecated void loadNewSSTables(java.lang.String ksName, java.lang.String tableName)Deprecated.Load new SSTables to the given keyspace/table- Parameters:
ksName- The parent keyspace nametableName- The ColumnFamily name where SSTables belong- See Also:
ColumnFamilyStoreMBean.loadNewSSTables()
-
sampleKeyRange
java.util.List<java.lang.String> sampleKeyRange()
Return a List of Tokens representing a sample of keys across all ColumnFamilyStores. Note: this should be left as an operation, not an attribute (methods starting with "get") to avoid sending potentially multiple MB of data when accessing this mbean by default. See CASSANDRA-4452.- Returns:
- set of Tokens as Strings
-
rebuildSecondaryIndex
void rebuildSecondaryIndex(java.lang.String ksName, java.lang.String cfName, java.lang.String... idxNames)rebuild the specified indexes
-
resetLocalSchema
void resetLocalSchema() throws java.io.IOException- Throws:
java.io.IOException
-
reloadLocalSchema
void reloadLocalSchema()
-
setTraceProbability
void setTraceProbability(double probability)
Enables/Disables tracing for the whole system.- Parameters:
probability- ]0,1[ will enable tracing on a partial number of requests with the provided probability. 0 will disable tracing and 1 will enable tracing for all requests (which mich severely cripple the system)
-
samplePartitions
java.util.Map<java.lang.String,java.util.List<javax.management.openmbean.CompositeData>> samplePartitions(int duration, int capacity, int count, java.util.List<java.lang.String> samplers) throws javax.management.openmbean.OpenDataException- Throws:
javax.management.openmbean.OpenDataException
-
getTraceProbability
double getTraceProbability()
Returns the configured tracing probability.
-
disableAutoCompaction
void disableAutoCompaction(java.lang.String ks, java.lang.String... tables) throws java.io.IOException- Throws:
java.io.IOException
-
enableAutoCompaction
void enableAutoCompaction(java.lang.String ks, java.lang.String... tables) throws java.io.IOException- Throws:
java.io.IOException
-
getAutoCompactionStatus
java.util.Map<java.lang.String,java.lang.Boolean> getAutoCompactionStatus(java.lang.String ks, java.lang.String... tables) throws java.io.IOException- Throws:
java.io.IOException
-
deliverHints
void deliverHints(java.lang.String host) throws java.net.UnknownHostException- Throws:
java.net.UnknownHostException
-
getClusterName
java.lang.String getClusterName()
Returns the name of the cluster
-
getPartitionerName
java.lang.String getPartitionerName()
Returns the cluster partitioner
-
getTombstoneWarnThreshold
int getTombstoneWarnThreshold()
Returns the threshold for warning of queries with many tombstones
-
setTombstoneWarnThreshold
void setTombstoneWarnThreshold(int tombstoneDebugThreshold)
Sets the threshold for warning queries with many tombstones
-
getTombstoneFailureThreshold
int getTombstoneFailureThreshold()
Returns the threshold for abandoning queries with many tombstones
-
setTombstoneFailureThreshold
void setTombstoneFailureThreshold(int tombstoneDebugThreshold)
Sets the threshold for abandoning queries with many tombstones
-
getCachedReplicaRowsWarnThreshold
int getCachedReplicaRowsWarnThreshold()
Returns the number of rows cached at the coordinator before filtering/index queries log a warning.
-
setCachedReplicaRowsWarnThreshold
void setCachedReplicaRowsWarnThreshold(int threshold)
Sets the number of rows cached at the coordinator before filtering/index queries log a warning.
-
getCachedReplicaRowsFailThreshold
int getCachedReplicaRowsFailThreshold()
Returns the number of rows cached at the coordinator before filtering/index queries fail outright.
-
setCachedReplicaRowsFailThreshold
void setCachedReplicaRowsFailThreshold(int threshold)
Sets the number of rows cached at the coordinator before filtering/index queries fail outright.
-
getColumnIndexSizeInKiB
int getColumnIndexSizeInKiB()
Returns the granularity of the collation index of rows within a partition
-
setColumnIndexSize
void setColumnIndexSize(int columnIndexSizeInKB)
Sets the granularity of the collation index of rows within a partition
-
getColumnIndexCacheSize
int getColumnIndexCacheSize()
Returns the threshold for skipping the column index when caching partition info
-
setColumnIndexCacheSize
void setColumnIndexCacheSize(int cacheSizeInKB)
Sets the threshold for skipping the column index when caching partition info
-
getBatchSizeFailureThreshold
int getBatchSizeFailureThreshold()
Returns the threshold for rejecting queries due to a large batch size
-
setBatchSizeFailureThreshold
void setBatchSizeFailureThreshold(int batchSizeDebugThreshold)
Sets the threshold for rejecting queries due to a large batch size
-
getBatchSizeWarnThreshold
int getBatchSizeWarnThreshold()
Returns the threshold for warning queries due to a large batch size
-
setBatchSizeWarnThreshold
void setBatchSizeWarnThreshold(int batchSizeDebugThreshold)
Sets the threshold for warning queries due to a large batch size
-
setHintedHandoffThrottleInKB
void setHintedHandoffThrottleInKB(int throttleInKB)
Sets the hinted handoff throttle in KiB per second, per delivery thread.
-
getTransferHintsOnDecommission
boolean getTransferHintsOnDecommission()
-
setTransferHintsOnDecommission
void setTransferHintsOnDecommission(boolean enabled)
-
isHintTtlUseMutationCreationTime
boolean isHintTtlUseMutationCreationTime()
Returns whether we are using the creation time of the mutation for determining hint ttl
-
setUseCreationTimeForHintTtl
void setUseCreationTimeForHintTtl(boolean enabled)
Sets whether we are using the creation time of the mutation for determining hint ttl
-
getMaxHintTTL
int getMaxHintTTL()
Returns upper bound on the hint ttl
-
setMaxHintTTL
void setMaxHintTTL(int maxHintTTL)
Sets the upper bound on the hint ttl
-
resumeBootstrap
boolean resumeBootstrap()
Resume bootstrap streaming when there is failed data streaming.- Returns:
- true if the node successfully starts resuming. (this does not mean bootstrap streaming was success.)
-
getConcurrency
java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> getConcurrency(java.util.List<java.lang.String> stageNames)
-
setConcurrency
void setConcurrency(java.lang.String threadPoolName, int newCorePoolSize, int newMaximumPoolSize)Sets the concurrency setting for processing stages
-
clearConnectionHistory
void clearConnectionHistory()
Clears the history of clients that have connected in the past
-
disableAuditLog
void disableAuditLog()
-
enableAuditLog
void enableAuditLog(java.lang.String loggerName, java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String includedKeyspaces, java.lang.String excludedKeyspaces, java.lang.String includedCategories, java.lang.String excludedCategories, java.lang.String includedUsers, java.lang.String excludedUsers, java.lang.Integer maxArchiveRetries, java.lang.Boolean block, java.lang.String rollCycle, java.lang.Long maxLogSize, java.lang.Integer maxQueueWeight, java.lang.String archiveCommand) throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
enableAuditLog
@Deprecated void enableAuditLog(java.lang.String loggerName, java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String includedKeyspaces, java.lang.String excludedKeyspaces, java.lang.String includedCategories, java.lang.String excludedCategories, java.lang.String includedUsers, java.lang.String excludedUsers) throws ConfigurationException, java.lang.IllegalStateExceptionDeprecated.- Throws:
ConfigurationExceptionjava.lang.IllegalStateException
-
enableAuditLog
@Deprecated void enableAuditLog(java.lang.String loggerName, java.lang.String includedKeyspaces, java.lang.String excludedKeyspaces, java.lang.String includedCategories, java.lang.String excludedCategories, java.lang.String includedUsers, java.lang.String excludedUsers) throws ConfigurationException, java.lang.IllegalStateExceptionDeprecated.- Throws:
ConfigurationExceptionjava.lang.IllegalStateException
-
enableAuditLog
void enableAuditLog(java.lang.String loggerName, java.lang.String includedKeyspaces, java.lang.String excludedKeyspaces, java.lang.String includedCategories, java.lang.String excludedCategories, java.lang.String includedUsers, java.lang.String excludedUsers, java.lang.Integer maxArchiveRetries, java.lang.Boolean block, java.lang.String rollCycle, java.lang.Long maxLogSize, java.lang.Integer maxQueueWeight, java.lang.String archiveCommand) throws java.lang.IllegalStateException- Throws:
java.lang.IllegalStateException
-
isAuditLogEnabled
boolean isAuditLogEnabled()
-
getCorruptedTombstoneStrategy
java.lang.String getCorruptedTombstoneStrategy()
-
setCorruptedTombstoneStrategy
void setCorruptedTombstoneStrategy(java.lang.String strategy)
-
enableFullQueryLogger
void enableFullQueryLogger(java.lang.String path, java.lang.String rollCycle, java.lang.Boolean blocking, int maxQueueWeight, long maxLogSize, @Nullable java.lang.String archiveCommand, int maxArchiveRetries)Start the fully query logger.- Parameters:
path- Path where the full query log will be stored. If null cassandra.yaml value is used.rollCycle- How often to create a new file for query data (MINUTELY, DAILY, HOURLY)blocking- Whether threads submitting queries to the query log should block if they can't be drained to the filesystem or alternatively drops samples and logmaxQueueWeight- How many bytes of query data to queue before blocking or dropping samplesmaxLogSize- How many bytes of log data to store before dropping segments. Might not be respected if a log file hasn't rolled so it can be deleted.archiveCommand- executable archiving the rolled log files,maxArchiveRetries- max number of times to retry a failing archive command
-
resetFullQueryLogger
void resetFullQueryLogger()
Disable the full query logger if it is enabled. Also delete any generated files in the last used full query log path as well as the one configure in cassandra.yaml
-
stopFullQueryLogger
void stopFullQueryLogger()
Stop logging queries but leave any generated files on disk.
-
isFullQueryLogEnabled
boolean isFullQueryLogEnabled()
-
getFullQueryLoggerOptions
javax.management.openmbean.CompositeData getFullQueryLoggerOptions()
Returns the current state of FQL.
-
setInitialRangeTombstoneListAllocationSize
void setInitialRangeTombstoneListAllocationSize(int size)
Sets the initial allocation size of backing arrays for new RangeTombstoneList objects
-
getInitialRangeTombstoneListAllocationSize
int getInitialRangeTombstoneListAllocationSize()
Returns the initial allocation size of backing arrays for new RangeTombstoneList objects
-
setRangeTombstoneListResizeGrowthFactor
void setRangeTombstoneListResizeGrowthFactor(double growthFactor)
Sets the resize factor to use when growing/resizing a RangeTombstoneList
-
getRangeTombstoneResizeListGrowthFactor
double getRangeTombstoneResizeListGrowthFactor()
Returns the resize factor to use when growing/resizing a RangeTombstoneList
-
getOutstandingSchemaVersions
@Deprecated java.util.Map<java.lang.String,java.util.Set<java.net.InetAddress>> getOutstandingSchemaVersions()
Deprecated.Returns a map of schema version -> list of endpoints reporting that version that we need schema updates for
-
getOutstandingSchemaVersionsWithPort
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getOutstandingSchemaVersionsWithPort()
-
autoOptimiseIncRepairStreams
boolean autoOptimiseIncRepairStreams()
-
setAutoOptimiseIncRepairStreams
void setAutoOptimiseIncRepairStreams(boolean enabled)
-
autoOptimiseFullRepairStreams
boolean autoOptimiseFullRepairStreams()
-
setAutoOptimiseFullRepairStreams
void setAutoOptimiseFullRepairStreams(boolean enabled)
-
autoOptimisePreviewRepairStreams
boolean autoOptimisePreviewRepairStreams()
-
setAutoOptimisePreviewRepairStreams
void setAutoOptimisePreviewRepairStreams(boolean enabled)
-
getTableCountWarnThreshold
@Deprecated int getTableCountWarnThreshold()
Deprecated.
-
setTableCountWarnThreshold
@Deprecated void setTableCountWarnThreshold(int value)
Deprecated.
-
getKeyspaceCountWarnThreshold
@Deprecated int getKeyspaceCountWarnThreshold()
Deprecated.
-
setKeyspaceCountWarnThreshold
@Deprecated void setKeyspaceCountWarnThreshold(int value)
Deprecated.
-
setCompactionTombstoneWarningThreshold
void setCompactionTombstoneWarningThreshold(int count)
-
getCompactionTombstoneWarningThreshold
int getCompactionTombstoneWarningThreshold()
-
getReadThresholdsEnabled
boolean getReadThresholdsEnabled()
-
setReadThresholdsEnabled
void setReadThresholdsEnabled(boolean value)
-
getCoordinatorLargeReadWarnThreshold
java.lang.String getCoordinatorLargeReadWarnThreshold()
-
setCoordinatorLargeReadWarnThreshold
void setCoordinatorLargeReadWarnThreshold(java.lang.String threshold)
-
getCoordinatorLargeReadAbortThreshold
java.lang.String getCoordinatorLargeReadAbortThreshold()
-
setCoordinatorLargeReadAbortThreshold
void setCoordinatorLargeReadAbortThreshold(java.lang.String threshold)
-
getLocalReadTooLargeWarnThreshold
java.lang.String getLocalReadTooLargeWarnThreshold()
-
setLocalReadTooLargeWarnThreshold
void setLocalReadTooLargeWarnThreshold(java.lang.String value)
-
getLocalReadTooLargeAbortThreshold
java.lang.String getLocalReadTooLargeAbortThreshold()
-
setLocalReadTooLargeAbortThreshold
void setLocalReadTooLargeAbortThreshold(java.lang.String value)
-
getRowIndexReadSizeWarnThreshold
java.lang.String getRowIndexReadSizeWarnThreshold()
-
setRowIndexReadSizeWarnThreshold
void setRowIndexReadSizeWarnThreshold(java.lang.String value)
-
getRowIndexReadSizeAbortThreshold
java.lang.String getRowIndexReadSizeAbortThreshold()
-
setRowIndexReadSizeAbortThreshold
void setRowIndexReadSizeAbortThreshold(java.lang.String value)
-
setDefaultKeyspaceReplicationFactor
void setDefaultKeyspaceReplicationFactor(int value)
-
getDefaultKeyspaceReplicationFactor
int getDefaultKeyspaceReplicationFactor()
-
getSkipPaxosRepairOnTopologyChange
boolean getSkipPaxosRepairOnTopologyChange()
-
setSkipPaxosRepairOnTopologyChange
void setSkipPaxosRepairOnTopologyChange(boolean v)
-
getSkipPaxosRepairOnTopologyChangeKeyspaces
java.lang.String getSkipPaxosRepairOnTopologyChangeKeyspaces()
-
setSkipPaxosRepairOnTopologyChangeKeyspaces
void setSkipPaxosRepairOnTopologyChangeKeyspaces(java.lang.String v)
-
getPaxosAutoRepairsEnabled
boolean getPaxosAutoRepairsEnabled()
-
setPaxosAutoRepairsEnabled
void setPaxosAutoRepairsEnabled(boolean enabled)
-
getPaxosStateFlushEnabled
boolean getPaxosStateFlushEnabled()
-
setPaxosStateFlushEnabled
void setPaxosStateFlushEnabled(boolean enabled)
-
getPaxosAutoRepairTables
java.util.List<java.lang.String> getPaxosAutoRepairTables()
-
getPaxosPurgeGraceSeconds
long getPaxosPurgeGraceSeconds()
-
setPaxosPurgeGraceSeconds
void setPaxosPurgeGraceSeconds(long v)
-
getPaxosOnLinearizabilityViolations
java.lang.String getPaxosOnLinearizabilityViolations()
-
setPaxosOnLinearizabilityViolations
void setPaxosOnLinearizabilityViolations(java.lang.String v)
-
getPaxosStatePurging
java.lang.String getPaxosStatePurging()
-
setPaxosStatePurging
void setPaxosStatePurging(java.lang.String v)
-
getPaxosRepairEnabled
boolean getPaxosRepairEnabled()
-
setPaxosRepairEnabled
void setPaxosRepairEnabled(boolean v)
-
getPaxosDcLocalCommitEnabled
boolean getPaxosDcLocalCommitEnabled()
-
setPaxosDcLocalCommitEnabled
void setPaxosDcLocalCommitEnabled(boolean v)
-
getPaxosBallotLowBound
java.lang.String getPaxosBallotLowBound(java.lang.String keyspace, java.lang.String table, java.lang.String key)
-
getRepairRpcTimeout
java.lang.Long getRepairRpcTimeout()
-
setRepairRpcTimeout
void setRepairRpcTimeout(java.lang.Long timeoutInMillis)
-
evictHungRepairs
void evictHungRepairs()
-
clearPaxosRepairs
void clearPaxosRepairs()
-
setSkipPaxosRepairCompatibilityCheck
void setSkipPaxosRepairCompatibilityCheck(boolean v)
-
getSkipPaxosRepairCompatibilityCheck
boolean getSkipPaxosRepairCompatibilityCheck()
-
getToken
java.lang.String getToken(java.lang.String keyspaceName, java.lang.String table, java.lang.String partitionKey)
-
topPartitionsEnabled
boolean topPartitionsEnabled()
-
getMaxTopSizePartitionCount
int getMaxTopSizePartitionCount()
-
setMaxTopSizePartitionCount
void setMaxTopSizePartitionCount(int value)
-
getMaxTopTombstonePartitionCount
int getMaxTopTombstonePartitionCount()
-
setMaxTopTombstonePartitionCount
void setMaxTopTombstonePartitionCount(int value)
-
getMinTrackedPartitionSize
java.lang.String getMinTrackedPartitionSize()
-
setMinTrackedPartitionSize
void setMinTrackedPartitionSize(java.lang.String value)
-
getMinTrackedPartitionTombstoneCount
long getMinTrackedPartitionTombstoneCount()
-
setMinTrackedPartitionTombstoneCount
void setMinTrackedPartitionTombstoneCount(long value)
-
getCQLStartTime
java.lang.String getCQLStartTime()
-
setCQLStartTime
void setCQLStartTime(java.lang.String value)
-
getNativeTransportQueueMaxItemAgeThreshold
double getNativeTransportQueueMaxItemAgeThreshold()
-
setNativeTransportQueueMaxItemAgeThreshold
void setNativeTransportQueueMaxItemAgeThreshold(double threshold)
-
getNativeTransportMinBackoffOnQueueOverloadInMillis
long getNativeTransportMinBackoffOnQueueOverloadInMillis()
-
getNativeTransportMaxBackoffOnQueueOverloadInMillis
long getNativeTransportMaxBackoffOnQueueOverloadInMillis()
-
setNativeTransportBackoffOnQueueOverloadInMillis
void setNativeTransportBackoffOnQueueOverloadInMillis(long min, long max)
-
getNativeTransportThrowOnOverload
boolean getNativeTransportThrowOnOverload()
-
setNativeTransportThrowOnOverload
void setNativeTransportThrowOnOverload(boolean throwOnOverload)
-
getNativeTransportTimeoutMillis
long getNativeTransportTimeoutMillis()
-
setNativeTransportTimeoutMillis
void setNativeTransportTimeoutMillis(long deadlineMillis)
-
getEnforceNativeDeadlineForHints
boolean getEnforceNativeDeadlineForHints()
-
setEnforceNativeDeadlineForHints
void setEnforceNativeDeadlineForHints(boolean value)
-
isOutOfTokenRangeRequestLoggingEnabled
boolean isOutOfTokenRangeRequestLoggingEnabled()
Toggles to turn on the logging or rejection of operations for token ranges that the node does not own, or is not about to acquire.
-
setOutOfTokenRangeRequestLoggingEnabled
void setOutOfTokenRangeRequestLoggingEnabled(boolean enabled)
-
isOutOfTokenRangeRequestRejectionEnabled
boolean isOutOfTokenRangeRequestRejectionEnabled()
-
setOutOfTokenRangeRequestRejectionEnabled
void setOutOfTokenRangeRequestRejectionEnabled(boolean enabled)
-
getOutOfRangeOperationCounts
java.util.Map<java.lang.String,long[]> getOutOfRangeOperationCounts()
Get the per-keyspace counts of operations that the node has received for tokens outside its owned ranges. Represented as aMap<String, long[]>, keys are keyspace names and the values are the counts for read, write and paxos ops respectivly. e.g. keyspace_name -> [reads, writes, paxos].
-
setPaxosRepairRaceWait
void setPaxosRepairRaceWait(boolean paxosRepairCoordinatorWait)
-
getPaxosRepairRaceWait
boolean getPaxosRepairRaceWait()
-
-