Package org.apache.cassandra.tools
Class NodeProbe
java.lang.Object
org.apache.cassandra.tools.NodeProbe
- All Implemented Interfaces:
AutoCloseable
JMX client operations for Cassandra.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuditLogManagerMBeanprotected ActiveRepairServiceMBeanprotected AutoRepairServiceMBeanprotected BatchlogManagerMBeanprotected CacheServiceMBeanprotected CIDRFilteringMetricsTableMBeanprotected CIDRGroupsMappingManagerMBeanprotected CompactionManagerMBeanprotected CIDRPermissionsManagerMBeanprotected FailureDetectorMBeanprotected GCInspectorMXBeanprotected GossiperMBeanprotected GuardrailsMBeanprotected HintsServiceMBeanprotected JMXConnectorprotected MBeanServerConnectionprotected MemoryMXBeanprotected MessagingServiceMBeanprotected NetworkPermissionsCacheMBeanprotected Outputprotected PermissionsCacheMBeanprotected RolesCacheMBeanprotected RuntimeMXBeanprotected StorageProxyMBeanprotected StorageServiceMBeanprotected StreamManagerMBean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a NodeProbe using the specified JMX host and default port.Creates a NodeProbe using the specified JMX host and port.Creates a NodeProbe using the specified JMX host, port, username, and password. -
Method Summary
Modifier and TypeMethodDescriptionvoidassassinateEndpoint(String address) voidvoidclearSnapshot(String tag, String... keyspaces) Deprecated.See CASSANDRA-16860voidRemove all the existing snapshots of given tag for provided keyspaces.voidclose()protected voidconnect()Create a connection to the JMX agent and setup the M[X]Bean proxies.voiddecommission(boolean force) describeRing(String keyspaceName, boolean withPort) voidvoiddisableAutoCompaction(String ks, String... tables) voidvoidvoidvoiddrain()voiddropCidrGroup(String cidrGroupName) effectiveOwnership(String keyspace) effectiveOwnershipWithPort(String keyspace) voidenableAuditLog(String loggerName, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers) voidenableAuditLog(String loggerName, Map<String, String> parameters, String includedKeyspaces, String excludedKeyspaces, String includedCategories, String excludedCategories, String includedUsers, String excludedUsers) voidenableAuditLog(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... tableNames) voidenableFullQueryLogger(String path, String rollCycle, Boolean blocking, int maxQueueWeight, long maxLogSize, String archiveCommand, int maxArchiveRetries) voidvoidvoidvoidfailed()voidforceCompactionKeysIgnoringGcGrace(String keyspaceName, String tableName, String... partitionKeysIgnoreGcGrace) intforceKeyspaceCleanup(int jobs, String keyspaceName, String... tables) voidforceKeyspaceCleanup(PrintStream out, int jobs, String keyspaceName, String... tableNames) voidforceKeyspaceCompaction(boolean splitOutput, String keyspaceName, String... tableNames) voidforceKeyspaceCompactionForPartitionKey(String keyspaceName, String partitionKey, String... tableNames) voidforceKeyspaceCompactionForTokenRange(String keyspaceName, String startToken, String endToken, String... tableNames) Forces major compaction of specified token range in a single keyspace.voidforceKeyspaceFlush(String keyspaceName, String... tableNames) voidvoidforceUserDefinedCompaction(String datafiles) voidgarbageCollect(PrintStream out, String tombstoneOption, int jobs, String keyspaceName, String... tableNames) intgarbageCollect(String tombstoneOption, int jobs, String keyspaceName, String... tableNames) double[]getAuthCacheMBean(String cacheName) getAutoCompactionDisabled(String ks, String... tableNames) getAutoRepairOnGoingRepairHostIds(String repairType) getAutoRepairTablesForKeyspace(String keyspace) intgetBufferPoolMetric(String poolType, String metricName) Retrieve buffer pool metrics based on the buffer pool typegetCacheMetric(String cacheType, String metricName) Retrieve cache metrics based on the cache type (KeyCache, RowCache, or CounterCache)getCfsProxy(String ks, String cf) getCidrFilteringMetric(String metricName) getCidrGroupsOfIp(String ipStr) getClientMetric(String metricName) Retrieve Proxy metricsgetColumnFamilyMetric(String ks, String cf, String metricName) Retrieve ColumnFamily metricsintgetCompactionMetric(String metricName) Retrieve Proxy metricsintDeprecated.See CASSANDRA-17225longdoubleintintintintdoublegetDroppableTombstoneRatio(String keyspace, String table) getEndpoints(String keyspace, String cf, String key) getEndpointsWithPort(String keyspace, String cf, String key) doubledoubleintgetFailureDetectorPhilValues(boolean withPort) getGossipInfo(boolean withPort) getGossipInfo(boolean withPort, boolean resolveIp) getHostIdMap(boolean withPort) intDeprecated.See CASSANDRA-17225doubledoublegetJoiningNodes(boolean withPort) getKeyspaceReplicationInfo(String keyspaceName) getLeavingNodes(boolean withPort) getLiveNodes(boolean withPort) getLoadMap(boolean withPort) intgetMaximumPoolSizes(List<String> stageNames) getMovingNodes(boolean withPort) intgetPartitionSample(String ks, int capacity, int durationMillis, int count, List<String> samplers) getPartitionSample(String ks, String cf, int capacity, int durationMillis, int count, List<String> samplers) longgetPid()getProxyMetric(String scope) Retrieve Proxy metricsgetRack()longlonglonggetRemovalStatus(boolean withPort) getSaiMetric(String ks, String cf, String metricName) getSeeds()Deprecated.See CASSANDRA-16789getSnapshotDetails(Map<String, String> options) longgetSSTables(String keyspace, String cf, String key, boolean hexFormat) getSSTablesWithLevel(String keyspace, String cf, String key, boolean hexFormat) longgetStorageMetric(String metricName) Retrieve Proxy metricsintDeprecated.See CASSANDRA-17225doubledoublegetThreadPoolMetric(String pathName, String poolName, String metricName) Retrieve threadpool paths and names for threadpools with metrics.longgetTimeout(String type) getTokenToEndpointMap(boolean withPort) doublegetUnreachableNodes(boolean withPort) longgetViewBuildStatuses(String keyspace, String view) booleanhandleScheduledSampling(String ks, String table, int capacity, int count, int durationMillis, int intervalMillis, List<String> samplers, boolean shouldStop) importNewSSTables(String ksName, String cfName, Set<String> srcPaths, boolean resetLevel, boolean clearRepaired, boolean verifySSTables, boolean verifyTokens, boolean invalidateCaches, boolean extendedVerify, boolean copyData, boolean failOnMissingIndex, boolean validateIndexChecksum) booleaninvalidateCidrPermissionsCache(String roleName) voidvoidvoidinvalidateCredentialsCache(String roleName) voidvoidinvalidateJmxPermissionsCache(String roleName) voidvoidvoidinvalidateNetworkPermissionsCache(String roleName) voidvoidinvalidatePermissionsCache(String roleName, String resourceName) voidvoidinvalidateRolesCache(String roleName) voidbooleanbooleanbooleanbooleanbooleanisFailed()booleanbooleanbooleanbooleanbooleanisJoined()booleanisLeveledCompaction(String keyspace, String cf) booleanbooleanvoidjoinRing()listCidrsOfCidrGroup(String cidrGroup) voidloadNewSSTables(String ksName, String cfName) Deprecated.See CASSANDRA-6719Double[]Double[]voidmutateSSTableRepairedState(boolean repair, boolean preview, String keyspace, List<String> tables) output()voidvoidprintSet(PrintStream out, String colName, Set<String> values) voidrebuild(String sourceDc, String keyspace, String tokens, String specificSources, boolean excludeLocalDatacenterNodes) voidrebuildIndex(String ksName, String cfName, String... idxNames) voidrecompressSSTables(PrintStream out, String keyspaceName, int jobs, String... tableNames) intrecompressSSTables(String keyspaceName, int jobs, String... tableNames) voidvoidvoidvoidvoidvoidrelocateSSTables(int jobs, String keyspace, String[] cfnames) voidremoveNode(String token) voidrepairAsync(PrintStream out, String keyspace, Map<String, String> options) voidvoidvoidvoidvoidintscrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, int jobs, String keyspaceName, String... tables) voidscrub(PrintStream out, boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, int jobs, String keyspaceName, String... tables) voidsetAutoRepairAllowParallelReplicaRepair(String repairType, boolean enabled) voidsetAutoRepairAllowParallelReplicaRepairAcrossSchedules(String repairType, boolean enabled) voidsetAutoRepairEnabled(String repairType, boolean enabled) voidsetAutoRepairForceRepairForHosts(String repairType, String commaSeparatedHostSet) voidvoidsetAutoRepairIgnoreDCs(String repairType, Set<String> ignoreDCs) voidsetAutoRepairMaterializedViewRepairEnabled(String repairType, boolean enabled) voidsetAutoRepairMaxRetriesCount(String repairType, int retries) voidsetAutoRepairMinInterval(String repairType, String minRepairInterval) voidsetAutoRepairMinRepairTaskDuration(String duration) voidsetAutoRepairParallelRepairCount(String repairType, int count) voidsetAutoRepairParallelRepairPercentage(String repairType, int percentage) voidsetAutoRepairPrimaryTokenRangeOnly(String repairType, boolean primaryTokenRangeOnly) voidsetAutoRepairPriorityForHosts(String repairType, String commaSeparatedHostSet) voidsetAutoRepairRepairByKeyspace(String repairType, boolean enabled) voidsetAutoRepairRetryBackoff(String repairType, String interval) voidsetAutoRepairSessionTimeout(String repairType, String timeout) voidsetAutoRepairSSTableCountHigherThreshold(String repairType, int ssTableHigherThreshold) voidsetAutoRepairTableMaxRepairTime(String repairType, String autoRepairTableMaxRepairTime) voidsetAutoRepairThreads(String repairType, int repairThreads) voidsetAutoRepairTokenRangeSplitterParameter(String repairType, String key, String value) voidsetBatchlogReplayThrottle(int value) voidsetCacheCapacities(int keyCacheCapacity, int rowCacheCapacity, int counterCacheCapacity) voidsetCacheKeysToSave(int keyCacheKeysToSave, int rowCacheKeysToSave, int counterCacheKeysToSave) voidsetColumnIndexSize(int columnIndexSizeInKiB) voidsetCompactionThreshold(String ks, String cf, int minimumCompactionThreshold, int maximumCompactionThreshold) Set the compaction thresholdvoidsetCompactionThroughput(int value) voidsetConcurrency(String stageName, int coreThreads, int maxConcurrency) voidsetConcurrentCompactors(int value) voidsetConcurrentViewBuilders(int value) voidsetDefaultKeyspaceReplicationFactor(int value) voidsetEntireSSTableInterDCStreamThroughput(int value) voidsetEntireSSTableStreamThroughput(int value) voidsetHintedHandoffThrottleInKB(int throttleInKB) voidsetIncrementalBackupsEnabled(boolean enabled) voidsetInterDCStreamThroughput(int value) voidsetInterDCStreamThroughputMiB(int value) voidsetLoggingLevel(String classQualifier, String level) voidsetMaxHintWindow(int value) voidsetMixedMajorVersionRepairEnabled(boolean enabled) voidvoidsetSnapshotLinksPerSecond(long throttle) voidsetStreamThroughput(int value) voidsetStreamThroughputMiB(int value) voidsetTimeout(String type, long value) voidsetTraceProbability(double value) voidvoidvoidvoidvoidvoidvoidvoidvoidstopNativeTransport(boolean force) voidTake a snapshot of all column family from different keyspaces.voidTake a snapshot of all the keyspaces, optionally specifying only a specific column family.longvoidvoidvoidtruncateHints(String host) voidupdateCidrGroup(String cidrGroupName, List<String> cidrs) voidupgradeSSTables(PrintStream out, String keyspaceName, boolean excludeCurrentVersion, long maxSSTableTimestamp, int jobs, String... tableNames) intupgradeSSTables(String keyspaceName, boolean excludeCurrentVersion, long maxSSTableTimestamp, int jobs, String... tableNames) intverify(boolean extendedVerify, boolean checkVersion, boolean diskFailurePolicy, boolean mutateRepairStatus, boolean checkOwnsTokens, boolean quick, String keyspaceName, String... tableNames) voidverify(PrintStream out, boolean extendedVerify, boolean checkVersion, boolean diskFailurePolicy, boolean mutateRepairStatus, boolean checkOwnsTokens, boolean quick, String keyspaceName, String... tableNames)
-
Field Details
-
jmxc
-
mbeanServerConn
-
compactionProxy
-
ssProxy
-
gossProxy
-
memProxy
-
gcProxy
-
runtimeProxy
-
streamProxy
-
msProxy
-
fdProxy
-
cacheService
-
spProxy
-
hsProxy
-
bmProxy
-
arsProxy
-
almProxy
-
ccProxy
-
jpcProxy
-
npcProxy
-
cpbProxy
-
cmbProxy
-
pcProxy
-
rcProxy
-
grProxy
-
autoRepairProxy
-
output
-
cfmProxy
-
-
Constructor Details
-
NodeProbe
Creates a NodeProbe using the specified JMX host, port, username, and password.- Parameters:
host- hostname or IP address of the JMX agentport- TCP port of the remote JMX agent- Throws:
IOException- on connection failures
-
NodeProbe
Creates a NodeProbe using the specified JMX host and port.- Parameters:
host- hostname or IP address of the JMX agentport- TCP port of the remote JMX agent- Throws:
IOException- on connection failures
-
NodeProbe
Creates a NodeProbe using the specified JMX host and default port.- Parameters:
host- hostname or IP address of the JMX agent- Throws:
IOException- on connection failures
-
NodeProbe
protected NodeProbe()
-
-
Method Details
-
connect
Create a connection to the JMX agent and setup the M[X]Bean proxies.- Throws:
IOException- on connection failures
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
setOutput
-
output
-
forceKeyspaceCleanup
public int forceKeyspaceCleanup(int jobs, String keyspaceName, String... tables) throws IOException, ExecutionException, InterruptedException -
scrub
public int scrub(boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, int jobs, String keyspaceName, String... tables) throws IOException, ExecutionException, InterruptedException -
verify
public int verify(boolean extendedVerify, boolean checkVersion, boolean diskFailurePolicy, boolean mutateRepairStatus, boolean checkOwnsTokens, boolean quick, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException -
upgradeSSTables
public int upgradeSSTables(String keyspaceName, boolean excludeCurrentVersion, long maxSSTableTimestamp, int jobs, String... tableNames) throws IOException, ExecutionException, InterruptedException -
garbageCollect
public int garbageCollect(String tombstoneOption, int jobs, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException -
recompressSSTables
public int recompressSSTables(String keyspaceName, int jobs, String... tableNames) throws IOException, ExecutionException, InterruptedException -
forceKeyspaceCleanup
public void forceKeyspaceCleanup(PrintStream out, int jobs, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException -
scrub
public void scrub(PrintStream out, boolean disableSnapshot, boolean skipCorrupted, boolean checkData, boolean reinsertOverflowedTTL, int jobs, String keyspaceName, String... tables) throws IOException, ExecutionException, InterruptedException -
verify
public void verify(PrintStream out, boolean extendedVerify, boolean checkVersion, boolean diskFailurePolicy, boolean mutateRepairStatus, boolean checkOwnsTokens, boolean quick, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException -
recompressSSTables
public void recompressSSTables(PrintStream out, String keyspaceName, int jobs, String... tableNames) throws IOException, ExecutionException, InterruptedException -
upgradeSSTables
public void upgradeSSTables(PrintStream out, String keyspaceName, boolean excludeCurrentVersion, long maxSSTableTimestamp, int jobs, String... tableNames) throws IOException, ExecutionException, InterruptedException -
garbageCollect
public void garbageCollect(PrintStream out, String tombstoneOption, int jobs, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException -
forceUserDefinedCompaction
public void forceUserDefinedCompaction(String datafiles) throws IOException, ExecutionException, InterruptedException -
forceKeyspaceCompaction
public void forceKeyspaceCompaction(boolean splitOutput, String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException -
relocateSSTables
public void relocateSSTables(int jobs, String keyspace, String[] cfnames) throws IOException, ExecutionException, InterruptedException -
forceKeyspaceCompactionForTokenRange
public void forceKeyspaceCompactionForTokenRange(String keyspaceName, String startToken, String endToken, String... tableNames) throws IOException, ExecutionException, InterruptedException Forces major compaction of specified token range in a single keyspace.- Parameters:
keyspaceName- the name of the keyspace to be compactedstartToken- the token at which the compaction range starts (inclusive)endToken- the token at which compaction range ends (inclusive)tableNames- the names of the tables to be compacted- Throws:
IOExceptionExecutionExceptionInterruptedException
-
forceKeyspaceCompactionForPartitionKey
public void forceKeyspaceCompactionForPartitionKey(String keyspaceName, String partitionKey, String... tableNames) throws InterruptedException, ExecutionException, IOException -
forceCompactionKeysIgnoringGcGrace
public void forceCompactionKeysIgnoringGcGrace(String keyspaceName, String tableName, String... partitionKeysIgnoreGcGrace) throws IOException, ExecutionException, InterruptedException -
forceKeyspaceFlush
public void forceKeyspaceFlush(String keyspaceName, String... tableNames) throws IOException, ExecutionException, InterruptedException -
getKeyspaceReplicationInfo
-
repairAsync
public void repairAsync(PrintStream out, String keyspace, Map<String, String> options) throws IOException- Throws:
IOException
-
handleScheduledSampling
public boolean handleScheduledSampling(String ks, String table, int capacity, int count, int durationMillis, int intervalMillis, List<String> samplers, boolean shouldStop) throws OpenDataException - Throws:
OpenDataException
-
getSampleTasks
-
getPartitionSample
public Map<String,List<CompositeData>> getPartitionSample(String ks, int capacity, int durationMillis, int count, List<String> samplers) throws OpenDataException - Throws:
OpenDataException
-
getPartitionSample
public Map<String,List<CompositeData>> getPartitionSample(String ks, String cf, int capacity, int durationMillis, int count, List<String> samplers) throws OpenDataException - Throws:
OpenDataException
-
getDroppableTombstoneRatio
-
invalidateCounterCache
public void invalidateCounterCache() -
invalidateCredentialsCache
public void invalidateCredentialsCache() -
invalidateCredentialsCache
-
invalidateJmxPermissionsCache
public void invalidateJmxPermissionsCache() -
invalidateJmxPermissionsCache
-
invalidateKeyCache
public void invalidateKeyCache() -
invalidateNetworkPermissionsCache
public void invalidateNetworkPermissionsCache() -
invalidateNetworkPermissionsCache
-
invalidateCidrPermissionsCache
-
reloadCidrGroupsCache
public void reloadCidrGroupsCache() -
listAvailableCidrGroups
-
listCidrsOfCidrGroup
-
updateCidrGroup
-
dropCidrGroup
-
getCidrGroupsOfIp
-
invalidatePermissionsCache
public void invalidatePermissionsCache() -
invalidatePermissionsCache
-
invalidateRolesCache
public void invalidateRolesCache() -
invalidateRolesCache
-
invalidateRowCache
public void invalidateRowCache() -
getAuthCacheMBean
-
drain
-
getTokenToEndpointMap
-
getLiveNodes
-
getJoiningNodes
-
getLeavingNodes
-
getMovingNodes
-
getUnreachableNodes
-
getLoadMap
-
getOwnership
-
getOwnershipWithPort
-
effectiveOwnership
- Throws:
IllegalStateException
-
effectiveOwnershipWithPort
- Throws:
IllegalStateException
-
getMbeanServerConn
-
getCacheServiceMBean
-
getAndResetGCStats
public double[] getAndResetGCStats() -
getColumnFamilyStoreMBeanProxies
-
getCompactionManagerProxy
-
getTokens
-
getTokens
-
getHostIdToEndpointWithPort
-
getLocalHostId
-
getHostIdMap
-
getLoadString
-
getUncompressedLoadString
-
getReleaseVersion
-
getGitSHA
-
getCurrentGenerationNumber
public int getCurrentGenerationNumber() -
getUptime
public long getUptime() -
getHeapMemoryUsage
-
getSnapshotLinksPerSecond
public long getSnapshotLinksPerSecond() -
setSnapshotLinksPerSecond
public void setSnapshotLinksPerSecond(long throttle) -
takeSnapshot
public void takeSnapshot(String snapshotName, String table, Map<String, String> options, String... keyspaces) throws IOExceptionTake a snapshot of all the keyspaces, optionally specifying only a specific column family.- Parameters:
snapshotName- the name of the snapshot.table- the table to snapshot or all on nulloptions- Options (skipFlush for now)keyspaces- the keyspaces to snapshot- Throws:
IOException
-
takeMultipleTableSnapshot
public void takeMultipleTableSnapshot(String snapshotName, Map<String, String> options, String... tableList) throws IOExceptionTake a snapshot of all column family from different keyspaces.- Parameters:
snapshotName- the name of the snapshot.options- Options (skipFlush for now)tableList- list of columnfamily from different keyspace in the form of ks1.cf1 ks2.cf2- Throws:
IOException
-
clearSnapshot
@Deprecated(since="5.0") public void clearSnapshot(String tag, String... keyspaces) throws IOException Deprecated.See CASSANDRA-16860- Throws:
IOException
-
clearSnapshot
public void clearSnapshot(Map<String, Object> options, String tag, String... keyspaces) throws IOExceptionRemove all the existing snapshots of given tag for provided keyspaces. When no keyspaces are specified, take all keyspaces into account. When tag is not specified (null or empty string), take all tags into account.- Parameters:
options- options to supply for snapshot clearingtag- tag of snapshot to clearkeyspaces- keyspaces to clear snapshots for- Throws:
IOException
-
getSnapshotDetails
-
getSnapshotDetails
Deprecated.See CASSANDRA-16789 -
trueSnapshotsSize
public long trueSnapshotsSize() -
isJoined
public boolean isJoined() -
isDrained
public boolean isDrained() -
isDraining
public boolean isDraining() -
isBootstrapMode
public boolean isBootstrapMode() -
joinRing
- Throws:
IOException
-
decommission
- Throws:
InterruptedException
-
move
- Throws:
IOException
-
removeNode
-
getRemovalStatus
-
forceRemoveCompletion
public void forceRemoveCompletion() -
assassinateEndpoint
- Throws:
UnknownHostException
-
reloadSeeds
-
getSeeds
-
setCompactionThreshold
public void setCompactionThreshold(String ks, String cf, int minimumCompactionThreshold, int maximumCompactionThreshold) Set the compaction threshold- Parameters:
minimumCompactionThreshold- minimum compaction thresholdmaximumCompactionThreshold- maximum compaction threshold
-
disableAutoCompaction
- Throws:
IOException
-
enableAutoCompaction
- Throws:
IOException
-
getAutoCompactionDisabled
public Map<String,Boolean> getAutoCompactionDisabled(String ks, String... tableNames) throws IOException - Throws:
IOException
-
setIncrementalBackupsEnabled
public void setIncrementalBackupsEnabled(boolean enabled) -
isIncrementalBackupsEnabled
public boolean isIncrementalBackupsEnabled() -
setCacheCapacities
public void setCacheCapacities(int keyCacheCapacity, int rowCacheCapacity, int counterCacheCapacity) -
setCacheKeysToSave
public void setCacheKeysToSave(int keyCacheKeysToSave, int rowCacheKeysToSave, int counterCacheKeysToSave) -
setHintedHandoffThrottleInKB
public void setHintedHandoffThrottleInKB(int throttleInKB) -
getEndpointsWithPort
-
getEndpoints
-
getSSTables
-
getSSTablesWithLevel
-
isLeveledCompaction
-
getStreamStatus
-
getOperationMode
-
isStarting
public boolean isStarting() -
truncate
-
getEndpointSnitchInfoProxy
-
getDynamicEndpointSnitchInfoProxy
-
getCfsProxy
-
getSpProxy
-
getStorageService
-
getGossProxy
-
getEndpoint
-
getDataCenter
-
getRack
-
getKeyspaces
-
getNonSystemKeyspaces
-
getNonLocalStrategyKeyspaces
-
getClusterName
-
getPartitioner
-
disableHintedHandoff
public void disableHintedHandoff() -
enableHintedHandoff
public void enableHintedHandoff() -
isHandoffEnabled
public boolean isHandoffEnabled() -
enableHintsForDC
-
disableHintsForDC
-
getHintedHandoffDisabledDCs
-
getViewBuildStatuses
-
pauseHintsDelivery
public void pauseHintsDelivery() -
resumeHintsDelivery
public void resumeHintsDelivery() -
truncateHints
-
truncateHints
public void truncateHints() -
listPendingHints
-
refreshSizeEstimates
public void refreshSizeEstimates() -
stopNativeTransport
public void stopNativeTransport(boolean force) -
startNativeTransport
public void startNativeTransport() -
isNativeTransportRunning
public boolean isNativeTransportRunning() -
stopGossiping
public void stopGossiping() -
startGossiping
public void startGossiping() -
isGossipRunning
public boolean isGossipRunning() -
stopCassandraDaemon
public void stopCassandraDaemon() -
isInitialized
public boolean isInitialized() -
setColumnIndexSize
public void setColumnIndexSize(int columnIndexSizeInKiB) -
getColumnIndexSizeInKB
public int getColumnIndexSizeInKB() -
setCompactionThroughput
public void setCompactionThroughput(int value) -
getCompactionThroughput
Deprecated.See CASSANDRA-17225 -
getCompactionThroughputMebibytesAsDouble
public double getCompactionThroughputMebibytesAsDouble() -
getCompactionThroughputBytes
public long getCompactionThroughputBytes() -
setBatchlogReplayThrottle
public void setBatchlogReplayThrottle(int value) -
getBatchlogReplayThrottle
public int getBatchlogReplayThrottle() -
setConcurrentCompactors
public void setConcurrentCompactors(int value) -
getConcurrentCompactors
public int getConcurrentCompactors() -
setConcurrentViewBuilders
public void setConcurrentViewBuilders(int value) -
getConcurrentViewBuilders
public int getConcurrentViewBuilders() -
setMaxHintWindow
public void setMaxHintWindow(int value) -
getMaxHintWindow
public int getMaxHintWindow() -
getTimeout
-
getStreamThroughput
Deprecated.See CASSANDRA-17225 -
getStreamThroughputAsDouble
public double getStreamThroughputAsDouble() -
getInterDCStreamThroughput
Deprecated.See CASSANDRA-17225 -
getInterDCStreamThroughputAsDouble
public double getInterDCStreamThroughputAsDouble() -
getStreamThroughputMibAsDouble
public double getStreamThroughputMibAsDouble() -
getInterDCStreamThroughputMibAsDouble
public double getInterDCStreamThroughputMibAsDouble() -
getEntireSSTableStreamThroughput
public double getEntireSSTableStreamThroughput() -
getEntireSSTableInterDCStreamThroughput
public double getEntireSSTableInterDCStreamThroughput() -
getTraceProbability
public double getTraceProbability() -
getExceptionCount
public int getExceptionCount() -
getDroppedMessages
-
loadNewSSTables
Deprecated.See CASSANDRA-6719 -
importNewSSTables
public List<String> importNewSSTables(String ksName, String cfName, Set<String> srcPaths, boolean resetLevel, boolean clearRepaired, boolean verifySSTables, boolean verifyTokens, boolean invalidateCaches, boolean extendedVerify, boolean copyData, boolean failOnMissingIndex, boolean validateIndexChecksum) -
rebuildIndex
-
getSimpleStatesWithPort
-
getGossipInfo
-
getGossipInfo
-
stop
-
setTimeout
-
stopById
-
setStreamThroughput
public void setStreamThroughput(int value) -
setStreamThroughputMiB
public void setStreamThroughputMiB(int value) -
setInterDCStreamThroughput
public void setInterDCStreamThroughput(int value) -
setInterDCStreamThroughputMiB
public void setInterDCStreamThroughputMiB(int value) -
setEntireSSTableStreamThroughput
public void setEntireSSTableStreamThroughput(int value) -
setEntireSSTableInterDCStreamThroughput
public void setEntireSSTableInterDCStreamThroughput(int value) -
setTraceProbability
public void setTraceProbability(double value) -
getSchemaVersion
-
describeRing
- Throws:
IOException
-
rebuild
-
sampleKeyRange
-
resetLocalSchema
- Throws:
IOException
-
reloadLocalSchema
public void reloadLocalSchema() -
isFailed
public boolean isFailed() -
failed
public void failed() -
getReadRepairAttempted
public long getReadRepairAttempted() -
getReadRepairRepairedBlocking
public long getReadRepairRepairedBlocking() -
getReadRepairRepairedBackground
public long getReadRepairRepairedBackground() -
getOutOfRangeOpCounts
-
compareGossipAndTokenMetadata
-
getCacheMetric
Retrieve cache metrics based on the cache type (KeyCache, RowCache, or CounterCache)- Parameters:
cacheType- KeyCach, RowCache, or CounterCachemetricName- Capacity, Entries, HitRate, Size, Requests or Hits.
-
getBufferPoolMetric
Retrieve buffer pool metrics based on the buffer pool type- Parameters:
poolType- networking chunk-cachemetricName- UsedSize Size- Returns:
-
getThreadPoolMetric
-
getSaiMetric
-
getThreadPools
Retrieve threadpool paths and names for threadpools with metrics.- Returns:
- Multimap from path (internal, request, etc.) to name
-
getNumberOfTables
public int getNumberOfTables() -
getColumnFamilyMetric
Retrieve ColumnFamily metrics- Parameters:
ks- Keyspace for which stats are to be displayed or null for the global valuecf- ColumnFamily for which stats are to be displayed or null for the keyspace value (if ks supplied)metricName- ViewTableMetrics.
-
getProxyMetric
Retrieve Proxy metrics- Parameters:
scope- RangeSlice, Read or Write
-
getMessagingQueueWaitMetrics
-
getCompactionMetric
Retrieve Proxy metrics- Parameters:
metricName- BytesCompacted, CompactionsAborted, CompactionsReduced, SSTablesDroppedFromCompaction, CompletedTasks, PendingTasks, PendingTasksByTableName or TotalCompactionsCompleted.
-
getClientMetric
Retrieve Proxy metrics- Parameters:
metricName-
-
getCidrFilteringMetric
-
getCountsMetricsFromVtable
-
getLatenciesMetricsFromVtable
-
getStorageMetric
Retrieve Proxy metrics- Parameters:
metricName- Exceptions, Load, TotalHints or TotalHintsInProgress.
-
metricPercentilesAsArray
-
metricPercentilesAsArray
-
getCompactionHistory
-
reloadTriggers
public void reloadTriggers() -
setLoggingLevel
-
getLoggingLevels
-
getPid
public long getPid() -
resumeBootstrap
- Throws:
IOException
-
getMaximumPoolSizes
-
setConcurrency
-
replayBatchlog
- Throws:
IOException
-
getFailureDetectorPhilValues
-
getRepairServiceProxy
-
reloadSslCerts
- Throws:
IOException
-
clearConnectionHistory
public void clearConnectionHistory() -
disableAuditLog
public void disableAuditLog() -
enableAuditLog
-
enableAuditLog
-
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) -
enableOldProtocolVersions
public void enableOldProtocolVersions() -
disableOldProtocolVersions
public void disableOldProtocolVersions() -
getMessagingServiceProxy
-
enableFullQueryLogger
-
stopFullQueryLogger
public void stopFullQueryLogger() -
resetFullQueryLogger
public void resetFullQueryLogger() -
getFullQueryLoggerOptions
-
getAuditLogOptions
-
setDefaultKeyspaceReplicationFactor
public void setDefaultKeyspaceReplicationFactor(int value) -
getDefaultKeyspaceReplicationFactor
public int getDefaultKeyspaceReplicationFactor() -
printSet
-
getGuardrailsMBean
-
isAutoRepairDisabled
public boolean isAutoRepairDisabled() -
autoRepairConfiguration
-
setAutoRepairTokenRangeSplitterParameter
-
setAutoRepairEnabled
-
setAutoRepairThreads
-
setAutoRepairPriorityForHosts
-
setAutoRepairForceRepairForHosts
-
setAutoRepairMinInterval
-
setAutoRepairHistoryClearDeleteHostsBufferDuration
-
startAutoRepairScheduler
public void startAutoRepairScheduler() -
setAutoRepairMinRepairTaskDuration
-
setAutoRepairSSTableCountHigherThreshold
-
setAutoRepairTableMaxRepairTime
-
setAutoRepairIgnoreDCs
-
setAutoRepairParallelRepairPercentage
-
setAutoRepairParallelRepairCount
-
setAutoRepairAllowParallelReplicaRepair
-
setAutoRepairAllowParallelReplicaRepairAcrossSchedules
public void setAutoRepairAllowParallelReplicaRepairAcrossSchedules(String repairType, boolean enabled) -
setAutoRepairPrimaryTokenRangeOnly
-
setAutoRepairMaterializedViewRepairEnabled
-
mutateSSTableRepairedState
-
getAutoRepairTablesForKeyspace
-
setAutoRepairSessionTimeout
-
getAutoRepairOnGoingRepairHostIds
-
setAutoRepairRepairByKeyspace
-
setAutoRepairMaxRetriesCount
-
setAutoRepairRetryBackoff
-
setMixedMajorVersionRepairEnabled
public void setMixedMajorVersionRepairEnabled(boolean enabled)
-