Package org.apache.cassandra.service
Class StorageService
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.apache.cassandra.service.StorageService
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter,IEndpointStateChangeSubscriber,StorageServiceMBean
public class StorageService
extends NotificationBroadcasterSupport
implements IEndpointStateChangeSubscriber, StorageServiceMBean
This abstraction contains the token/identifier of this node
on the identifier space. This token gets gossiped around.
This class will also maintain histograms of the load information
of other nodes in the cluster.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.cassandra.service.StorageServiceMBean
StorageServiceMBean.StageConcurrency -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final StorageServicestatic final AtomicIntegerstatic final intstatic final intbooleanfinal SnapshotManagerfinal SSTablesGlobalTrackerstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddExpireTimeIfFound(InetAddressAndPort endpoint, long expireTime) voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) booleanaddPostShutdownHook(Runnable hook) Add a runnable which will be called after shutdown or drain.booleanaddPreShutdownHook(Runnable hook) Add a runnable which will be called before shut down or drain.voidaddSnapshot(TableSnapshot snapshot) booleanbooleanbooleanbooleanFuture<?>autoRepairPaxos(TableId tableId) voidbeforeChange(InetAddressAndPort endpoint, EndpointState currentState, ApplicationState newStateKey, VersionedValue newValue) booleanbootstrap(Collection<Token> tokens, long bootstrapTimeoutMillis) Bootstrap node by fetching data from other nodes.voidStarts a bulk load and blocks until it completes.bulkLoadAsync(String directory) Starts a bulk load asynchronously and returns the String representation of the planID for the new streaming session.voidvoidcheckForEndpointCollision(UUID localHostId, Set<InetAddressAndPort> peers) voidRemoves extraneous entries in system.size_estimates.voidClears the history of clients that have connected in the pastvoidvoidclearSnapshot(String tag, String... keyspaceNames) Remove the snapshot with the given name from the given keyspaces.voidRemove the snapshot with the given name from the given keyspaces.voidvoidvoiddecommission(boolean force) transfer this node's data to other machines and remove it from service.final voiddeliverHints(String host) describeLocalRing(String keyspace) The same asdescribeRing(String)but considers only the part of the ring formed by nodes in the local DC.describeRing(String keyspace) The TokenRange for a given keyspace.describeRingJMX(String keyspace) The same asdescribeRing(String)but converts TokenRange to the String for JMX compatibilitydescribeRingWithPortJMX(String keyspace) voidvoidvoiddisableAutoCompaction(String ks, String... tables) voidvoiddoAuthSetup(boolean setUpSchema) voidvoiddrain()Shuts node off to writes, empties memtables and the commit log.protected voiddrain(boolean isFinalShutdown) voiddropPreparedStatements(boolean memoryOnly) effectiveOwnership(String keyspace) Effective ownership is % of the data each node owns given the keyspace we calculate the percentage using replication factor.effectiveOwnershipWithPort(String keyspace) voidenableAuditLog(String loggerName, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers) Deprecated.See CASSANDRA-16725voidenableAuditLog(String loggerName, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers, Integer maxArchiveRetries, Boolean block, String rollCycle, Long maxLogSize, Integer maxQueueWeight, String archiveCommand) voidenableAuditLog(String loggerName, Map<String, String> parameters, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers) Deprecated.See CASSANDRA-16725voidenableAuditLog(String loggerName, Map<String, String> parameters, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers, Integer maxArchiveRetries, Boolean block, String rollCycle, Long maxLogSize, Integer maxQueueWeight, String archiveCommand) voidenableAutoCompaction(String ks, String... tables) voidenableFullQueryLogger(String path, String rollCycle, Boolean blocking, int maxQueueWeight, long maxLogSize, String archiveCommand, int maxArchiveRetries) Start the fully query logger.voidvoidvoidprotected longextractExpireTime(String[] pieces) voidfinishJoiningRing(boolean didBootstrap, Collection<Token> tokens) voidforceCompactionKeysIgnoringGcGrace(String keyspaceName, String tableName, String... partitionKeysIgnoreGcGrace) Forces compaction for a list of partition keys in a table The method will ignore the gc_grace_seconds for the partitionKeysIgnoreGcGrace during the comapction, in order to purge the tombstones and free up space quicker.intforceKeyspaceCleanup(int jobs, String keyspaceName, String... tableNames) intforceKeyspaceCleanup(String keyspaceName, String... tables) Trigger a cleanup of keys on a single keyspacevoidforceKeyspaceCompaction(boolean splitOutput, String keyspaceName, String... tableNames) Forces major compaction of a single keyspacevoidforceKeyspaceCompactionForPartitionKey(String keyspaceName, String partitionKey, String... tableNames) Forces major compactions for the range represented by the partition keyvoidforceKeyspaceCompactionForTokenRange(String keyspaceName, String startToken, String endToken, String... tableNames) Forces major compaction of specified token range in a single keyspace.voidforceKeyspaceFlush(String keyspaceName, String... tableNames) Flush all memtables for a keyspace and column families.voidforceKeyspaceFlush(String keyspaceName, ColumnFamilyStore.FlushReason reason) Flush all memtables for a keyspace and column families.voidForce a remove operation to complete.voidintgarbageCollect(String tombstoneOptionString, int jobs, String keyspaceName, String... tableNames) Rewrites all sstables from the given tables to remove deleted data.String[]Get the list of all data file locations from confgetAllRanges(List<Token> sortedTokens) Get all ranges that span the ring given a set of tokens.getAutoCompactionStatus(String ks, String... tables) intintReturns the threshold for rejecting queries due to a large batch sizeintDeprecated.See CASSANDRA-17668intReturns the threshold for warning queries due to a large batch sizeintReturns the number of rows cached at the coordinator before filtering/index queries fail outright.intReturns the number of rows cached at the coordinator before filtering/index queries log a warning.longReturns the name of the clusterintDeprecated.See CASSANDRA-17668intReturns the threshold for skipping the column index when caching partition infointReturns the granularity of the collation index of rows within a partition.Get location of the commit logintDeprecated.See CASSANDRA-17225longdoubleintintgetConcurrency(List<String> stageNames) intintintintlongintReturn the generation value for this node.intget the progress of a drain operationintgetEndpointForHostId(UUID hostId) Retrieve the mapping of endpoint to host ID.booleandoubledoublebooleanReturns the current state of FQL.Fetch a string representation of the Cassandra git SHA.getHostIdForEndpoint(InetAddressAndPort address) Retrieve the mapping of host ID to endpoint.intReturns the initial allocation size of backing arrays for new RangeTombstoneList objectsintDeprecated.See CASSANDRA-17225doubleintDeprecated.See CASSANDRA-15234intBelow method returns Inter_dc_stream_throughput_outbound rounded, for precise number, please, use getInterDCStreamThroughputMebibytesPerSecAsDoubledoubleintintintbooleanDeprecated.See CASSANDRA-7544getKeyFromPartition(String keyspaceName, String table, String partitionKey) intDeprecated.See CASSANDRA-17195getKeyspaceReplicationInfo(String keyspaceName) Fetch the replication factor for a given keyspace.Deprecated.See CASSANDRA-7544Deprecated.See CASSANDRA-7544getLiveRingMembers(boolean excludeDeadStates) Human-readable load value.Human-readable load valueRetrieve this hosts unique IDgetLocalPrimaryRangeForEndpoint(InetAddressAndPort referenceEndpoint) getLocalRanges(String ks) getLocalReplicas(String keyspaceName) String[]Returns the locations where the local system keyspaces data should be stored.get the runtime logging levelsintReturns upper bound on the hint ttlintintbooleanlongDeprecated.See CASSANDRA-7544getNativeaddress(InetAddressAndPort endpoint, boolean withPort) Return the native address associated with an endpoint as a string.longlonglongintlongdoublebooleanbooleanlonggetNaturalEndpoints(String keyspaceName, String cf, String key) Deprecated.See CASSANDRA-7544getNaturalEndpoints(String keyspaceName, ByteBuffer key) Deprecated.See CASSANDRA-7544getNaturalEndpointsWithPort(String keyspaceName, String cf, String key) getNaturalEndpointsWithPort(String keyspaceName, ByteBuffer key) getNaturalReplicasForToken(String keyspaceName, String cf, String key) getNaturalReplicasForToken(String keyspaceName, ByteBuffer key) String[]Returns the locations where should be stored the non system keyspaces data.getNormalizedLocalRanges(String keyspaceName) getNormalizedRanges(String keyspaceName, InetAddressAndPort ep) get the operational mode (leaving, joining, normal, decommissioned, client)Get the per-keyspace counts of operations that the node has received for tokens outside its owned ranges.Returns a map of schema version -> list of endpoints reporting that version that we need schema updates forgiven a list of tokens (representing the nodes in the cluster), returns a mapping from"token -> %age of cluster owned by that token"getParentRepairStatus(int cmd) Get the status of a given parent repair session.Returns the cluster partitionerbooleangetPaxosBallotLowBound(String ksName, String tblName, String key) booleanlongbooleanbooleanbooleangetPendingRangeToEndpointMap(String keyspace) Retrieve a map of pending ranges to endpoints that describe the ring topologygetPendingRangeToEndpointWithPortMap(String keyspace) getPrimaryRangeForEndpointWithinDC(String keyspace, InetAddressAndPort referenceEndpoint) Get the "primary ranges" within local DC for the specified keyspace and endpoint.getPrimaryRanges(String keyspace) getPrimaryRangesForEndpoint(String keyspace, InetAddressAndPort ep) Get the "primary ranges" for the specified keyspace and endpoint.getPrimaryRangesWithinDC(String keyspace) booleanlonggetRangeToAddressMap(String keyspace) getRangeToAddressMapInLocalDC(String keyspace) getRangeToEndpointMap(String keyspace) Retrieve a map of range to end points that describe the ring topology of a Cassandra cluster.getRangeToEndpointMap(String keyspace, boolean withPort) for a keyspace, return the ranges and corresponding listen addresses.getRangeToEndpointWithPortMap(String keyspace) doubleReturns the resize factor to use when growing/resizing a RangeTombstoneListgetRangeToNativeaddressWithPortMap(String keyspace) getRangeToRpcaddressMap(String keyspace) Retrieve a map of range to rpc addresses that describe the ring topology of a Cassandra cluster.longbooleanFetch a string representation of the Cassandra version.Get the status of a token removal.intintDeprecated.See CASSANDRA-17668getReplicas(String keyspaceName, InetAddressAndPort endpoint) getReplicas(AbstractReplicationStrategy replicationStrategy, InetAddressAndPort endpoint) longGet location of the saved caches dirFetch a string representation of the current Schema version.booleanbooleanbooleanDeprecated.See CASSANDRA-16789getSnapshotDetails(Map<String, String> options) Get the details of all the snapshotslongGet the current hardlink-per-second throttle for snapshots A setting of zero indicates no throttling.intThis method can return negative number for disabledintDeprecated.See CASSANDRA-17225doubleintDeprecated.See CASSANDRA-15234intBelow method returns stream_throughput_outbound rounded, for precise number, please, use getStreamThroughputMebibytesPerSecAsDoubledoubleintDeprecated.See CASSANDRA-17195getTablesForKeyspace(String keyspace) Gets the names of all tables for the given keyspaceFetch string representations of the tokens for this node.Fetch string representations of the tokens for a specified node.getTokensFor(InetAddressAndPort endpoint) Retrieve a map of tokens to endpoints, including the bootstrapping ones.intReturns the threshold for abandoning queries with many tombstonesintReturns the threshold for warning of queries with many tombstonesdoubleReturns the configured tracing probability.booleanlongHuman-readable uncompressed load valueDeprecated.See CASSANDRA-7544getValidColumnFamilies(boolean allowIndexes, boolean autoAddIndexes, String keyspaceName, String... cfNames) getViewBuildStatuses(String keyspace, String view) getViewBuildStatuses(String keyspace, String view, boolean withPort) getViewBuildStatusesWithPort(String keyspace, String view) longvoidbooleanvoidvoidvoidinitServer(int schemaAndRingDelayMillis) voidinitServer(int schemaTimeoutMillis, int ringTimeoutMillis) booleanbooleanbooleanReturns whether a node has failed to bootstrap.booleanCheck if currently bootstrapping.booleanbooleanbooleanbooleanReturns whether a node has failed to decommission.booleanReturns whether a node is being decommissioned or not.booleanbooleanbooleanisEndpointValidForWrite(String keyspace, Token token) booleanbooleanbooleanbooleanReturns whether we are using the creation time of the mutation for determining hint ttlbooleanbooleanbooleanDeprecated.See CASSANDRA-12509booleanisJoined()booleanbooleanisMoving()booleanbooleanisNormal()booleanToggles to turn on the logging or rejection of operations for token ranges that the node does not own, or is not about to acquire.booleanbooleanstatic booleanbooleanbooleanisRpcReady(InetAddressAndPort endpoint) static booleanisSeed()booleanbooleanReturns whether the storage service is starting or notbooleanvoidjoinRing()voidjoinTokenRing(boolean finishJoiningRing, boolean shouldBootstrap, long schemaTimeoutMillis, long bootstrapTimeoutMillis, long ringTimeoutMillis) voidloadNewSSTables(String ksName, String cfName) Deprecated.See CASSANDRA-14417voidmutateSSTableRepairedState(boolean repaired, boolean preview, String keyspace, List<String> tableNames) Mutates the repaired state of all SSTables for the given SSTablesvoidonAlive(InetAddressAndPort endpoint, EndpointState state) voidonChange(InetAddressAndPort endpoint, ApplicationState state, VersionedValue value) voidonDead(InetAddressAndPort endpoint, EndpointState state) voidonJoin(InetAddressAndPort endpoint, EndpointState epState) Use to inform interested parties about the change in the state for specified endpointvoidonRemove(InetAddressAndPort endpoint) voidonRestart(InetAddressAndPort endpoint, EndpointState state) Called whenever a node is restarted.voidprepareForBootstrap(long schemaTimeoutMillis, long ringTimeoutMillis) voidInitiate a process of streaming data for which we are responsible from other nodes.voidSame asStorageServiceMBean.rebuild(String), but only for specified keyspace and ranges.voidrebuild(String sourceDc, String keyspace, String tokens, String specificSources, boolean excludeLocalDatacenterNodes) Same asStorageServiceMBean.rebuild(String), but only for specified keyspace and ranges.voidrebuildSecondaryIndex(String ksName, String cfName, String... idxNames) rebuild the specified indexesintrecompressSSTables(String keyspaceName, int jobs, String... tableNames) voidForces refresh of values stored in system.size_estimates of all column families.voidregister(IEndpointLifecycleSubscriber subscriber) voidregisterDaemon(CassandraDaemon daemon) voidintrelocateSSTables(int jobs, String keyspaceName, String... tableNames) intrelocateSSTables(String keyspaceName, String... tableNames) voidremoveNode(String hostIdString) Remove a node that has died, attempting to restore the replica count.voidvoidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) booleanRemove a postshutdownhookbooleanRemove a preshutdown hookvoidIn the event of forceful termination we need to remove the shutdown hook to prevent hanging (OOM for instance)repair(String keyspace, RepairOption option, List<ProgressListener> listeners) intrepairAsync(String keyspace, Map<String, String> repairSpec) Invoke repair asynchronously.voidvoidDisable the full query logger if it is enabled.voidbooleanResume bootstrap streaming when there is failed data streaming.intrewriteSSTables(String keyspaceName, boolean skipIfCurrentVersion, long skipIfNewerThanTimestamp, boolean skipIfCompressionMatches, int jobs, String... tableNames) #Return a List of Tokens representing a sample of keys across all ColumnFamilyStores.samplePartitions(int duration, int capacity, int count, List<String> samplers) samplePartitions(String keyspace, int durationMillis, int capacity, int count, List<String> samplers) intscrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, int jobs, String keyspaceName, String... tableNames) intscrub(boolean disableSnapshot, IScrubber.Options options, int jobs, String keyspaceName, String... tableNames) voidsetAutoOptimiseFullRepairStreams(boolean enabled) voidsetAutoOptimiseIncRepairStreams(boolean enabled) voidsetAutoOptimisePreviewRepairStreams(boolean enabled) voidsetBatchlogEndpointStrategy(String batchlogEndpointStrategy) SeeConfig.BatchlogEndpointStrategyfor valid values.voidsetBatchlogReplayThrottleInKB(int throttleInKB) voidsetBatchSizeFailureThreshold(int threshold) Sets the threshold for rejecting queries due to a large batch sizevoidsetBatchSizeWarnThreshold(int threshold) Deprecated.See CASSANDRA-17668voidsetBatchSizeWarnThresholdInKiB(int thresholdInKiB) 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) Deprecated.See CASSANDRA-17668voidsetColumnIndexCacheSizeInKiB(int cacheSizeInKiB) Sets the threshold for skipping the column index when caching partition infovoidsetColumnIndexSize(int columnIndexSizeInKB) Deprecated.See CASSANDRA-17668voidsetColumnIndexSizeInKiB(int columnIndexSizeInKiB) Sets the granularity of the collation index of rows within a partition.voidsetCompactionThroughputMbPerSec(int value) voidsetCompactionTombstoneWarningThreshold(int count) voidsetCompressedReadAheadBufferInKB(int sizeInKb) voidsetConcurrency(String threadPoolName, int newCorePoolSize, int newMaximumPoolSize) Sets the concurrency setting for processing stagesvoidsetConcurrentCompactors(int value) voidsetConcurrentIndexBuilders(int value) voidsetConcurrentValidators(int value) voidsetConcurrentViewBuilders(int value) voidsetCoordinatorLargeReadAbortThreshold(String threshold) voidsetCoordinatorLargeReadWarnThreshold(String threshold) voidsetCorruptedTombstoneStrategy(String strategy) voidsetCounterWriteRpcTimeout(long value) voidsetDefaultKeyspaceReplicationFactor(int value) voidsetDynamicUpdateInterval(int dynamicUpdateInterval) voidsetEnforceNativeDeadlineForHints(boolean value) voidvoidvoidsetForceOptimizedIndexStatusFormat(boolean value) voidsetGossipTokens(Collection<Token> tokens) voidsetHintedHandoffThrottleInKB(int throttleInKB) Sets the hinted handoff throttle in KiB per second, per delivery thread.voidsetIncrementalBackupsEnabled(boolean value) voidSets the initial allocation size of backing arrays for new RangeTombstoneList objectsvoidsetInterDCStreamThroughputMbitPerSec(int value) voidsetInterDCStreamThroughputMbPerSec(int value) Deprecated.See CASSANDRA-15234voidsetInterDCStreamThroughputMebibytesPerSec(int value) voidsetInternodeStreamingTcpUserTimeoutInMS(int value) voidsetInternodeTcpConnectTimeoutInMS(int value) voidsetInternodeTcpUserTimeoutInMS(int value) voidsetInvalidateKeycacheOnSSTableDeletion(boolean invalidate) voidsetIsShutdownUnsafeForTests(boolean isShutdown) for in-jvm dtest use - forces isShutdown to be set to whatever passed in.voidsetKeyspaceCountWarnThreshold(int value) Deprecated.See CASSANDRA-17195voidsetLocalReadTooLargeAbortThreshold(String threshold) voidsetLocalReadTooLargeWarnThreshold(String threshold) voidsetLoggingLevel(String classQualifier, String rawLevel) 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
voidsetMaxHintTTL(int maxHintTTL) Sets the upper bound on the hint ttlvoidsetMaxTopSizePartitionCount(int value) voidsetMaxTopTombstonePartitionCount(int value) voidsetMigrateKeycacheOnCompaction(boolean invalidateKeyCacheOnCompaction) voidsetMinTrackedPartitionSize(String value) voidsetMinTrackedPartitionTombstoneCount(long value) voidvoidsetNativeTransportBackoffOnQueueOverloadInMillis(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) voidOnly used in jvm dtest when not using GOSSIP.voidsetOutOfTokenRangeRequestLoggingEnabled(boolean enabled) voidsetOutOfTokenRangeRequestRejectionEnabled(boolean enabled) setPartitionerUnsafe(IPartitioner newPartitioner) voidsetPaxosAutoRepairsEnabled(boolean enabled) voidsetPaxosDcLocalCommitEnabled(boolean enabled) voidvoidsetPaxosPurgeGraceSeconds(long v) voidsetPaxosRepairEnabled(boolean enabled) voidsetPaxosRepairRaceWait(boolean paxosRepairRaceWait) voidsetPaxosStateFlushEnabled(boolean enabled) voidvoidsetPrioritizeSAIOverLegacyIndex(boolean value) voidsetRangeRpcTimeout(long value) voidsetRangeTombstoneListResizeGrowthFactor(double growthFactor) Sets the resize factor to use when growing/resizing a RangeTombstoneListvoidsetReadRpcTimeout(long value) voidsetReadThresholdsEnabled(boolean value) voidsetRepairRpcTimeout(Long timeoutInMillis) voidsetRepairSessionMaximumTreeDepth(int depth) voidsetRepairSessionMaxTreeDepth(int depth) Deprecated.See CASSANDRA-17668voidsetRowIndexReadSizeAbortThreshold(String threshold) voidsetRowIndexReadSizeWarnThreshold(String threshold) voidsetRpcReady(boolean value) Set the RPC status.voidsetRpcTimeout(long value) voidsetSkipPaxosRepairCompatibilityCheck(boolean v) voidsetSkipPaxosRepairOnTopologyChange(boolean v) voidvoidsetSkipStreamDiskSpaceCheck(boolean value) voidsetSnapshotLinksPerSecond(long throttle) Set the current hardlink-per-second throttle for snapshots A setting of zero indicates no throttlingvoidsetSSTablePreemptiveOpenIntervalInMB(int intervalInMB) Negative number for disabledvoidvoidsetStreamThroughputMbitPerSec(int value) voidsetStreamThroughputMbPerSec(int value) Deprecated.See CASSANDRA-15234voidsetStreamThroughputMebibytesPerSec(int value) voidsetTableCountWarnThreshold(int value) Deprecated.See CASSANDRA-17195voidsetTokens(Collection<Token> tokens) This method updates the local token on diskvoidsetTombstoneFailureThreshold(int threshold) Sets the threshold for abandoning queries with many tombstonesvoidsetTombstoneWarnThreshold(int threshold) Sets the threshold for warning queries with many tombstonesvoidsetTraceProbability(double probability) Enables/Disables tracing for the whole system.voidsetTransferHintsOnDecommission(boolean enabled) voidsetTruncateRpcTimeout(long value) voidvoidsetUseCreationTimeForHintTtl(boolean enabled) Sets whether we are using the creation time of the mutation for determining hint ttlvoidsetWriteRpcTimeout(long value) booleanvoidstartBootstrap(Collection<Token> tokens) startBootstrap(Collection<Token> tokens, boolean replacing) voidvoidFuture<?>booleanstartSamplingPartitions(String ks, String table, int duration, int interval, int capacity, int count, List<String> samplers) Start a scheduled samplingvoidvoidvoidvoidStop logging queries but leave any generated files on disk.voidvoidstopNativeTransport(boolean force) booleanstopSamplingPartitions(String ks, String table) Stop a scheduled samplingvoidvoidtakeMultipleTableSnapshot(String tag, String... tableList) Takes the snapshot of a multiple column family from different keyspaces.voidtakeSnapshot(String tag, String... keyspaceNames) Takes the snapshot for the given keyspaces.voidTakes the snapshot of a multiple column family from different keyspaces.voidtakeTableSnapshot(String keyspaceName, String tableName, String tag) Takes the snapshot of a specific table.booleanlongGet the true size taken by all snapshots across all keyspaces.voidTruncates (deletes) the given table from the provided keyspace.voidunregister(IEndpointLifecycleSubscriber subscriber) voidvoidupdateSnitch(String epSnitchClassName, Boolean dynamic, Integer dynamicUpdateInterval, Integer dynamicResetInterval, Double dynamicBadnessThreshold) Change endpointsnitch class and dynamic-ness (and dynamic attributes) at runtime.voidvoidupdateTopology(InetAddressAndPort endpoint) intupgradeSSTables(String keyspaceName, boolean skipIfCurrentVersion, long skipIfNewerThanTimestamp, int jobs, String... tableNames) intupgradeSSTables(String keyspaceName, boolean excludeCurrentVersion, String... tableNames) Rewrite all sstables to the latest version.intverify(boolean extendedVerify, boolean checkVersion, boolean diskFailurePolicy, boolean mutateRepairStatus, boolean checkOwnsTokens, boolean quick, String keyspaceName, String... tableNames) intDeprecated.See CASSANDRA-14201voidwaitForSchema(long schemaTimeoutMillis, long ringTimeoutMillis) Methods inherited from class javax.management.NotificationBroadcasterSupport
getNotificationInfo, handleNotification, sendNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.management.NotificationBroadcaster
getNotificationInfoMethods inherited from interface org.apache.cassandra.service.StorageServiceMBean
scrub, scrub, stopNativeTransport, upgradeSSTables
-
Field Details
-
INDEFINITE
public static final int INDEFINITE- See Also:
-
RING_DELAY_MILLIS
public static final int RING_DELAY_MILLIS -
SCHEMA_DELAY_MILLIS
public static final int SCHEMA_DELAY_MILLIS -
valueFactory
-
snapshotManager
-
instance
-
skipNotificationListeners
public volatile boolean skipNotificationListeners -
nextRepairCommand
-
useStrictConsistency
public static final boolean useStrictConsistency -
sstablesTracker
-
-
Constructor Details
-
StorageService
public StorageService()
-
-
Method Details
-
getOutOfRangeOperationCounts
Description copied from interface:StorageServiceMBeanGet 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].- Specified by:
getOutOfRangeOperationCountsin interfaceStorageServiceMBean
-
incOutOfRangeOperationCount
public void incOutOfRangeOperationCount() -
isInShutdownHook
Deprecated.See CASSANDRA-12509 -
isShutdown
public boolean isShutdown() -
setIsShutdownUnsafeForTests
public void setIsShutdownUnsafeForTests(boolean isShutdown) for in-jvm dtest use - forces isShutdown to be set to whatever passed in. -
getLocalReplicas
-
getReplicas
-
getReplicas
public RangesAtEndpoint getReplicas(AbstractReplicationStrategy replicationStrategy, InetAddressAndPort endpoint) -
getLocalRanges
-
getLocalAndPendingRanges
-
getNormalizedRanges
-
getNormalizedLocalRanges
-
getPrimaryRanges
-
getPrimaryRangesWithinDC
-
isSurveyMode
public boolean isSurveyMode() -
hasJoined
public boolean hasJoined() -
setTokens
This method updates the local token on disk -
setGossipTokens
-
registerDaemon
-
register
-
unregister
-
stopGossiping
public void stopGossiping()- Specified by:
stopGossipingin interfaceStorageServiceMBean
-
startGossiping
public void startGossiping()- Specified by:
startGossipingin interfaceStorageServiceMBean
-
isGossipRunning
public boolean isGossipRunning()- Specified by:
isGossipRunningin interfaceStorageServiceMBean
-
startNativeTransport
public void startNativeTransport()- Specified by:
startNativeTransportin interfaceStorageServiceMBean
-
stopNativeTransport
public void stopNativeTransport(boolean force) - Specified by:
stopNativeTransportin interfaceStorageServiceMBean
-
isNativeTransportRunning
public boolean isNativeTransportRunning()- Specified by:
isNativeTransportRunningin interfaceStorageServiceMBean
-
enableNativeTransportOldProtocolVersions
public void enableNativeTransportOldProtocolVersions()- Specified by:
enableNativeTransportOldProtocolVersionsin interfaceStorageServiceMBean
-
disableNativeTransportOldProtocolVersions
public void disableNativeTransportOldProtocolVersions()- Specified by:
disableNativeTransportOldProtocolVersionsin interfaceStorageServiceMBean
-
stopTransports
public void stopTransports() -
stopClient
public void stopClient() -
isInitialized
public boolean isInitialized()- Specified by:
isInitializedin interfaceStorageServiceMBean
-
isGossipActive
public boolean isGossipActive() -
isDaemonSetupCompleted
public boolean isDaemonSetupCompleted() -
stopDaemon
public void stopDaemon()- Specified by:
stopDaemonin interfaceStorageServiceMBean
-
checkForEndpointCollision
public void checkForEndpointCollision(UUID localHostId, Set<InetAddressAndPort> peers) throws ConfigurationException - Throws:
ConfigurationException
-
unsafeInitialize
- Throws:
ConfigurationException
-
initServer
- Throws:
ConfigurationException
-
initServer
- Throws:
ConfigurationException
-
initServer
public void initServer(int schemaTimeoutMillis, int ringTimeoutMillis) throws ConfigurationException - Throws:
ConfigurationException
-
completeInitialization
public void completeInitialization() -
populateTokenMetadata
public void populateTokenMetadata() -
isReplacing
public boolean isReplacing() -
removeShutdownHook
public void removeShutdownHook()In the event of forceful termination we need to remove the shutdown hook to prevent hanging (OOM for instance) -
isSeed
public static boolean isSeed() -
startSnapshotManager
public void startSnapshotManager() -
waitForSchema
public void waitForSchema(long schemaTimeoutMillis, long ringTimeoutMillis) -
joinTokenRing
public void joinTokenRing(boolean finishJoiningRing, boolean shouldBootstrap, long schemaTimeoutMillis, long bootstrapTimeoutMillis, long ringTimeoutMillis) throws ConfigurationException - Throws:
ConfigurationException
-
isReplacingSameAddress
public static boolean isReplacingSameAddress() -
gossipSnitchInfo
public void gossipSnitchInfo() -
joinRing
- Specified by:
joinRingin interfaceStorageServiceMBean- Throws:
IOException
-
finishJoiningRing
-
doAuthSetup
public void doAuthSetup(boolean setUpSchema) -
doAutoRepairSetup
public void doAutoRepairSetup() -
isAuthSetupComplete
public boolean isAuthSetupComplete() -
authSetupCalled
public boolean authSetupCalled() -
setUpDistributedSystemKeyspaces
public void setUpDistributedSystemKeyspaces() -
isJoined
public boolean isJoined()- Specified by:
isJoinedin interfaceStorageServiceMBean
-
rebuild
Description copied from interface:StorageServiceMBeanInitiate 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.- Specified by:
rebuildin interfaceStorageServiceMBean- Parameters:
sourceDc- Name of DC from which to select sources for streaming or null to pick any node
-
rebuild
Description copied from interface:StorageServiceMBeanSame asStorageServiceMBean.rebuild(String), but only for specified keyspace and ranges.- Specified by:
rebuildin interfaceStorageServiceMBean- 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]"specificSources- list of sources that can be used for rebuilding. Must be other nodes in the cluster. The format of the string is comma separated values.
-
rebuild
public void rebuild(String sourceDc, String keyspace, String tokens, String specificSources, boolean excludeLocalDatacenterNodes) Description copied from interface:StorageServiceMBeanSame asStorageServiceMBean.rebuild(String), but only for specified keyspace and ranges. It excludes local data center nodes- Specified by:
rebuildin interfaceStorageServiceMBean- 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]"specificSources- list of sources that can be used for rebuilding. Mostly other nodes in the cluster.excludeLocalDatacenterNodes- Flag to indicate whether local data center nodes should be excluded as sources for streaming.
-
setRpcTimeout
public void setRpcTimeout(long value) - Specified by:
setRpcTimeoutin interfaceStorageServiceMBean
-
getRpcTimeout
public long getRpcTimeout()- Specified by:
getRpcTimeoutin interfaceStorageServiceMBean
-
setReadRpcTimeout
public void setReadRpcTimeout(long value) - Specified by:
setReadRpcTimeoutin interfaceStorageServiceMBean
-
getReadRpcTimeout
public long getReadRpcTimeout()- Specified by:
getReadRpcTimeoutin interfaceStorageServiceMBean
-
setRangeRpcTimeout
public void setRangeRpcTimeout(long value) - Specified by:
setRangeRpcTimeoutin interfaceStorageServiceMBean
-
getRangeRpcTimeout
public long getRangeRpcTimeout()- Specified by:
getRangeRpcTimeoutin interfaceStorageServiceMBean
-
setWriteRpcTimeout
public void setWriteRpcTimeout(long value) - Specified by:
setWriteRpcTimeoutin interfaceStorageServiceMBean
-
getWriteRpcTimeout
public long getWriteRpcTimeout()- Specified by:
getWriteRpcTimeoutin interfaceStorageServiceMBean
-
setInternodeTcpConnectTimeoutInMS
public void setInternodeTcpConnectTimeoutInMS(int value) - Specified by:
setInternodeTcpConnectTimeoutInMSin interfaceStorageServiceMBean
-
getInternodeTcpConnectTimeoutInMS
public int getInternodeTcpConnectTimeoutInMS()- Specified by:
getInternodeTcpConnectTimeoutInMSin interfaceStorageServiceMBean
-
setInternodeTcpUserTimeoutInMS
public void setInternodeTcpUserTimeoutInMS(int value) - Specified by:
setInternodeTcpUserTimeoutInMSin interfaceStorageServiceMBean
-
getInternodeTcpUserTimeoutInMS
public int getInternodeTcpUserTimeoutInMS()- Specified by:
getInternodeTcpUserTimeoutInMSin interfaceStorageServiceMBean
-
setInternodeStreamingTcpUserTimeoutInMS
public void setInternodeStreamingTcpUserTimeoutInMS(int value) - Specified by:
setInternodeStreamingTcpUserTimeoutInMSin interfaceStorageServiceMBean
-
getInternodeStreamingTcpUserTimeoutInMS
public int getInternodeStreamingTcpUserTimeoutInMS()- Specified by:
getInternodeStreamingTcpUserTimeoutInMSin interfaceStorageServiceMBean
-
setCounterWriteRpcTimeout
public void setCounterWriteRpcTimeout(long value) - Specified by:
setCounterWriteRpcTimeoutin interfaceStorageServiceMBean
-
getCounterWriteRpcTimeout
public long getCounterWriteRpcTimeout()- Specified by:
getCounterWriteRpcTimeoutin interfaceStorageServiceMBean
-
setCasContentionTimeout
public void setCasContentionTimeout(long value) - Specified by:
setCasContentionTimeoutin interfaceStorageServiceMBean
-
getCasContentionTimeout
public long getCasContentionTimeout()- Specified by:
getCasContentionTimeoutin interfaceStorageServiceMBean
-
setTruncateRpcTimeout
public void setTruncateRpcTimeout(long value) - Specified by:
setTruncateRpcTimeoutin interfaceStorageServiceMBean
-
getTruncateRpcTimeout
public long getTruncateRpcTimeout()- Specified by:
getTruncateRpcTimeoutin interfaceStorageServiceMBean
-
setStreamThroughputMbPerSec
Deprecated.See CASSANDRA-15234- Specified by:
setStreamThroughputMbPerSecin interfaceStorageServiceMBean
-
setStreamThroughputMbitPerSec
public void setStreamThroughputMbitPerSec(int value) - Specified by:
setStreamThroughputMbitPerSecin interfaceStorageServiceMBean
-
setStreamThroughputMebibytesPerSec
public void setStreamThroughputMebibytesPerSec(int value) - Specified by:
setStreamThroughputMebibytesPerSecin interfaceStorageServiceMBean
-
getStreamThroughputMebibytesPerSecAsDouble
public double getStreamThroughputMebibytesPerSecAsDouble()- Specified by:
getStreamThroughputMebibytesPerSecAsDoublein interfaceStorageServiceMBean
-
getStreamThroughputMebibytesPerSec
public int getStreamThroughputMebibytesPerSec()Description copied from interface:StorageServiceMBeanBelow method returns stream_throughput_outbound rounded, for precise number, please, use getStreamThroughputMebibytesPerSecAsDouble- Specified by:
getStreamThroughputMebibytesPerSecin interfaceStorageServiceMBean- Returns:
- stream_throughput_outbound in MiB
-
getStreamThroughputMbPerSec
Deprecated.See CASSANDRA-15234- Specified by:
getStreamThroughputMbPerSecin interfaceStorageServiceMBean- Returns:
- stream_throughput_outbound in MiB
-
getStreamThroughputMbitPerSec
Deprecated.See CASSANDRA-17225- Specified by:
getStreamThroughputMbitPerSecin interfaceStorageServiceMBean- Returns:
- stream_throughput_outbound in megabits
-
getStreamThroughputMbitPerSecAsDouble
public double getStreamThroughputMbitPerSecAsDouble()- Specified by:
getStreamThroughputMbitPerSecAsDoublein interfaceStorageServiceMBean
-
setEntireSSTableStreamThroughputMebibytesPerSec
public void setEntireSSTableStreamThroughputMebibytesPerSec(int value) - Specified by:
setEntireSSTableStreamThroughputMebibytesPerSecin interfaceStorageServiceMBean
-
getEntireSSTableStreamThroughputMebibytesPerSecAsDouble
public double getEntireSSTableStreamThroughputMebibytesPerSecAsDouble()- Specified by:
getEntireSSTableStreamThroughputMebibytesPerSecAsDoublein interfaceStorageServiceMBean
-
setInterDCStreamThroughputMbPerSec
Deprecated.See CASSANDRA-15234- Specified by:
setInterDCStreamThroughputMbPerSecin interfaceStorageServiceMBean
-
setInterDCStreamThroughputMbitPerSec
public void setInterDCStreamThroughputMbitPerSec(int value) - Specified by:
setInterDCStreamThroughputMbitPerSecin interfaceStorageServiceMBean
-
getInterDCStreamThroughputMbPerSec
Deprecated.See CASSANDRA-15234- Specified by:
getInterDCStreamThroughputMbPerSecin interfaceStorageServiceMBean- Returns:
- inter_dc_stream_throughput_outbound in MiB
-
getInterDCStreamThroughputMbitPerSec
Deprecated.See CASSANDRA-17225- Specified by:
getInterDCStreamThroughputMbitPerSecin interfaceStorageServiceMBean- Returns:
- inter_dc_stream_throughput_outbound in megabits
-
getInterDCStreamThroughputMbitPerSecAsDouble
public double getInterDCStreamThroughputMbitPerSecAsDouble()- Specified by:
getInterDCStreamThroughputMbitPerSecAsDoublein interfaceStorageServiceMBean
-
setInterDCStreamThroughputMebibytesPerSec
public void setInterDCStreamThroughputMebibytesPerSec(int value) - Specified by:
setInterDCStreamThroughputMebibytesPerSecin interfaceStorageServiceMBean
-
getInterDCStreamThroughputMebibytesPerSec
public int getInterDCStreamThroughputMebibytesPerSec()Description copied from interface:StorageServiceMBeanBelow method returns Inter_dc_stream_throughput_outbound rounded, for precise number, please, use getInterDCStreamThroughputMebibytesPerSecAsDouble- Specified by:
getInterDCStreamThroughputMebibytesPerSecin interfaceStorageServiceMBean- Returns:
- inter_dc_stream_throughput_outbound in MiB
-
getInterDCStreamThroughputMebibytesPerSecAsDouble
public double getInterDCStreamThroughputMebibytesPerSecAsDouble()- Specified by:
getInterDCStreamThroughputMebibytesPerSecAsDoublein interfaceStorageServiceMBean
-
setEntireSSTableInterDCStreamThroughputMebibytesPerSec
public void setEntireSSTableInterDCStreamThroughputMebibytesPerSec(int value) - Specified by:
setEntireSSTableInterDCStreamThroughputMebibytesPerSecin interfaceStorageServiceMBean
-
getEntireSSTableInterDCStreamThroughputMebibytesPerSecAsDouble
public double getEntireSSTableInterDCStreamThroughputMebibytesPerSecAsDouble()- Specified by:
getEntireSSTableInterDCStreamThroughputMebibytesPerSecAsDoublein interfaceStorageServiceMBean
-
getCompactionThroughtputMibPerSecAsDouble
public double getCompactionThroughtputMibPerSecAsDouble()- Specified by:
getCompactionThroughtputMibPerSecAsDoublein interfaceStorageServiceMBean
-
getCompactionThroughtputBytesPerSec
public long getCompactionThroughtputBytesPerSec()- Specified by:
getCompactionThroughtputBytesPerSecin interfaceStorageServiceMBean
-
getCompactionThroughputMbPerSec
Deprecated.See CASSANDRA-17225- Specified by:
getCompactionThroughputMbPerSecin interfaceStorageServiceMBean- Returns:
- compaction_throughgput in MiB
-
setCompactionThroughputMbPerSec
public void setCompactionThroughputMbPerSec(int value) - Specified by:
setCompactionThroughputMbPerSecin interfaceStorageServiceMBean
-
getCompressedReadAheadBufferInKB
public int getCompressedReadAheadBufferInKB()- Specified by:
getCompressedReadAheadBufferInKBin interfaceStorageServiceMBean
-
setCompressedReadAheadBufferInKB
public void setCompressedReadAheadBufferInKB(int sizeInKb) - Specified by:
setCompressedReadAheadBufferInKBin interfaceStorageServiceMBean
-
getBatchlogReplayThrottleInKB
public int getBatchlogReplayThrottleInKB()- Specified by:
getBatchlogReplayThrottleInKBin interfaceStorageServiceMBean
-
setBatchlogReplayThrottleInKB
public void setBatchlogReplayThrottleInKB(int throttleInKB) - Specified by:
setBatchlogReplayThrottleInKBin interfaceStorageServiceMBean
-
getConcurrentCompactors
public int getConcurrentCompactors()- Specified by:
getConcurrentCompactorsin interfaceStorageServiceMBean
-
setConcurrentCompactors
public void setConcurrentCompactors(int value) - Specified by:
setConcurrentCompactorsin interfaceStorageServiceMBean
-
bypassConcurrentValidatorsLimit
public void bypassConcurrentValidatorsLimit()- Specified by:
bypassConcurrentValidatorsLimitin interfaceStorageServiceMBean
-
enforceConcurrentValidatorsLimit
public void enforceConcurrentValidatorsLimit()- Specified by:
enforceConcurrentValidatorsLimitin interfaceStorageServiceMBean
-
isConcurrentValidatorsLimitEnforced
public boolean isConcurrentValidatorsLimitEnforced()- Specified by:
isConcurrentValidatorsLimitEnforcedin interfaceStorageServiceMBean
-
getConcurrentIndexBuilders
public int getConcurrentIndexBuilders()- Specified by:
getConcurrentIndexBuildersin interfaceStorageServiceMBean
-
setConcurrentIndexBuilders
public void setConcurrentIndexBuilders(int value) - Specified by:
setConcurrentIndexBuildersin interfaceStorageServiceMBean
-
getConcurrentValidators
public int getConcurrentValidators()- Specified by:
getConcurrentValidatorsin interfaceStorageServiceMBean
-
setConcurrentValidators
public void setConcurrentValidators(int value) - Specified by:
setConcurrentValidatorsin interfaceStorageServiceMBean
-
getConcurrentViewBuilders
public int getConcurrentViewBuilders()- Specified by:
getConcurrentViewBuildersin interfaceStorageServiceMBean
-
setConcurrentViewBuilders
public void setConcurrentViewBuilders(int value) - Specified by:
setConcurrentViewBuildersin interfaceStorageServiceMBean
-
isIncrementalBackupsEnabled
public boolean isIncrementalBackupsEnabled()- Specified by:
isIncrementalBackupsEnabledin interfaceStorageServiceMBean
-
setIncrementalBackupsEnabled
public void setIncrementalBackupsEnabled(boolean value) - Specified by:
setIncrementalBackupsEnabledin interfaceStorageServiceMBean
-
setMovingModeUnsafe
public void setMovingModeUnsafe() -
setNormalModeUnsafe
public void setNormalModeUnsafe()Only used in jvm dtest when not using GOSSIP. See org.apache.cassandra.distributed.impl.Instance#startup(org.apache.cassandra.distributed.api.ICluster) -
setStartingModeUnsafe
public void setStartingModeUnsafe() -
prepareForBootstrap
public Collection<InetAddressAndPort> prepareForBootstrap(long schemaTimeoutMillis, long ringTimeoutMillis) -
bootstrap
Bootstrap node by fetching data from other nodes. If node is bootstrapping as a new node, then this also announces bootstrapping to the cluster. This blocks until streaming is done.- Parameters:
tokens- bootstrapping tokens- Returns:
- true if bootstrap succeeds.
-
startBootstrap
-
startBootstrap
-
getBootstrapState
- Specified by:
getBootstrapStatein interfaceStorageServiceMBean
-
resumeBootstrap
public boolean resumeBootstrap()Description copied from interface:StorageServiceMBeanResume bootstrap streaming when there is failed data streaming.- Specified by:
resumeBootstrapin interfaceStorageServiceMBean- Returns:
- true if the node successfully starts resuming. (this does not mean bootstrap streaming was success.)
-
getConcurrency
- Specified by:
getConcurrencyin interfaceStorageServiceMBean
-
setConcurrency
Description copied from interface:StorageServiceMBeanSets the concurrency setting for processing stages- Specified by:
setConcurrencyin interfaceStorageServiceMBean
-
isBootstrapMode
public boolean isBootstrapMode()Description copied from interface:StorageServiceMBeanCheck 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.- Specified by:
isBootstrapModein interfaceStorageServiceMBean- Returns:
- True prior to bootstrap streaming completing. False prior to start of bootstrap and post streaming.
-
getTokenMetadata
-
getRangeToEndpointMap
Description copied from interface:StorageServiceMBeanRetrieve a map of range to end points that describe the ring topology of a Cassandra cluster.- Specified by:
getRangeToEndpointMapin interfaceStorageServiceMBean- Returns:
- mapping of ranges to end points
-
getRangeToEndpointWithPortMap
- Specified by:
getRangeToEndpointWithPortMapin interfaceStorageServiceMBean
-
getRangeToEndpointMap
for a keyspace, return the ranges and corresponding listen addresses.- Parameters:
keyspace-- Returns:
- the endpoint map
-
getNativeaddress
Return the native address associated with an endpoint as a string.- Parameters:
endpoint- The endpoint to get rpc address for- Returns:
- the native address
-
getRangeToRpcaddressMap
Description copied from interface:StorageServiceMBeanRetrieve a map of range to rpc addresses that describe the ring topology of a Cassandra cluster.- Specified by:
getRangeToRpcaddressMapin interfaceStorageServiceMBean- Returns:
- mapping of ranges to rpc addresses
-
getRangeToNativeaddressWithPortMap
- Specified by:
getRangeToNativeaddressWithPortMapin interfaceStorageServiceMBean
-
getPendingRangeToEndpointMap
Description copied from interface:StorageServiceMBeanRetrieve a map of pending ranges to endpoints that describe the ring topology- Specified by:
getPendingRangeToEndpointMapin interfaceStorageServiceMBean- Parameters:
keyspace- the keyspace to get the pending range map for.- Returns:
- a map of pending ranges to endpoints
-
getPendingRangeToEndpointWithPortMap
- Specified by:
getPendingRangeToEndpointWithPortMapin interfaceStorageServiceMBean
-
getRangeToAddressMap
-
getRangeToAddressMapInLocalDC
-
describeRingJMX
Description copied from interface:StorageServiceMBeanThe same asdescribeRing(String)but converts TokenRange to the String for JMX compatibility- Specified by:
describeRingJMXin interfaceStorageServiceMBean- Parameters:
keyspace- The keyspace to fetch information about- Returns:
- a List of TokenRange(s) converted to String for the given keyspace
- Throws:
IOException
-
describeRingWithPortJMX
- Specified by:
describeRingWithPortJMXin interfaceStorageServiceMBean- Throws:
IOException
-
describeRing
The TokenRange for a given keyspace.- Parameters:
keyspace- The keyspace to fetch information about- Returns:
- a List of TokenRange(s) for the given keyspace
- Throws:
InvalidRequestException- if there is no ring information available about keyspace
-
describeLocalRing
The same asdescribeRing(String)but considers only the part of the ring formed by nodes in the local DC.- Throws:
InvalidRequestException
-
getTokenToEndpointMap
Description copied from interface:StorageServiceMBeanRetrieve a map of tokens to endpoints, including the bootstrapping ones.- Specified by:
getTokenToEndpointMapin interfaceStorageServiceMBean- Returns:
- a map of tokens to endpoints in ascending order
-
getTokenToEndpointWithPortMap
- Specified by:
getTokenToEndpointWithPortMapin interfaceStorageServiceMBean
-
getLocalHostId
Description copied from interface:StorageServiceMBeanRetrieve this hosts unique ID- Specified by:
getLocalHostIdin interfaceStorageServiceMBean
-
getLocalHostUUID
-
getHostIdMap
-
getEndpointToHostId
Description copied from interface:StorageServiceMBeanRetrieve the mapping of endpoint to host ID.- Specified by:
getEndpointToHostIdin interfaceStorageServiceMBean
-
getEndpointWithPortToHostId
- Specified by:
getEndpointWithPortToHostIdin interfaceStorageServiceMBean
-
getHostIdToEndpoint
Description copied from interface:StorageServiceMBeanRetrieve the mapping of host ID to endpoint.- Specified by:
getHostIdToEndpointin interfaceStorageServiceMBean
-
getHostIdToEndpointWithPort
- Specified by:
getHostIdToEndpointWithPortin interfaceStorageServiceMBean
-
beforeChange
public void beforeChange(InetAddressAndPort endpoint, EndpointState currentState, ApplicationState newStateKey, VersionedValue newValue) - Specified by:
beforeChangein interfaceIEndpointStateChangeSubscriber
-
onChange
- Specified by:
onChangein interfaceIEndpointStateChangeSubscriber
-
updateTopology
-
updateTopology
public void updateTopology() -
isRpcReady
-
setRpcReady
public void setRpcReady(boolean value) Set the RPC status. Because when draining a node we need to set the RPC status to not ready, and drain is called by the shutdown hook, it may be that value is false and there is no local endpoint state. In this case it's OK to just do nothing. Therefore, we assert that the local endpoint state is not null only when value is true.- Parameters:
value- - true indicates that RPC is ready, false indicates the opposite.
-
getTokensFor
-
isReplacingSameHostAddressAndHostId
-
addExpireTimeIfFound
-
extractExpireTime
-
onJoin
Description copied from interface:IEndpointStateChangeSubscriberUse to inform interested parties about the change in the state for specified endpoint- Specified by:
onJoinin interfaceIEndpointStateChangeSubscriber- Parameters:
endpoint- endpoint for which the state change occurred.epState- state that actually changed for the above endpoint.
-
onAlive
- Specified by:
onAlivein interfaceIEndpointStateChangeSubscriber
-
onRemove
- Specified by:
onRemovein interfaceIEndpointStateChangeSubscriber
-
onDead
- Specified by:
onDeadin interfaceIEndpointStateChangeSubscriber
-
onRestart
Description copied from interface:IEndpointStateChangeSubscriberCalled whenever a node is restarted. Note that there is no guarantee when that happens that the node was previously marked down. It will have only ifstate.isAlive() == falseasstateis from before the restarted node is marked up.- Specified by:
onRestartin interfaceIEndpointStateChangeSubscriber
-
getLoadString
Description copied from interface:StorageServiceMBeanHuman-readable load value- Specified by:
getLoadStringin interfaceStorageServiceMBean
-
getUncompressedLoadString
Description copied from interface:StorageServiceMBeanHuman-readable uncompressed load value- Specified by:
getUncompressedLoadStringin interfaceStorageServiceMBean
-
getLoadMapWithPort
- Specified by:
getLoadMapWithPortin interfaceStorageServiceMBean
-
getLoadMap
Description copied from interface:StorageServiceMBeanHuman-readable load value. Keys are IP addresses.- Specified by:
getLoadMapin interfaceStorageServiceMBean
-
deliverHints
- Specified by:
deliverHintsin interfaceStorageServiceMBean
-
getLocalTokens
-
getEndpointForHostId
-
getHostIdForEndpoint
-
getTokens
Description copied from interface:StorageServiceMBeanFetch string representations of the tokens for this node.- Specified by:
getTokensin interfaceStorageServiceMBean- Returns:
- a collection of tokens formatted as strings
-
getTokens
Description copied from interface:StorageServiceMBeanFetch string representations of the tokens for a specified node.- Specified by:
getTokensin interfaceStorageServiceMBean- Parameters:
endpoint- string representation of an node- Returns:
- a collection of tokens formatted as strings
- Throws:
UnknownHostException
-
getReleaseVersion
Description copied from interface:StorageServiceMBeanFetch a string representation of the Cassandra version.- Specified by:
getReleaseVersionin interfaceStorageServiceMBean- Returns:
- A string representation of the Cassandra version.
-
getGitSHA
Description copied from interface:StorageServiceMBeanFetch a string representation of the Cassandra git SHA.- Specified by:
getGitSHAin interfaceStorageServiceMBean- Returns:
- A string representation of the Cassandra git SHA.
-
getSchemaVersion
Description copied from interface:StorageServiceMBeanFetch a string representation of the current Schema version.- Specified by:
getSchemaVersionin interfaceStorageServiceMBean- Returns:
- A string representation of the Schema version.
-
getKeyspaceReplicationInfo
Description copied from interface:StorageServiceMBeanFetch the replication factor for a given keyspace.- Specified by:
getKeyspaceReplicationInfoin interfaceStorageServiceMBean- Returns:
- An integer that represents replication factor for the given keyspace.
-
getLeavingNodes
Deprecated.See CASSANDRA-7544Description copied from interface:StorageServiceMBeanRetrieve the list of nodes currently leaving the ring.- Specified by:
getLeavingNodesin interfaceStorageServiceMBean- Returns:
- set of IP addresses, as Strings
-
getLeavingNodesWithPort
- Specified by:
getLeavingNodesWithPortin interfaceStorageServiceMBean
-
getMovingNodes
Deprecated.See CASSANDRA-7544Description copied from interface:StorageServiceMBeanRetrieve the list of nodes currently moving in the ring.- Specified by:
getMovingNodesin interfaceStorageServiceMBean- Returns:
- set of IP addresses, as Strings
-
getMovingNodesWithPort
- Specified by:
getMovingNodesWithPortin interfaceStorageServiceMBean
-
getJoiningNodes
Deprecated.See CASSANDRA-7544Description copied from interface:StorageServiceMBeanRetrieve the list of nodes currently bootstrapping into the ring.- Specified by:
getJoiningNodesin interfaceStorageServiceMBean- Returns:
- set of IP addresses, as Strings
-
getJoiningNodesWithPort
- Specified by:
getJoiningNodesWithPortin interfaceStorageServiceMBean
-
getLiveNodes
Deprecated.See CASSANDRA-7544Description copied from interface:StorageServiceMBeanRetrieve the list of live nodes in the cluster, where "liveness" is determined by the failure detector of the node being queried.- Specified by:
getLiveNodesin interfaceStorageServiceMBean- Returns:
- set of IP addresses, as Strings
-
getLiveNodesWithPort
- Specified by:
getLiveNodesWithPortin interfaceStorageServiceMBean
-
getLiveRingMembers
-
getLiveRingMembers
-
getUnreachableNodes
Deprecated.See CASSANDRA-7544Description copied from interface:StorageServiceMBeanRetrieve the list of unreachable nodes in the cluster, as determined by this node's failure detector.- Specified by:
getUnreachableNodesin interfaceStorageServiceMBean- Returns:
- set of IP addresses, as Strings
-
getUnreachableNodesWithPort
- Specified by:
getUnreachableNodesWithPortin interfaceStorageServiceMBean
-
getAllDataFileLocations
Description copied from interface:StorageServiceMBeanGet the list of all data file locations from conf- Specified by:
getAllDataFileLocationsin interfaceStorageServiceMBean- Returns:
- String array of all locations
-
getLocalSystemKeyspacesDataFileLocations
Description copied from interface:StorageServiceMBeanReturns the locations where the local system keyspaces data should be stored.- Specified by:
getLocalSystemKeyspacesDataFileLocationsin interfaceStorageServiceMBean- Returns:
- the locations where the local system keyspaces data should be stored
-
getNonLocalSystemKeyspacesDataFileLocations
Description copied from interface:StorageServiceMBeanReturns the locations where should be stored the non system keyspaces data.- Specified by:
getNonLocalSystemKeyspacesDataFileLocationsin interfaceStorageServiceMBean- Returns:
- the locations where should be stored the non system keyspaces data
-
getCommitLogLocation
Description copied from interface:StorageServiceMBeanGet location of the commit log- Specified by:
getCommitLogLocationin interfaceStorageServiceMBean- Returns:
- a string path
-
getSavedCachesLocation
Description copied from interface:StorageServiceMBeanGet location of the saved caches dir- Specified by:
getSavedCachesLocationin interfaceStorageServiceMBean- Returns:
- a string path
-
getCurrentGenerationNumber
public int getCurrentGenerationNumber()Description copied from interface:StorageServiceMBeanReturn the generation value for this node.- Specified by:
getCurrentGenerationNumberin interfaceStorageServiceMBean- Returns:
- generation number
-
forceKeyspaceCleanup
public int forceKeyspaceCleanup(String keyspaceName, String... tables) throws IOException, ExecutionException, InterruptedException Description copied from interface:StorageServiceMBeanTrigger a cleanup of keys on a single keyspace- Specified by:
forceKeyspaceCleanupin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
forceKeyspaceCleanup
public int forceKeyspaceCleanup(int jobs, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException - Specified by:
forceKeyspaceCleanupin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
scrub
public int scrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, int jobs, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException - Specified by:
scrubin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
scrub
public int scrub(boolean disableSnapshot, IScrubber.Options options, int jobs, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException -
verify
@Deprecated(since="4.0") public int verify(boolean extendedVerify, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException Deprecated.See CASSANDRA-14201Description copied from interface:StorageServiceMBeanVerify (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- Specified by:
verifyin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
verify
public int verify(boolean extendedVerify, boolean checkVersion, boolean diskFailurePolicy, boolean mutateRepairStatus, boolean checkOwnsTokens, boolean quick, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException - Specified by:
verifyin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
upgradeSSTables
public int upgradeSSTables(String keyspaceName, boolean excludeCurrentVersion, String... tableNames) throws IOException, ExecutionException, InterruptedException Description copied from interface:StorageServiceMBeanRewrite all sstables to the latest version. Unlike scrub, it doesn't skip bad rows and do not snapshot sstables first.- Specified by:
upgradeSSTablesin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
upgradeSSTables
public int upgradeSSTables(String keyspaceName, boolean skipIfCurrentVersion, long skipIfNewerThanTimestamp, int jobs, String... tableNames) throws IOException, ExecutionException, InterruptedException - Specified by:
upgradeSSTablesin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
recompressSSTables
public int recompressSSTables(String keyspaceName, int jobs, String... tableNames) throws IOException, ExecutionException, InterruptedException - Specified by:
recompressSSTablesin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
rewriteSSTables
public int rewriteSSTables(String keyspaceName, boolean skipIfCurrentVersion, long skipIfNewerThanTimestamp, boolean skipIfCompressionMatches, int jobs, String... tableNames) throws IOException, ExecutionException, InterruptedException -
getPreparedStatements
-
dropPreparedStatements
public void dropPreparedStatements(boolean memoryOnly) - Specified by:
dropPreparedStatementsin interfaceStorageServiceMBean
-
forceKeyspaceCompaction
public void forceKeyspaceCompaction(boolean splitOutput, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException Description copied from interface:StorageServiceMBeanForces major compaction of a single keyspace- Specified by:
forceKeyspaceCompactionin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
relocateSSTables
public int relocateSSTables(String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException - Specified by:
relocateSSTablesin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
relocateSSTables
public int relocateSSTables(int jobs, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException - Specified by:
relocateSSTablesin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
garbageCollect
public int garbageCollect(String tombstoneOptionString, int jobs, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException Description copied from interface:StorageServiceMBeanRewrites 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.- Specified by:
garbageCollectin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
takeSnapshot
public void takeSnapshot(String tag, Map<String, String> options, String... entities) throws IOExceptionTakes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified.- Specified by:
takeSnapshotin interfaceStorageServiceMBean- 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:
IOException
-
takeTableSnapshot
Takes the snapshot of a specific table. A snapshot name must be specified.- Specified by:
takeTableSnapshotin interfaceStorageServiceMBean- Parameters:
keyspaceName- the keyspace which holds the specified tabletableName- the table to snapshottag- the tag given to the snapshot; may not be null or empty- Throws:
IOException
-
forceKeyspaceCompactionForTokenRange
public void forceKeyspaceCompactionForTokenRange(String keyspaceName, String startToken, String endToken, String... tableNames) throws IOException, ExecutionException, InterruptedException Description copied from interface:StorageServiceMBeanForces major compaction of specified token range in a single keyspace.- Specified by:
forceKeyspaceCompactionForTokenRangein interfaceStorageServiceMBean- 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:
IOExceptionExecutionExceptionInterruptedException
-
forceKeyspaceCompactionForPartitionKey
public void forceKeyspaceCompactionForPartitionKey(String keyspaceName, String partitionKey, String... tableNames) throws IOException, ExecutionException, InterruptedException Description copied from interface:StorageServiceMBeanForces major compactions for the range represented by the partition key- Specified by:
forceKeyspaceCompactionForPartitionKeyin interfaceStorageServiceMBean- Throws:
IOExceptionExecutionExceptionInterruptedException
-
forceCompactionKeysIgnoringGcGrace
public void forceCompactionKeysIgnoringGcGrace(String keyspaceName, String tableName, String... partitionKeysIgnoreGcGrace) throws IOException, ExecutionException, InterruptedException Forces compaction for a list of partition keys in a table The method will ignore the gc_grace_seconds for the partitionKeysIgnoreGcGrace during the comapction, in order to purge the tombstones and free up space quicker.- Specified by:
forceCompactionKeysIgnoringGcGracein interfaceStorageServiceMBean- Parameters:
keyspaceName- keyspace nametableName- table namepartitionKeysIgnoreGcGrace- partition keys ignoring the gc_grace_seconds- Throws:
IOException- on any I/O operation errorExecutionException- when attempting to retrieve the result of a task that aborted by throwing an exceptionInterruptedException- when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity
-
takeSnapshot
Takes the snapshot for the given keyspaces. A snapshot name must be specified.- Specified by:
takeSnapshotin interfaceStorageServiceMBean- Parameters:
tag- the tag given to the snapshot; may not be null or emptykeyspaceNames- the names of the keyspaces to snapshot; empty means "all."- Throws:
IOException
-
takeMultipleTableSnapshot
Takes the snapshot of a multiple column family from different keyspaces. A snapshot name must be specified.- Specified by:
takeMultipleTableSnapshotin interfaceStorageServiceMBean- Parameters:
tag- the tag given to the snapshot; may not be null or emptytableList- list of tables from different keyspace in the form of ks1.cf1 ks2.cf2- Throws:
IOException
-
clearSnapshot
Remove the snapshot with the given name from the given keyspaces. If no tag is specified we will remove all snapshots.- Specified by:
clearSnapshotin interfaceStorageServiceMBean- Parameters:
tag- name of snapshot to clear, if null or empty string, all snapshots of given keyspace will be clearedkeyspaceNames- name of keyspaces to clear snapshots for
-
clearSnapshot
Description copied from interface:StorageServiceMBeanRemove the snapshot with the given name from the given keyspaces. If no tag is specified we will remove all snapshots.- Specified by:
clearSnapshotin interfaceStorageServiceMBean- Parameters:
options- map of options for cleanup operation, consult nodetool's ClearSnapshottag- name of snapshot to clear, if null or empty string, all snapshots of given keyspace will be clearedkeyspaceNames- name of keyspaces to clear snapshots for
-
getSnapshotDetails
Description copied from interface:StorageServiceMBeanGet the details of all the snapshots- Specified by:
getSnapshotDetailsin interfaceStorageServiceMBean- Parameters:
options- map of options used for filtering of snapshots- Returns:
- A map of snapshotName to all its details in Tabular form.
-
getSnapshotDetails
Deprecated.See CASSANDRA-16789Description copied from interface:StorageServiceMBeanGet the details of all the snapshot- Specified by:
getSnapshotDetailsin interfaceStorageServiceMBean- Returns:
- A map of snapshotName to all its details in Tabular form.
-
trueSnapshotsSize
public long trueSnapshotsSize()Description copied from interface:StorageServiceMBeanGet the true size taken by all snapshots across all keyspaces.- Specified by:
trueSnapshotsSizein interfaceStorageServiceMBean- Returns:
- True size taken by all the snapshots.
-
setSnapshotLinksPerSecond
public void setSnapshotLinksPerSecond(long throttle) Description copied from interface:StorageServiceMBeanSet the current hardlink-per-second throttle for snapshots A setting of zero indicates no throttling- Specified by:
setSnapshotLinksPerSecondin interfaceStorageServiceMBean
-
getSnapshotLinksPerSecond
public long getSnapshotLinksPerSecond()Description copied from interface:StorageServiceMBeanGet the current hardlink-per-second throttle for snapshots A setting of zero indicates no throttling.- Specified by:
getSnapshotLinksPerSecondin interfaceStorageServiceMBean- Returns:
- snapshot links-per-second throttle
-
refreshSizeEstimates
Description copied from interface:StorageServiceMBeanForces refresh of values stored in system.size_estimates of all column families.- Specified by:
refreshSizeEstimatesin interfaceStorageServiceMBean- Throws:
ExecutionException
-
cleanupSizeEstimates
public void cleanupSizeEstimates()Description copied from interface:StorageServiceMBeanRemoves extraneous entries in system.size_estimates.- Specified by:
cleanupSizeEstimatesin interfaceStorageServiceMBean
-
getValidColumnFamilies
public Iterable<ColumnFamilyStore> getValidColumnFamilies(boolean allowIndexes, boolean autoAddIndexes, String keyspaceName, String... cfNames) - Parameters:
allowIndexes- Allow index CF names to be passed inautoAddIndexes- Automatically add secondary indexes if a CF has themkeyspaceName- keyspacecfNames- CFs- Throws:
IllegalArgumentException- when given CF name does not exist
-
forceKeyspaceFlush
Flush all memtables for a keyspace and column families.- Specified by:
forceKeyspaceFlushin interfaceStorageServiceMBean- Parameters:
keyspaceName-tableNames-- Throws:
IOException
-
forceKeyspaceFlush
public void forceKeyspaceFlush(String keyspaceName, ColumnFamilyStore.FlushReason reason) throws IOException Flush all memtables for a keyspace and column families.- Parameters:
keyspaceName-- Throws:
IOException
-
repairAsync
Description copied from interface:StorageServiceMBeanInvoke 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- Specified by:
repairAsyncin interfaceStorageServiceMBean- Parameters:
keyspace- Keyspace name to repair. Should not be null.repairSpec- repair option.- Returns:
- Repair command number, or 0 if nothing to repair
-
repair
-
repair
public Pair<Integer,Future<?>> repair(String keyspace, RepairOption option, List<ProgressListener> listeners) -
getTokenFactory
-
startRepairPaxosForTopologyChange
-
autoRepairPaxos
-
forceTerminateAllRepairSessions
public void forceTerminateAllRepairSessions()- Specified by:
forceTerminateAllRepairSessionsin interfaceStorageServiceMBean
-
getParentRepairStatus
Description copied from interface:StorageServiceMBeanGet the status of a given parent repair session.- Specified by:
getParentRepairStatusin interfaceStorageServiceMBean- Parameters:
cmd- the int reference returned when issuing the repair- Returns:
- status of parent repair from enum
ActiveRepairService.ParentRepairStatusfollowed by final message or messages of the session
-
setRepairSessionMaxTreeDepth
Deprecated.See CASSANDRA-17668- Specified by:
setRepairSessionMaxTreeDepthin interfaceStorageServiceMBean
-
getRepairSessionMaxTreeDepth
Deprecated.See CASSANDRA-17668- Specified by:
getRepairSessionMaxTreeDepthin interfaceStorageServiceMBean
-
setRepairSessionMaximumTreeDepth
public void setRepairSessionMaximumTreeDepth(int depth) - Specified by:
setRepairSessionMaximumTreeDepthin interfaceStorageServiceMBean
-
getRepairSessionMaximumTreeDepth
public int getRepairSessionMaximumTreeDepth()- Specified by:
getRepairSessionMaximumTreeDepthin interfaceStorageServiceMBean
-
getPrimaryRangesForEndpoint
Get the "primary ranges" for the specified keyspace and endpoint. "Primary ranges" are the ranges that the node is responsible for storing replica primarily. The node that stores replica primarily is defined as the first node returned byAbstractReplicationStrategy.calculateNaturalReplicas(org.apache.cassandra.dht.Token, org.apache.cassandra.locator.TokenMetadata).- Parameters:
keyspace- Keyspace name to check primary rangesep- endpoint we are interested in.- Returns:
- primary ranges for the specified endpoint.
-
getPrimaryRangeForEndpointWithinDC
public Collection<Range<Token>> getPrimaryRangeForEndpointWithinDC(String keyspace, InetAddressAndPort referenceEndpoint) Get the "primary ranges" within local DC for the specified keyspace and endpoint.- Parameters:
keyspace- Keyspace name to check primary rangesreferenceEndpoint- endpoint we are interested in.- Returns:
- primary ranges within local DC for the specified endpoint.
- See Also:
-
getLocalPrimaryRange
-
getLocalPrimaryRangeForEndpoint
public Collection<Range<Token>> getLocalPrimaryRangeForEndpoint(InetAddressAndPort referenceEndpoint) -
getAllRanges
Get all ranges that span the ring given a set of tokens. All ranges are in sorted order of ranges.- Returns:
- ranges in sorted order
-
getNaturalEndpoints
@Deprecated(since="4.0") public List<InetAddress> getNaturalEndpoints(String keyspaceName, String cf, String key) Deprecated.See CASSANDRA-7544This method returns the N endpoints that are responsible for storing the specified key i.e for replication.- Specified by:
getNaturalEndpointsin interfaceStorageServiceMBean- Parameters:
keyspaceName- keyspace name also known as keyspacecf- Column family namekey- key for which we need to find the endpoint- Returns:
- the endpoint responsible for this key
-
getNaturalEndpointsWithPort
- Specified by:
getNaturalEndpointsWithPortin interfaceStorageServiceMBean
-
getNaturalEndpoints
@Deprecated(since="4.0") public List<InetAddress> getNaturalEndpoints(String keyspaceName, ByteBuffer key) Deprecated.See CASSANDRA-7544- Specified by:
getNaturalEndpointsin interfaceStorageServiceMBean
-
getNaturalEndpointsWithPort
- Specified by:
getNaturalEndpointsWithPortin interfaceStorageServiceMBean
-
getNaturalReplicasForToken
-
getNaturalReplicasForToken
-
getKeyFromPartition
-
getToken
- Specified by:
getTokenin interfaceStorageServiceMBean
-
isEndpointValidForWrite
-
setLoggingLevel
Description copied from interface:StorageServiceMBeanset 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
- Specified by:
setLoggingLevelin interfaceStorageServiceMBean- Parameters:
classQualifier- The logger's classQualiferrawLevel- The log level- Throws:
Exception- See Also:
-
Level.toLevel(String)
-
getLoggingLevels
Description copied from interface:StorageServiceMBeanget the runtime logging levels- Specified by:
getLoggingLevelsin interfaceStorageServiceMBean- Returns:
- the runtime logging levels for all the configured loggers
-
getSplits
public List<Pair<Range<Token>,Long>> getSplits(String keyspaceName, String cfName, Range<Token> range, int keysPerSplit) - Returns:
- list of Token ranges (_not_ keys!) together with estimated key count, breaking up the data this node is responsible for into pieces of roughly keysPerSplit
-
decommission
Description copied from interface:StorageServiceMBeantransfer this node's data to other machines and remove it from service.- Specified by:
decommissionin interfaceStorageServiceMBean- Parameters:
force- Decommission even if this will reduce N to be less than RF.- Throws:
InterruptedException
-
prepareUnbootstrapStreaming
-
move
- Specified by:
movein interfaceStorageServiceMBean- Parameters:
newToken- token to move this node to. This node will unload its data onto its neighbors, and bootstrap to the new token.- Throws:
IOException
-
getRemovalStatus
Description copied from interface:StorageServiceMBeanGet the status of a token removal.- Specified by:
getRemovalStatusin interfaceStorageServiceMBean
-
getRemovalStatusWithPort
- Specified by:
getRemovalStatusWithPortin interfaceStorageServiceMBean
-
forceRemoveCompletion
public void forceRemoveCompletion()Force a remove operation to complete. This may be necessary if a remove operation blocks forever due to node/stream failure. removeNode() must be called first, this is a last resort measure. No further attempt will be made to restore replicas.- Specified by:
forceRemoveCompletionin interfaceStorageServiceMBean
-
removeNode
Remove a node that has died, attempting to restore the replica count. If the node is alive, decommission should be attempted. If decommission fails, then removeNode should be called. If we fail while trying to restore the replica count, finally forceRemoveCompleteion should be called to forcibly remove the node without regard to replica count.- Specified by:
removeNodein interfaceStorageServiceMBean- Parameters:
hostIdString- Host ID for the node
-
confirmReplication
-
getOperationMode
Description copied from interface:StorageServiceMBeanget the operational mode (leaving, joining, normal, decommissioned, client)- Specified by:
getOperationModein interfaceStorageServiceMBean
-
isStarting
public boolean isStarting()Description copied from interface:StorageServiceMBeanReturns whether the storage service is starting or not- Specified by:
isStartingin interfaceStorageServiceMBean
-
isMoving
public boolean isMoving() -
isJoining
public boolean isJoining() -
isDrained
public boolean isDrained()- Specified by:
isDrainedin interfaceStorageServiceMBean
-
isDraining
public boolean isDraining()- Specified by:
isDrainingin interfaceStorageServiceMBean
-
isNormal
public boolean isNormal() -
isDecommissioned
public boolean isDecommissioned() -
isDecommissionFailed
public boolean isDecommissionFailed()Description copied from interface:StorageServiceMBeanReturns whether a node has failed to decommission. The fact that this method returns false does not mean that there was an attempt to decommission this node which was successful.- Specified by:
isDecommissionFailedin interfaceStorageServiceMBean- Returns:
- true if decommission of this node has failed, false otherwise
-
isDecommissioning
public boolean isDecommissioning()Description copied from interface:StorageServiceMBeanReturns whether a node is being decommissioned or not.- Specified by:
isDecommissioningin interfaceStorageServiceMBean- Returns:
- true if this node is decommissioning, false otherwise
-
isBootstrapFailed
public boolean isBootstrapFailed()Description copied from interface:StorageServiceMBeanReturns whether a node has failed to bootstrap. The fact that this method returns false does not mean that there was an attempt to bootstrap this node which was successful.- Specified by:
isBootstrapFailedin interfaceStorageServiceMBean- Returns:
- true if bootstrap of this node has failed, false otherwise
-
getDrainProgress
Description copied from interface:StorageServiceMBeanget the progress of a drain operation- Specified by:
getDrainProgressin interfaceStorageServiceMBean
-
drain
Shuts node off to writes, empties memtables and the commit log.- Specified by:
drainin interfaceStorageServiceMBean- Throws:
IOExceptionInterruptedExceptionExecutionException
-
drain
protected void drain(boolean isFinalShutdown) throws IOException, InterruptedException, ExecutionException -
disableAutoCompaction
public void disableAutoCompaction() -
addPreShutdownHook
Add a runnable which will be called before shut down or drain. This is useful for other applications running in the same JVM which may want to shut down first rather than time out attempting to use Cassandra calls which will no longer work.- Parameters:
hook- the code to run- Returns:
- true on success, false if Cassandra is already shutting down, in which case the runnable has NOT been added.
-
removePreShutdownHook
Remove a preshutdown hook -
addPostShutdownHook
Add a runnable which will be called after shutdown or drain. This is useful for other applications running in the same JVM that Cassandra needs to work and should shut down later.- Parameters:
hook- the code to run- Returns:
- true on success, false if Cassandra is already shutting down, in which case the runnable has NOT been added.
-
removePostShutdownHook
Remove a postshutdownhook -
setPartitionerUnsafe
-
truncate
Description copied from interface:StorageServiceMBeanTruncates (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.- Specified by:
truncatein interfaceStorageServiceMBean- Parameters:
keyspace- The keyspace to delete fromtable- The column family to delete data from.- Throws:
TimeoutExceptionIOException
-
getOwnership
Description copied from interface:StorageServiceMBeangiven a list of tokens (representing the nodes in the cluster), returns a mapping from"token -> %age of cluster owned by that token"- Specified by:
getOwnershipin interfaceStorageServiceMBean
-
getOwnershipWithPort
- Specified by:
getOwnershipWithPortin interfaceStorageServiceMBean
-
effectiveOwnership
public LinkedHashMap<InetAddress,Float> effectiveOwnership(String keyspace) throws IllegalStateException Description copied from interface:StorageServiceMBeanEffective 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.- Specified by:
effectiveOwnershipin interfaceStorageServiceMBean- Throws:
IllegalStateException
-
effectiveOwnershipWithPort
public LinkedHashMap<String,Float> effectiveOwnershipWithPort(String keyspace) throws IllegalStateException - Specified by:
effectiveOwnershipWithPortin interfaceStorageServiceMBean- Throws:
IllegalStateException
-
getKeyspaces
- Specified by:
getKeyspacesin interfaceStorageServiceMBean
-
getNonSystemKeyspaces
- Specified by:
getNonSystemKeyspacesin interfaceStorageServiceMBean
-
getNonLocalStrategyKeyspaces
- Specified by:
getNonLocalStrategyKeyspacesin interfaceStorageServiceMBean
-
getViewBuildStatuses
-
getViewBuildStatuses
- Specified by:
getViewBuildStatusesin interfaceStorageServiceMBean
-
getViewBuildStatusesWithPort
- Specified by:
getViewBuildStatusesWithPortin interfaceStorageServiceMBean
-
setDynamicUpdateInterval
public void setDynamicUpdateInterval(int dynamicUpdateInterval) - Specified by:
setDynamicUpdateIntervalin interfaceStorageServiceMBean
-
getDynamicUpdateInterval
public int getDynamicUpdateInterval()- Specified by:
getDynamicUpdateIntervalin interfaceStorageServiceMBean
-
updateSnitch
public void updateSnitch(String epSnitchClassName, Boolean dynamic, Integer dynamicUpdateInterval, Integer dynamicResetInterval, Double dynamicBadnessThreshold) throws ClassNotFoundException Description copied from interface:StorageServiceMBeanChange 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.- Specified by:
updateSnitchin interfaceStorageServiceMBean- 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:
ClassNotFoundException
-
getBatchlogEndpointStrategy
- Specified by:
getBatchlogEndpointStrategyin interfaceStorageServiceMBean
-
setBatchlogEndpointStrategy
Description copied from interface:StorageServiceMBeanSeeConfig.BatchlogEndpointStrategyfor valid values.- Specified by:
setBatchlogEndpointStrategyin interfaceStorageServiceMBean
-
bulkLoad
Description copied from interface:StorageServiceMBeanStarts a bulk load and blocks until it completes.- Specified by:
bulkLoadin interfaceStorageServiceMBean
-
bulkLoadAsync
Description copied from interface:StorageServiceMBeanStarts a bulk load asynchronously and returns the String representation of the planID for the new streaming session.- Specified by:
bulkLoadAsyncin interfaceStorageServiceMBean
-
rescheduleFailedDeletions
public void rescheduleFailedDeletions()- Specified by:
rescheduleFailedDeletionsin interfaceStorageServiceMBean
-
loadNewSSTables
Deprecated.See CASSANDRA-14417Description copied from interface:StorageServiceMBeanLoad new SSTables to the given keyspace/table- Specified by:
loadNewSSTablesin interfaceStorageServiceMBean- Parameters:
ksName- The parent keyspace namecfName- The ColumnFamily name where SSTables belong- See Also:
-
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.- Specified by:
sampleKeyRangein interfaceStorageServiceMBean- Returns:
- set of Tokens as Strings
-
samplePartitions
public Map<String,List<CompositeData>> samplePartitions(int duration, int capacity, int count, List<String> samplers) throws OpenDataException - Specified by:
samplePartitionsin interfaceStorageServiceMBean- Throws:
OpenDataException
-
samplePartitions
public Map<String,List<CompositeData>> samplePartitions(String keyspace, int durationMillis, int capacity, int count, List<String> samplers) throws OpenDataException - Specified by:
samplePartitionsin interfaceStorageServiceMBean- Throws:
OpenDataException
-
startSamplingPartitions
public boolean startSamplingPartitions(String ks, String table, int duration, int interval, int capacity, int count, List<String> samplers) Description copied from interface:StorageServiceMBeanStart a scheduled sampling- Specified by:
startSamplingPartitionsin interfaceStorageServiceMBean- Parameters:
ks- Keyspace. Nullable. If null, the scheduled sampling is on all keyspaces and tablestable- Nullable. If null, the scheduled sampling is on all tables of the specified keyspaceduration- Duration of each scheduled sampling job in millisecondsinterval- Interval of each scheduled sampling job in millisecondscapacity- Capacity of the sampler, higher for more accuracycount- Number of the top samples to listsamplers- a list of samplers to enable- Returns:
- true if the scheduled sampling is started successfully. Otherwise return false
-
stopSamplingPartitions
Description copied from interface:StorageServiceMBeanStop a scheduled sampling- Specified by:
stopSamplingPartitionsin interfaceStorageServiceMBean- Parameters:
ks- Keyspace. Nullable. If null, the scheduled sampling is on all keysapces and tablestable- Nullable. If null, the scheduled sampling is on all tables of the specified keyspace- Returns:
- true if the scheduled sampling is stopped. False is returned if the sampling task is not found
-
getSampleTasks
- Specified by:
getSampleTasksin interfaceStorageServiceMBean- Returns:
- a list of qualified table names that have active scheduled sampling tasks. The format of the name is `KEYSPACE.TABLE` The wild card symbol (*) indicates all keyspace/table. For example, "*.*" indicates all tables in all keyspaces. "foo.*" indicates all tables under keyspace 'foo'. "foo.bar" indicates the scheduled sampling is enabled for the table 'bar'
-
rebuildSecondaryIndex
Description copied from interface:StorageServiceMBeanrebuild the specified indexes- Specified by:
rebuildSecondaryIndexin interfaceStorageServiceMBean
-
resetLocalSchema
- Specified by:
resetLocalSchemain interfaceStorageServiceMBean- Throws:
IOException
-
reloadLocalSchema
public void reloadLocalSchema()- Specified by:
reloadLocalSchemain interfaceStorageServiceMBean
-
setTraceProbability
public void setTraceProbability(double probability) Description copied from interface:StorageServiceMBeanEnables/Disables tracing for the whole system.- Specified by:
setTraceProbabilityin interfaceStorageServiceMBean- 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)
-
getTraceProbability
public double getTraceProbability()Description copied from interface:StorageServiceMBeanReturns the configured tracing probability.- Specified by:
getTraceProbabilityin interfaceStorageServiceMBean
-
shouldTraceProbablistically
public boolean shouldTraceProbablistically() -
disableAutoCompaction
- Specified by:
disableAutoCompactionin interfaceStorageServiceMBean- Throws:
IOException
-
enableAutoCompaction
- Specified by:
enableAutoCompactionin interfaceStorageServiceMBean- Throws:
IOException
-
getAutoCompactionStatus
- Specified by:
getAutoCompactionStatusin interfaceStorageServiceMBean- Throws:
IOException
-
getClusterName
Returns the name of the cluster- Specified by:
getClusterNamein interfaceStorageServiceMBean
-
getPartitionerName
Returns the cluster partitioner- Specified by:
getPartitionerNamein interfaceStorageServiceMBean
-
setSSTablePreemptiveOpenIntervalInMB
public void setSSTablePreemptiveOpenIntervalInMB(int intervalInMB) Negative number for disabled- Specified by:
setSSTablePreemptiveOpenIntervalInMBin interfaceStorageServiceMBean
-
getSSTablePreemptiveOpenIntervalInMB
public int getSSTablePreemptiveOpenIntervalInMB()This method can return negative number for disabled- Specified by:
getSSTablePreemptiveOpenIntervalInMBin interfaceStorageServiceMBean
-
getMigrateKeycacheOnCompaction
public boolean getMigrateKeycacheOnCompaction()- Specified by:
getMigrateKeycacheOnCompactionin interfaceStorageServiceMBean
-
setMigrateKeycacheOnCompaction
public void setMigrateKeycacheOnCompaction(boolean invalidateKeyCacheOnCompaction) - Specified by:
setMigrateKeycacheOnCompactionin interfaceStorageServiceMBean
-
getInvalidateKeycacheOnSSTableDeletion
public boolean getInvalidateKeycacheOnSSTableDeletion()- Specified by:
getInvalidateKeycacheOnSSTableDeletionin interfaceStorageServiceMBean
-
setInvalidateKeycacheOnSSTableDeletion
public void setInvalidateKeycacheOnSSTableDeletion(boolean invalidate) - Specified by:
setInvalidateKeycacheOnSSTableDeletionin interfaceStorageServiceMBean
-
getTombstoneWarnThreshold
public int getTombstoneWarnThreshold()Description copied from interface:StorageServiceMBeanReturns the threshold for warning of queries with many tombstones- Specified by:
getTombstoneWarnThresholdin interfaceStorageServiceMBean
-
setTombstoneWarnThreshold
public void setTombstoneWarnThreshold(int threshold) Description copied from interface:StorageServiceMBeanSets the threshold for warning queries with many tombstones- Specified by:
setTombstoneWarnThresholdin interfaceStorageServiceMBean
-
getTombstoneFailureThreshold
public int getTombstoneFailureThreshold()Description copied from interface:StorageServiceMBeanReturns the threshold for abandoning queries with many tombstones- Specified by:
getTombstoneFailureThresholdin interfaceStorageServiceMBean
-
setTombstoneFailureThreshold
public void setTombstoneFailureThreshold(int threshold) Description copied from interface:StorageServiceMBeanSets the threshold for abandoning queries with many tombstones- Specified by:
setTombstoneFailureThresholdin interfaceStorageServiceMBean
-
getCachedReplicaRowsWarnThreshold
public int getCachedReplicaRowsWarnThreshold()Description copied from interface:StorageServiceMBeanReturns the number of rows cached at the coordinator before filtering/index queries log a warning.- Specified by:
getCachedReplicaRowsWarnThresholdin interfaceStorageServiceMBean
-
setCachedReplicaRowsWarnThreshold
public void setCachedReplicaRowsWarnThreshold(int threshold) Description copied from interface:StorageServiceMBeanSets the number of rows cached at the coordinator before filtering/index queries log a warning.- Specified by:
setCachedReplicaRowsWarnThresholdin interfaceStorageServiceMBean
-
getCachedReplicaRowsFailThreshold
public int getCachedReplicaRowsFailThreshold()Description copied from interface:StorageServiceMBeanReturns the number of rows cached at the coordinator before filtering/index queries fail outright.- Specified by:
getCachedReplicaRowsFailThresholdin interfaceStorageServiceMBean
-
setCachedReplicaRowsFailThreshold
public void setCachedReplicaRowsFailThreshold(int threshold) Description copied from interface:StorageServiceMBeanSets the number of rows cached at the coordinator before filtering/index queries fail outright.- Specified by:
setCachedReplicaRowsFailThresholdin interfaceStorageServiceMBean
-
getColumnIndexSizeInKiB
public int getColumnIndexSizeInKiB()Description copied from interface:StorageServiceMBeanReturns the granularity of the collation index of rows within a partition. -1 stands for the SSTable format's default.- Specified by:
getColumnIndexSizeInKiBin interfaceStorageServiceMBean
-
setColumnIndexSizeInKiB
public void setColumnIndexSizeInKiB(int columnIndexSizeInKiB) Description copied from interface:StorageServiceMBeanSets the granularity of the collation index of rows within a partition. Use -1 to select the SSTable format's default.- Specified by:
setColumnIndexSizeInKiBin interfaceStorageServiceMBean
-
setColumnIndexSize
Deprecated.See CASSANDRA-17668Description copied from interface:StorageServiceMBeanSets the granularity of the collation index of rows within a partition- Specified by:
setColumnIndexSizein interfaceStorageServiceMBean
-
getColumnIndexCacheSize
Deprecated.See CASSANDRA-17668Description copied from interface:StorageServiceMBeanReturns the threshold for skipping the column index when caching partition info- Specified by:
getColumnIndexCacheSizein interfaceStorageServiceMBean
-
setColumnIndexCacheSize
Deprecated.See CASSANDRA-17668Description copied from interface:StorageServiceMBeanSets the threshold for skipping the column index when caching partition info- Specified by:
setColumnIndexCacheSizein interfaceStorageServiceMBean
-
getColumnIndexCacheSizeInKiB
public int getColumnIndexCacheSizeInKiB()Description copied from interface:StorageServiceMBeanReturns the threshold for skipping the column index when caching partition info- Specified by:
getColumnIndexCacheSizeInKiBin interfaceStorageServiceMBean
-
setColumnIndexCacheSizeInKiB
public void setColumnIndexCacheSizeInKiB(int cacheSizeInKiB) Description copied from interface:StorageServiceMBeanSets the threshold for skipping the column index when caching partition info- Specified by:
setColumnIndexCacheSizeInKiBin interfaceStorageServiceMBean
-
getBatchSizeFailureThreshold
public int getBatchSizeFailureThreshold()Description copied from interface:StorageServiceMBeanReturns the threshold for rejecting queries due to a large batch size- Specified by:
getBatchSizeFailureThresholdin interfaceStorageServiceMBean
-
setBatchSizeFailureThreshold
public void setBatchSizeFailureThreshold(int threshold) Description copied from interface:StorageServiceMBeanSets the threshold for rejecting queries due to a large batch size- Specified by:
setBatchSizeFailureThresholdin interfaceStorageServiceMBean
-
getBatchSizeWarnThreshold
Deprecated.See CASSANDRA-17668Description copied from interface:StorageServiceMBeanReturns the threshold for warning queries due to a large batch size- Specified by:
getBatchSizeWarnThresholdin interfaceStorageServiceMBean
-
setBatchSizeWarnThreshold
Deprecated.See CASSANDRA-17668Description copied from interface:StorageServiceMBeanSets the threshold for warning queries due to a large batch size- Specified by:
setBatchSizeWarnThresholdin interfaceStorageServiceMBean
-
getBatchSizeWarnThresholdInKiB
public int getBatchSizeWarnThresholdInKiB()Description copied from interface:StorageServiceMBeanReturns the threshold for warning queries due to a large batch size- Specified by:
getBatchSizeWarnThresholdInKiBin interfaceStorageServiceMBean
-
setBatchSizeWarnThresholdInKiB
public void setBatchSizeWarnThresholdInKiB(int thresholdInKiB) Description copied from interface:StorageServiceMBeanSets the threshold for warning queries due to a large batch size- Specified by:
setBatchSizeWarnThresholdInKiBin interfaceStorageServiceMBean
-
getInitialRangeTombstoneListAllocationSize
public int getInitialRangeTombstoneListAllocationSize()Description copied from interface:StorageServiceMBeanReturns the initial allocation size of backing arrays for new RangeTombstoneList objects- Specified by:
getInitialRangeTombstoneListAllocationSizein interfaceStorageServiceMBean
-
setInitialRangeTombstoneListAllocationSize
public void setInitialRangeTombstoneListAllocationSize(int size) Description copied from interface:StorageServiceMBeanSets the initial allocation size of backing arrays for new RangeTombstoneList objects- Specified by:
setInitialRangeTombstoneListAllocationSizein interfaceStorageServiceMBean
-
getRangeTombstoneResizeListGrowthFactor
public double getRangeTombstoneResizeListGrowthFactor()Description copied from interface:StorageServiceMBeanReturns the resize factor to use when growing/resizing a RangeTombstoneList- Specified by:
getRangeTombstoneResizeListGrowthFactorin interfaceStorageServiceMBean
-
setRangeTombstoneListResizeGrowthFactor
public void setRangeTombstoneListResizeGrowthFactor(double growthFactor) throws IllegalStateException Description copied from interface:StorageServiceMBeanSets the resize factor to use when growing/resizing a RangeTombstoneList- Specified by:
setRangeTombstoneListResizeGrowthFactorin interfaceStorageServiceMBean- Throws:
IllegalStateException
-
setHintedHandoffThrottleInKB
public void setHintedHandoffThrottleInKB(int throttleInKB) Description copied from interface:StorageServiceMBeanSets the hinted handoff throttle in KiB per second, per delivery thread.- Specified by:
setHintedHandoffThrottleInKBin interfaceStorageServiceMBean
-
getTransferHintsOnDecommission
public boolean getTransferHintsOnDecommission()- Specified by:
getTransferHintsOnDecommissionin interfaceStorageServiceMBean
-
setTransferHintsOnDecommission
public void setTransferHintsOnDecommission(boolean enabled) - Specified by:
setTransferHintsOnDecommissionin interfaceStorageServiceMBean
-
isHintTtlUseMutationCreationTime
public boolean isHintTtlUseMutationCreationTime()Description copied from interface:StorageServiceMBeanReturns whether we are using the creation time of the mutation for determining hint ttl- Specified by:
isHintTtlUseMutationCreationTimein interfaceStorageServiceMBean
-
setUseCreationTimeForHintTtl
public void setUseCreationTimeForHintTtl(boolean enabled) Description copied from interface:StorageServiceMBeanSets whether we are using the creation time of the mutation for determining hint ttl- Specified by:
setUseCreationTimeForHintTtlin interfaceStorageServiceMBean
-
getMaxHintTTL
public int getMaxHintTTL()Description copied from interface:StorageServiceMBeanReturns upper bound on the hint ttl- Specified by:
getMaxHintTTLin interfaceStorageServiceMBean
-
setMaxHintTTL
public void setMaxHintTTL(int maxHintTTL) Description copied from interface:StorageServiceMBeanSets the upper bound on the hint ttl- Specified by:
setMaxHintTTLin interfaceStorageServiceMBean
-
clearConnectionHistory
public void clearConnectionHistory()Description copied from interface:StorageServiceMBeanClears the history of clients that have connected in the past- Specified by:
clearConnectionHistoryin interfaceStorageServiceMBean
-
disableAuditLog
public void disableAuditLog()- Specified by:
disableAuditLogin interfaceStorageServiceMBean
-
enableAuditLog
@Deprecated(since="4.1") public void enableAuditLog(String loggerName, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers) throws ConfigurationException, IllegalStateException Deprecated.See CASSANDRA-16725- Specified by:
enableAuditLogin interfaceStorageServiceMBean- Throws:
ConfigurationExceptionIllegalStateException
-
enableAuditLog
public void enableAuditLog(String loggerName, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers, Integer maxArchiveRetries, Boolean block, String rollCycle, Long maxLogSize, Integer maxQueueWeight, String archiveCommand) throws IllegalStateException - Specified by:
enableAuditLogin interfaceStorageServiceMBean- Throws:
IllegalStateException
-
enableAuditLog
@Deprecated(since="4.1") public void enableAuditLog(String loggerName, Map<String, String> parameters, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers) throws ConfigurationException, IllegalStateExceptionDeprecated.See CASSANDRA-16725- Specified by:
enableAuditLogin interfaceStorageServiceMBean- Throws:
ConfigurationExceptionIllegalStateException
-
enableAuditLog
public void enableAuditLog(String loggerName, Map<String, String> parameters, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers, Integer maxArchiveRetries, Boolean block, String rollCycle, Long maxLogSize, Integer maxQueueWeight, String archiveCommand) throws IllegalStateException- Specified by:
enableAuditLogin interfaceStorageServiceMBean- Throws:
IllegalStateException
-
isAuditLogEnabled
public boolean isAuditLogEnabled()- Specified by:
isAuditLogEnabledin interfaceStorageServiceMBean
-
getCorruptedTombstoneStrategy
- Specified by:
getCorruptedTombstoneStrategyin interfaceStorageServiceMBean
-
setCorruptedTombstoneStrategy
- Specified by:
setCorruptedTombstoneStrategyin interfaceStorageServiceMBean
-
getNativeTransportMaxConcurrentRequestsInBytes
public long getNativeTransportMaxConcurrentRequestsInBytes()- Specified by:
getNativeTransportMaxConcurrentRequestsInBytesin interfaceStorageServiceMBean
-
setNativeTransportMaxConcurrentRequestsInBytes
public void setNativeTransportMaxConcurrentRequestsInBytes(long newLimit) - Specified by:
setNativeTransportMaxConcurrentRequestsInBytesin interfaceStorageServiceMBean
-
getNativeTransportMaxConcurrentRequestsInBytesPerIp
public long getNativeTransportMaxConcurrentRequestsInBytesPerIp()- Specified by:
getNativeTransportMaxConcurrentRequestsInBytesPerIpin interfaceStorageServiceMBean
-
setNativeTransportMaxConcurrentRequestsInBytesPerIp
public void setNativeTransportMaxConcurrentRequestsInBytesPerIp(long newLimit) - Specified by:
setNativeTransportMaxConcurrentRequestsInBytesPerIpin interfaceStorageServiceMBean
-
getNativeTransportMaxRequestsPerSecond
public int getNativeTransportMaxRequestsPerSecond()- Specified by:
getNativeTransportMaxRequestsPerSecondin interfaceStorageServiceMBean
-
setNativeTransportMaxRequestsPerSecond
public void setNativeTransportMaxRequestsPerSecond(int newPerSecond) - Specified by:
setNativeTransportMaxRequestsPerSecondin interfaceStorageServiceMBean
-
setNativeTransportRateLimitingEnabled
public void setNativeTransportRateLimitingEnabled(boolean enabled) - Specified by:
setNativeTransportRateLimitingEnabledin interfaceStorageServiceMBean
-
getNativeTransportRateLimitingEnabled
public boolean getNativeTransportRateLimitingEnabled()- Specified by:
getNativeTransportRateLimitingEnabledin interfaceStorageServiceMBean
-
isOutOfTokenRangeRequestLoggingEnabled
public boolean isOutOfTokenRangeRequestLoggingEnabled()Description copied from interface:StorageServiceMBeanToggles to turn on the logging or rejection of operations for token ranges that the node does not own, or is not about to acquire.- Specified by:
isOutOfTokenRangeRequestLoggingEnabledin interfaceStorageServiceMBean
-
setOutOfTokenRangeRequestLoggingEnabled
public void setOutOfTokenRangeRequestLoggingEnabled(boolean enabled) - Specified by:
setOutOfTokenRangeRequestLoggingEnabledin interfaceStorageServiceMBean
-
isOutOfTokenRangeRequestRejectionEnabled
public boolean isOutOfTokenRangeRequestRejectionEnabled()- Specified by:
isOutOfTokenRangeRequestRejectionEnabledin interfaceStorageServiceMBean
-
setOutOfTokenRangeRequestRejectionEnabled
public void setOutOfTokenRangeRequestRejectionEnabled(boolean enabled) - Specified by:
setOutOfTokenRangeRequestRejectionEnabledin interfaceStorageServiceMBean
-
shutdownServer
public void shutdownServer() -
enableFullQueryLogger
public void enableFullQueryLogger(String path, String rollCycle, Boolean blocking, int maxQueueWeight, long maxLogSize, String archiveCommand, int maxArchiveRetries) Description copied from interface:StorageServiceMBeanStart the fully query logger.- Specified by:
enableFullQueryLoggerin interfaceStorageServiceMBean- 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
public void resetFullQueryLogger()Description copied from interface:StorageServiceMBeanDisable 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- Specified by:
resetFullQueryLoggerin interfaceStorageServiceMBean
-
stopFullQueryLogger
public void stopFullQueryLogger()Description copied from interface:StorageServiceMBeanStop logging queries but leave any generated files on disk.- Specified by:
stopFullQueryLoggerin interfaceStorageServiceMBean
-
isFullQueryLogEnabled
public boolean isFullQueryLogEnabled()- Specified by:
isFullQueryLogEnabledin interfaceStorageServiceMBean
-
getFullQueryLoggerOptions
Description copied from interface:StorageServiceMBeanReturns the current state of FQL.- Specified by:
getFullQueryLoggerOptionsin interfaceStorageServiceMBean
-
getOutstandingSchemaVersions
Description copied from interface:StorageServiceMBeanReturns a map of schema version -> list of endpoints reporting that version that we need schema updates for- Specified by:
getOutstandingSchemaVersionsin interfaceStorageServiceMBean
-
getOutstandingSchemaVersionsWithPort
- Specified by:
getOutstandingSchemaVersionsWithPortin interfaceStorageServiceMBean
-
autoOptimiseIncRepairStreams
public boolean autoOptimiseIncRepairStreams()- Specified by:
autoOptimiseIncRepairStreamsin interfaceStorageServiceMBean
-
setAutoOptimiseIncRepairStreams
public void setAutoOptimiseIncRepairStreams(boolean enabled) - Specified by:
setAutoOptimiseIncRepairStreamsin interfaceStorageServiceMBean
-
autoOptimiseFullRepairStreams
public boolean autoOptimiseFullRepairStreams()- Specified by:
autoOptimiseFullRepairStreamsin interfaceStorageServiceMBean
-
setAutoOptimiseFullRepairStreams
public void setAutoOptimiseFullRepairStreams(boolean enabled) - Specified by:
setAutoOptimiseFullRepairStreamsin interfaceStorageServiceMBean
-
autoOptimisePreviewRepairStreams
public boolean autoOptimisePreviewRepairStreams()- Specified by:
autoOptimisePreviewRepairStreamsin interfaceStorageServiceMBean
-
setAutoOptimisePreviewRepairStreams
public void setAutoOptimisePreviewRepairStreams(boolean enabled) - Specified by:
setAutoOptimisePreviewRepairStreamsin interfaceStorageServiceMBean
-
getTableCountWarnThreshold
Deprecated.See CASSANDRA-17195- Specified by:
getTableCountWarnThresholdin interfaceStorageServiceMBean
-
setTableCountWarnThreshold
Deprecated.See CASSANDRA-17195- Specified by:
setTableCountWarnThresholdin interfaceStorageServiceMBean
-
getKeyspaceCountWarnThreshold
Deprecated.See CASSANDRA-17195- Specified by:
getKeyspaceCountWarnThresholdin interfaceStorageServiceMBean
-
setKeyspaceCountWarnThreshold
Deprecated.See CASSANDRA-17195- Specified by:
setKeyspaceCountWarnThresholdin interfaceStorageServiceMBean
-
setCompactionTombstoneWarningThreshold
public void setCompactionTombstoneWarningThreshold(int count) - Specified by:
setCompactionTombstoneWarningThresholdin interfaceStorageServiceMBean
-
getCompactionTombstoneWarningThreshold
public int getCompactionTombstoneWarningThreshold()- Specified by:
getCompactionTombstoneWarningThresholdin interfaceStorageServiceMBean
-
addSnapshot
-
getReadThresholdsEnabled
public boolean getReadThresholdsEnabled()- Specified by:
getReadThresholdsEnabledin interfaceStorageServiceMBean
-
setReadThresholdsEnabled
public void setReadThresholdsEnabled(boolean value) - Specified by:
setReadThresholdsEnabledin interfaceStorageServiceMBean
-
getCoordinatorLargeReadWarnThreshold
- Specified by:
getCoordinatorLargeReadWarnThresholdin interfaceStorageServiceMBean
-
setCoordinatorLargeReadWarnThreshold
- Specified by:
setCoordinatorLargeReadWarnThresholdin interfaceStorageServiceMBean
-
getCoordinatorLargeReadAbortThreshold
- Specified by:
getCoordinatorLargeReadAbortThresholdin interfaceStorageServiceMBean
-
setCoordinatorLargeReadAbortThreshold
- Specified by:
setCoordinatorLargeReadAbortThresholdin interfaceStorageServiceMBean
-
getLocalReadTooLargeWarnThreshold
- Specified by:
getLocalReadTooLargeWarnThresholdin interfaceStorageServiceMBean
-
setLocalReadTooLargeWarnThreshold
- Specified by:
setLocalReadTooLargeWarnThresholdin interfaceStorageServiceMBean
-
getLocalReadTooLargeAbortThreshold
- Specified by:
getLocalReadTooLargeAbortThresholdin interfaceStorageServiceMBean
-
setLocalReadTooLargeAbortThreshold
- Specified by:
setLocalReadTooLargeAbortThresholdin interfaceStorageServiceMBean
-
getRowIndexReadSizeWarnThreshold
- Specified by:
getRowIndexReadSizeWarnThresholdin interfaceStorageServiceMBean
-
setRowIndexReadSizeWarnThreshold
- Specified by:
setRowIndexReadSizeWarnThresholdin interfaceStorageServiceMBean
-
getRowIndexReadSizeAbortThreshold
- Specified by:
getRowIndexReadSizeAbortThresholdin interfaceStorageServiceMBean
-
setRowIndexReadSizeAbortThreshold
- Specified by:
setRowIndexReadSizeAbortThresholdin interfaceStorageServiceMBean
-
setDefaultKeyspaceReplicationFactor
public void setDefaultKeyspaceReplicationFactor(int value) - Specified by:
setDefaultKeyspaceReplicationFactorin interfaceStorageServiceMBean
-
getDefaultKeyspaceReplicationFactor
public int getDefaultKeyspaceReplicationFactor()- Specified by:
getDefaultKeyspaceReplicationFactorin interfaceStorageServiceMBean
-
getSkipPaxosRepairOnTopologyChange
public boolean getSkipPaxosRepairOnTopologyChange()- Specified by:
getSkipPaxosRepairOnTopologyChangein interfaceStorageServiceMBean
-
setSkipPaxosRepairOnTopologyChange
public void setSkipPaxosRepairOnTopologyChange(boolean v) - Specified by:
setSkipPaxosRepairOnTopologyChangein interfaceStorageServiceMBean
-
getSkipPaxosRepairOnTopologyChangeKeyspaces
- Specified by:
getSkipPaxosRepairOnTopologyChangeKeyspacesin interfaceStorageServiceMBean
-
setSkipPaxosRepairOnTopologyChangeKeyspaces
- Specified by:
setSkipPaxosRepairOnTopologyChangeKeyspacesin interfaceStorageServiceMBean
-
getPaxosAutoRepairsEnabled
public boolean getPaxosAutoRepairsEnabled()- Specified by:
getPaxosAutoRepairsEnabledin interfaceStorageServiceMBean
-
setPaxosAutoRepairsEnabled
public void setPaxosAutoRepairsEnabled(boolean enabled) - Specified by:
setPaxosAutoRepairsEnabledin interfaceStorageServiceMBean
-
getPaxosStateFlushEnabled
public boolean getPaxosStateFlushEnabled()- Specified by:
getPaxosStateFlushEnabledin interfaceStorageServiceMBean
-
setPaxosStateFlushEnabled
public void setPaxosStateFlushEnabled(boolean enabled) - Specified by:
setPaxosStateFlushEnabledin interfaceStorageServiceMBean
-
getPaxosAutoRepairTables
- Specified by:
getPaxosAutoRepairTablesin interfaceStorageServiceMBean
-
getPaxosPurgeGraceSeconds
public long getPaxosPurgeGraceSeconds()- Specified by:
getPaxosPurgeGraceSecondsin interfaceStorageServiceMBean
-
setPaxosPurgeGraceSeconds
public void setPaxosPurgeGraceSeconds(long v) - Specified by:
setPaxosPurgeGraceSecondsin interfaceStorageServiceMBean
-
getPaxosOnLinearizabilityViolations
- Specified by:
getPaxosOnLinearizabilityViolationsin interfaceStorageServiceMBean
-
setPaxosOnLinearizabilityViolations
- Specified by:
setPaxosOnLinearizabilityViolationsin interfaceStorageServiceMBean
-
getPaxosStatePurging
- Specified by:
getPaxosStatePurgingin interfaceStorageServiceMBean
-
setPaxosStatePurging
- Specified by:
setPaxosStatePurgingin interfaceStorageServiceMBean
-
getPaxosRepairEnabled
public boolean getPaxosRepairEnabled()- Specified by:
getPaxosRepairEnabledin interfaceStorageServiceMBean
-
setPaxosRepairEnabled
public void setPaxosRepairEnabled(boolean enabled) - Specified by:
setPaxosRepairEnabledin interfaceStorageServiceMBean
-
getPaxosDcLocalCommitEnabled
public boolean getPaxosDcLocalCommitEnabled()- Specified by:
getPaxosDcLocalCommitEnabledin interfaceStorageServiceMBean
-
setPaxosDcLocalCommitEnabled
public void setPaxosDcLocalCommitEnabled(boolean enabled) - Specified by:
setPaxosDcLocalCommitEnabledin interfaceStorageServiceMBean
-
getPaxosBallotLowBound
- Specified by:
getPaxosBallotLowBoundin interfaceStorageServiceMBean
-
getRepairRpcTimeout
- Specified by:
getRepairRpcTimeoutin interfaceStorageServiceMBean
-
setRepairRpcTimeout
- Specified by:
setRepairRpcTimeoutin interfaceStorageServiceMBean
-
evictHungRepairs
public void evictHungRepairs()- Specified by:
evictHungRepairsin interfaceStorageServiceMBean
-
clearPaxosRepairs
public void clearPaxosRepairs()- Specified by:
clearPaxosRepairsin interfaceStorageServiceMBean
-
setSkipPaxosRepairCompatibilityCheck
public void setSkipPaxosRepairCompatibilityCheck(boolean v) - Specified by:
setSkipPaxosRepairCompatibilityCheckin interfaceStorageServiceMBean
-
getSkipPaxosRepairCompatibilityCheck
public boolean getSkipPaxosRepairCompatibilityCheck()- Specified by:
getSkipPaxosRepairCompatibilityCheckin interfaceStorageServiceMBean
-
topPartitionsEnabled
public boolean topPartitionsEnabled()- Specified by:
topPartitionsEnabledin interfaceStorageServiceMBean
-
getMaxTopSizePartitionCount
public int getMaxTopSizePartitionCount()- Specified by:
getMaxTopSizePartitionCountin interfaceStorageServiceMBean
-
setMaxTopSizePartitionCount
public void setMaxTopSizePartitionCount(int value) - Specified by:
setMaxTopSizePartitionCountin interfaceStorageServiceMBean
-
getMaxTopTombstonePartitionCount
public int getMaxTopTombstonePartitionCount()- Specified by:
getMaxTopTombstonePartitionCountin interfaceStorageServiceMBean
-
setMaxTopTombstonePartitionCount
public void setMaxTopTombstonePartitionCount(int value) - Specified by:
setMaxTopTombstonePartitionCountin interfaceStorageServiceMBean
-
getMinTrackedPartitionSize
- Specified by:
getMinTrackedPartitionSizein interfaceStorageServiceMBean
-
setMinTrackedPartitionSize
- Specified by:
setMinTrackedPartitionSizein interfaceStorageServiceMBean
-
getMinTrackedPartitionTombstoneCount
public long getMinTrackedPartitionTombstoneCount()- Specified by:
getMinTrackedPartitionTombstoneCountin interfaceStorageServiceMBean
-
setMinTrackedPartitionTombstoneCount
public void setMinTrackedPartitionTombstoneCount(long value) - Specified by:
setMinTrackedPartitionTombstoneCountin interfaceStorageServiceMBean
-
setSkipStreamDiskSpaceCheck
public void setSkipStreamDiskSpaceCheck(boolean value) - Specified by:
setSkipStreamDiskSpaceCheckin interfaceStorageServiceMBean
-
getSkipStreamDiskSpaceCheck
public boolean getSkipStreamDiskSpaceCheck()- Specified by:
getSkipStreamDiskSpaceCheckin interfaceStorageServiceMBean
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException - Specified by:
removeNotificationListenerin interfaceNotificationBroadcaster- Overrides:
removeNotificationListenerin classNotificationBroadcasterSupport- Throws:
ListenerNotFoundException
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException - Specified by:
removeNotificationListenerin interfaceNotificationEmitter- Overrides:
removeNotificationListenerin classNotificationBroadcasterSupport- Throws:
ListenerNotFoundException
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException - Specified by:
addNotificationListenerin interfaceNotificationBroadcaster- Overrides:
addNotificationListenerin classNotificationBroadcasterSupport- Throws:
IllegalArgumentException
-
getNativeTransportQueueMaxItemAgeThreshold
public double getNativeTransportQueueMaxItemAgeThreshold()- Specified by:
getNativeTransportQueueMaxItemAgeThresholdin interfaceStorageServiceMBean
-
setNativeTransportQueueMaxItemAgeThreshold
public void setNativeTransportQueueMaxItemAgeThreshold(double threshold) - Specified by:
setNativeTransportQueueMaxItemAgeThresholdin interfaceStorageServiceMBean
-
getNativeTransportMinBackoffOnQueueOverloadInMillis
public long getNativeTransportMinBackoffOnQueueOverloadInMillis()- Specified by:
getNativeTransportMinBackoffOnQueueOverloadInMillisin interfaceStorageServiceMBean
-
getNativeTransportMaxBackoffOnQueueOverloadInMillis
public long getNativeTransportMaxBackoffOnQueueOverloadInMillis()- Specified by:
getNativeTransportMaxBackoffOnQueueOverloadInMillisin interfaceStorageServiceMBean
-
setNativeTransportBackoffOnQueueOverloadInMillis
public void setNativeTransportBackoffOnQueueOverloadInMillis(long min, long max) - Specified by:
setNativeTransportBackoffOnQueueOverloadInMillisin interfaceStorageServiceMBean
-
getNativeTransportThrowOnOverload
public boolean getNativeTransportThrowOnOverload()- Specified by:
getNativeTransportThrowOnOverloadin interfaceStorageServiceMBean
-
setNativeTransportThrowOnOverload
public void setNativeTransportThrowOnOverload(boolean throwOnOverload) - Specified by:
setNativeTransportThrowOnOverloadin interfaceStorageServiceMBean
-
getNativeTransportTimeoutMillis
public long getNativeTransportTimeoutMillis()- Specified by:
getNativeTransportTimeoutMillisin interfaceStorageServiceMBean
-
setNativeTransportTimeoutMillis
public void setNativeTransportTimeoutMillis(long deadlineMillis) - Specified by:
setNativeTransportTimeoutMillisin interfaceStorageServiceMBean
-
getEnforceNativeDeadlineForHints
public boolean getEnforceNativeDeadlineForHints()- Specified by:
getEnforceNativeDeadlineForHintsin interfaceStorageServiceMBean
-
setEnforceNativeDeadlineForHints
public void setEnforceNativeDeadlineForHints(boolean value) - Specified by:
setEnforceNativeDeadlineForHintsin interfaceStorageServiceMBean
-
getPrioritizeSAIOverLegacyIndex
public boolean getPrioritizeSAIOverLegacyIndex()- Specified by:
getPrioritizeSAIOverLegacyIndexin interfaceStorageServiceMBean
-
setPrioritizeSAIOverLegacyIndex
public void setPrioritizeSAIOverLegacyIndex(boolean value) - Specified by:
setPrioritizeSAIOverLegacyIndexin interfaceStorageServiceMBean
-
getForceOptimizedIndexStatusFormat
public boolean getForceOptimizedIndexStatusFormat()- Specified by:
getForceOptimizedIndexStatusFormatin interfaceStorageServiceMBean
-
setForceOptimizedIndexStatusFormat
public void setForceOptimizedIndexStatusFormat(boolean value) - Specified by:
setForceOptimizedIndexStatusFormatin interfaceStorageServiceMBean
-
setPaxosRepairRaceWait
public void setPaxosRepairRaceWait(boolean paxosRepairRaceWait) - Specified by:
setPaxosRepairRaceWaitin interfaceStorageServiceMBean
-
getPaxosRepairRaceWait
public boolean getPaxosRepairRaceWait()- Specified by:
getPaxosRepairRaceWaitin interfaceStorageServiceMBean
-
getTablesForKeyspace
Description copied from interface:StorageServiceMBeanGets the names of all tables for the given keyspace- Specified by:
getTablesForKeyspacein interfaceStorageServiceMBean
-
mutateSSTableRepairedState
public List<String> mutateSSTableRepairedState(boolean repaired, boolean preview, String keyspace, List<String> tableNames) Description copied from interface:StorageServiceMBeanMutates the repaired state of all SSTables for the given SSTables- Specified by:
mutateSSTableRepairedStatein interfaceStorageServiceMBean
-