public class NodeProbe
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
MessagingServiceMBean |
msProxy |
Constructor and Description |
---|
NodeProbe(java.lang.String host)
Creates a NodeProbe using the specified JMX host and default port.
|
NodeProbe(java.lang.String host,
int port)
Creates a NodeProbe using the specified JMX host and port.
|
NodeProbe(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Creates a NodeProbe using the specified JMX host, port, username, and password.
|
Modifier and Type | Method and Description |
---|---|
void |
clearSnapshot(java.lang.String tag,
java.lang.String... keyspaces)
Remove all the existing snapshots.
|
void |
close() |
void |
decommission() |
java.util.List<java.lang.String> |
describeRing(java.lang.String keyspaceName) |
void |
disableHintedHandoff() |
void |
drain() |
java.util.Map<java.net.InetAddress,java.lang.Float> |
effectiveOwnership(java.lang.String keyspace) |
void |
enableHintedHandoff() |
void |
forceRemoveCompletion() |
void |
forceRepairAsync(java.io.PrintStream out,
java.lang.String tableName,
boolean isSequential,
boolean isLocal,
boolean primaryRange,
java.lang.String... columnFamilies) |
void |
forceRepairRangeAsync(java.io.PrintStream out,
java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String startToken,
java.lang.String endToken,
java.lang.String... columnFamilies) |
void |
forceTableCleanup(java.lang.String tableName,
java.lang.String... columnFamilies) |
void |
forceTableCompaction(java.lang.String tableName,
java.lang.String... columnFamilies) |
void |
forceTableFlush(java.lang.String tableName,
java.lang.String... columnFamilies) |
void |
forceTableRepair(java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies) |
void |
forceTableRepairPrimaryRange(java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies) |
void |
forceTableRepairRange(java.lang.String beginToken,
java.lang.String endToken,
java.lang.String tableName,
boolean isSequential,
boolean isLocal,
java.lang.String... columnFamilies) |
CacheServiceMBean |
getCacheServiceMBean() |
ColumnFamilyStoreMBean |
getCfsProxy(java.lang.String ks,
java.lang.String cf) |
java.lang.String |
getClusterName() |
java.util.Iterator<java.util.Map.Entry<java.lang.String,ColumnFamilyStoreMBean>> |
getColumnFamilyStoreMBeanProxies() |
CompactionManagerMBean |
getCompactionManagerProxy() |
int |
getCompactionThroughput() |
int |
getCurrentGenerationNumber() |
java.lang.String |
getDataCenter() |
java.util.Map<java.lang.String,java.lang.Integer> |
getDroppedMessages() |
java.lang.String |
getEndpoint() |
java.util.List<java.net.InetAddress> |
getEndpoints(java.lang.String keyspace,
java.lang.String cf,
java.lang.String key) |
EndpointSnitchInfoMBean |
getEndpointSnitchInfoProxy() |
int |
getExceptionCount() |
java.util.List<java.lang.String> |
getFilesDestinedFor(java.net.InetAddress host) |
java.lang.String |
getGossipInfo() |
java.lang.management.MemoryUsage |
getHeapMemoryUsage() |
java.util.Map<java.lang.String,java.lang.String> |
getHostIdMap() |
java.util.List<java.lang.String> |
getIncomingFiles(java.net.InetAddress host) |
java.util.List<java.lang.String> |
getJoiningNodes() |
java.util.List<java.lang.String> |
getKeyspaces() |
java.util.List<java.lang.String> |
getLeavingNodes() |
java.util.List<java.lang.String> |
getLiveNodes() |
java.util.Map<java.lang.String,java.lang.String> |
getLoadMap() |
java.lang.String |
getLoadString() |
java.lang.String |
getLocalHostId() |
java.util.List<java.lang.String> |
getMovingNodes() |
java.lang.String |
getOperationMode() |
java.util.Map<java.net.InetAddress,java.lang.Float> |
getOwnership() |
java.lang.String |
getPartitioner() |
PBSPredictorMBean |
getPBSPredictorMBean() |
java.lang.String |
getRack() |
long |
getReadRepairAttempted() |
long |
getReadRepairRepairedBackground() |
long |
getReadRepairRepairedBlocking() |
java.lang.String |
getReleaseVersion() |
java.lang.String |
getRemovalStatus() |
java.lang.String |
getSchemaVersion() |
StorageProxyMBean |
getSpProxy() |
java.util.List<java.lang.String> |
getSSTables(java.lang.String keyspace,
java.lang.String cf,
java.lang.String key) |
java.util.Set<java.net.InetAddress> |
getStreamDestinations() |
java.util.Set<java.net.InetAddress> |
getStreamSources() |
int |
getStreamThroughput() |
java.util.Iterator<java.util.Map.Entry<java.lang.String,JMXEnabledThreadPoolExecutorMBean>> |
getThreadPoolMBeanProxies() |
java.util.List<java.lang.String> |
getTokens() |
java.util.List<java.lang.String> |
getTokens(java.lang.String endpoint) |
java.util.Map<java.lang.String,java.lang.String> |
getTokenToEndpointMap() |
java.util.List<java.lang.String> |
getUnreachableNodes() |
long |
getUptime() |
void |
invalidateKeyCache() |
void |
invalidateRowCache() |
boolean |
isFailed() |
boolean |
isInitialized() |
boolean |
isJoined() |
boolean |
isNativeTransportRunning() |
boolean |
isThriftServerRunning() |
void |
joinRing() |
void |
loadNewSSTables(java.lang.String ksName,
java.lang.String cfName) |
void |
move(java.lang.String newToken) |
void |
pauseHintsDelivery() |
void |
rebuild(java.lang.String sourceDc) |
void |
rebuildIndex(java.lang.String ksName,
java.lang.String cfName,
java.lang.String... idxNames) |
void |
removeNode(java.lang.String token) |
void |
resetLocalSchema() |
void |
resumeHintsDelivery() |
java.util.List<java.lang.String> |
sampleKeyRange() |
void |
scrub(boolean disableSnapshot,
java.lang.String tableName,
java.lang.String... columnFamilies) |
void |
setCacheCapacities(int keyCacheCapacity,
int rowCacheCapacity) |
void |
setCacheKeysToSave(int keyCacheKeysToSave,
int rowCacheKeysToSave) |
void |
setCompactionThreshold(java.lang.String ks,
java.lang.String cf,
int minimumCompactionThreshold,
int maximumCompactionThreshold)
Set the compaction threshold
|
void |
setCompactionThroughput(int value) |
void |
setIncrementalBackupsEnabled(boolean enabled) |
void |
setStreamThroughput(int value) |
void |
setTraceProbability(double value) |
void |
startGossiping() |
void |
startNativeTransport() |
void |
startThriftServer() |
void |
stop(java.lang.String string) |
void |
stopGossiping() |
void |
stopNativeTransport() |
void |
stopThriftServer() |
void |
takeSnapshot(java.lang.String snapshotName,
java.lang.String columnFamily,
java.lang.String... keyspaces)
Take a snapshot of all the tables, optionally specifying only a specific column family.
|
void |
truncate(java.lang.String tableName,
java.lang.String cfName) |
void |
upgradeSSTables(java.lang.String tableName,
boolean excludeCurrentVersion,
java.lang.String... columnFamilies) |
public MessagingServiceMBean msProxy
public NodeProbe(java.lang.String host, int port, java.lang.String username, java.lang.String password) throws java.io.IOException, java.lang.InterruptedException
host
- hostname or IP address of the JMX agentport
- TCP port of the remote JMX agentjava.io.IOException
- on connection failuresjava.lang.InterruptedException
public NodeProbe(java.lang.String host, int port) throws java.io.IOException, java.lang.InterruptedException
host
- hostname or IP address of the JMX agentport
- TCP port of the remote JMX agentjava.io.IOException
- on connection failuresjava.lang.InterruptedException
public NodeProbe(java.lang.String host) throws java.io.IOException, java.lang.InterruptedException
host
- hostname or IP address of the JMX agentjava.io.IOException
- on connection failuresjava.lang.InterruptedException
public void close() throws java.io.IOException
java.io.IOException
public void forceTableCleanup(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void scrub(boolean disableSnapshot, java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void upgradeSSTables(java.lang.String tableName, boolean excludeCurrentVersion, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void forceTableCompaction(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void forceTableFlush(java.lang.String tableName, java.lang.String... columnFamilies) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.io.IOException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public void forceTableRepair(java.lang.String tableName, boolean isSequential, boolean isLocal, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void forceRepairAsync(java.io.PrintStream out, java.lang.String tableName, boolean isSequential, boolean isLocal, boolean primaryRange, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void forceRepairRangeAsync(java.io.PrintStream out, java.lang.String tableName, boolean isSequential, boolean isLocal, java.lang.String startToken, java.lang.String endToken, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void forceTableRepairPrimaryRange(java.lang.String tableName, boolean isSequential, boolean isLocal, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void forceTableRepairRange(java.lang.String beginToken, java.lang.String endToken, java.lang.String tableName, boolean isSequential, boolean isLocal, java.lang.String... columnFamilies) throws java.io.IOException
java.io.IOException
public void invalidateKeyCache() throws java.io.IOException
java.io.IOException
public void invalidateRowCache() throws java.io.IOException
java.io.IOException
public void drain() throws java.io.IOException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.io.IOException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
public java.util.Map<java.lang.String,java.lang.String> getTokenToEndpointMap()
public java.util.List<java.lang.String> getLiveNodes()
public java.util.List<java.lang.String> getJoiningNodes()
public java.util.List<java.lang.String> getLeavingNodes()
public java.util.List<java.lang.String> getMovingNodes()
public java.util.List<java.lang.String> getUnreachableNodes()
public java.util.Map<java.lang.String,java.lang.String> getLoadMap()
public java.util.Map<java.net.InetAddress,java.lang.Float> getOwnership()
public java.util.Map<java.net.InetAddress,java.lang.Float> effectiveOwnership(java.lang.String keyspace) throws java.lang.IllegalStateException
java.lang.IllegalStateException
public CacheServiceMBean getCacheServiceMBean()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,ColumnFamilyStoreMBean>> getColumnFamilyStoreMBeanProxies()
public CompactionManagerMBean getCompactionManagerProxy()
public java.util.List<java.lang.String> getTokens()
public java.util.List<java.lang.String> getTokens(java.lang.String endpoint)
public java.lang.String getLocalHostId()
public java.util.Map<java.lang.String,java.lang.String> getHostIdMap()
public java.lang.String getLoadString()
public java.lang.String getReleaseVersion()
public int getCurrentGenerationNumber()
public long getUptime()
public java.lang.management.MemoryUsage getHeapMemoryUsage()
public void takeSnapshot(java.lang.String snapshotName, java.lang.String columnFamily, java.lang.String... keyspaces) throws java.io.IOException
snapshotName
- the name of the snapshot.columnFamily
- the column family to snapshot or all on nullkeyspaces
- the keyspaces to snapshotjava.io.IOException
public void clearSnapshot(java.lang.String tag, java.lang.String... keyspaces) throws java.io.IOException
java.io.IOException
public boolean isJoined()
public void joinRing() throws java.io.IOException
java.io.IOException
public void decommission() throws java.lang.InterruptedException
java.lang.InterruptedException
public void move(java.lang.String newToken) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void removeNode(java.lang.String token)
public java.lang.String getRemovalStatus()
public void forceRemoveCompletion()
public java.util.Iterator<java.util.Map.Entry<java.lang.String,JMXEnabledThreadPoolExecutorMBean>> getThreadPoolMBeanProxies()
public void setCompactionThreshold(java.lang.String ks, java.lang.String cf, int minimumCompactionThreshold, int maximumCompactionThreshold)
minimumCompactionThreshold
- minimum compaction thresholdmaximumCompactionThreshold
- maximum compaction thresholdpublic void setIncrementalBackupsEnabled(boolean enabled)
public void setCacheCapacities(int keyCacheCapacity, int rowCacheCapacity)
public void setCacheKeysToSave(int keyCacheKeysToSave, int rowCacheKeysToSave)
public java.util.List<java.net.InetAddress> getEndpoints(java.lang.String keyspace, java.lang.String cf, java.lang.String key)
public java.util.List<java.lang.String> getSSTables(java.lang.String keyspace, java.lang.String cf, java.lang.String key)
public java.util.Set<java.net.InetAddress> getStreamDestinations()
public java.util.List<java.lang.String> getFilesDestinedFor(java.net.InetAddress host) throws java.io.IOException
java.io.IOException
public java.util.Set<java.net.InetAddress> getStreamSources()
public java.util.List<java.lang.String> getIncomingFiles(java.net.InetAddress host) throws java.io.IOException
java.io.IOException
public java.lang.String getOperationMode()
public void truncate(java.lang.String tableName, java.lang.String cfName)
public EndpointSnitchInfoMBean getEndpointSnitchInfoProxy()
public ColumnFamilyStoreMBean getCfsProxy(java.lang.String ks, java.lang.String cf)
public StorageProxyMBean getSpProxy()
public java.lang.String getEndpoint()
public java.lang.String getDataCenter()
public java.lang.String getRack()
public java.util.List<java.lang.String> getKeyspaces()
public java.lang.String getClusterName()
public java.lang.String getPartitioner()
public void disableHintedHandoff()
public void enableHintedHandoff()
public void pauseHintsDelivery()
public void resumeHintsDelivery()
public void stopNativeTransport()
public void startNativeTransport()
public boolean isNativeTransportRunning()
public void stopGossiping()
public void startGossiping()
public void stopThriftServer()
public void startThriftServer()
public boolean isThriftServerRunning()
public boolean isInitialized()
public void setCompactionThroughput(int value)
public int getCompactionThroughput()
public int getStreamThroughput()
public int getExceptionCount()
public java.util.Map<java.lang.String,java.lang.Integer> getDroppedMessages()
public void loadNewSSTables(java.lang.String ksName, java.lang.String cfName)
public void rebuildIndex(java.lang.String ksName, java.lang.String cfName, java.lang.String... idxNames)
public java.lang.String getGossipInfo()
public void stop(java.lang.String string)
public void setStreamThroughput(int value)
public void setTraceProbability(double value)
public java.lang.String getSchemaVersion()
public java.util.List<java.lang.String> describeRing(java.lang.String keyspaceName) throws java.io.IOException
java.io.IOException
public PBSPredictorMBean getPBSPredictorMBean()
public void rebuild(java.lang.String sourceDc)
public java.util.List<java.lang.String> sampleKeyRange()
public void resetLocalSchema() throws java.io.IOException
java.io.IOException
public boolean isFailed()
public long getReadRepairAttempted()
public long getReadRepairRepairedBlocking()
public long getReadRepairRepairedBackground()
Copyright © 2014 The Apache Software Foundation