org.apache.cassandra.service
Interface StorageServiceMBean

All Known Implementing Classes:
StorageService

public interface StorageServiceMBean


Method Summary
 void clearSnapshot()
          Remove all the existing snapshots.
 void forceHandoff(java.util.List<java.lang.String> directories, java.lang.String target)
          Stream the files in the bootstrap directory over to the node being bootstrapped.
 void forceTableCleanup()
           
 void forceTableCompaction()
           
 void forceTableFlush(java.lang.String tableName, java.lang.String... columnFamilies)
          Flush all memtables for the given column families, or all columnfamilies for the given table if none are explicitly listed.
 int getCurrentGenerationNumber()
           
 java.lang.String getLiveNodes()
           
 java.lang.String getLoadInfo()
           
 java.util.Map<Range,java.util.List<EndPoint>> getRangeToEndPointMap()
           
 java.lang.String getToken()
           
 java.lang.String getUnreachableNodes()
           
 void loadAll(java.lang.String nodes)
          This method will cause the local node initiate the bootstrap process for all the nodes specified in the string parameter passed in.
 void setLog4jLevel(java.lang.String classQualifier, java.lang.String level)
          set the logging level at runtime
 void takeAllSnapshot(java.lang.String tag)
          Takes a snapshot for every table.
 void takeSnapshot(java.lang.String tableName, java.lang.String tag)
          Takes the snapshot for a given table.
 

Method Detail

getLiveNodes

java.lang.String getLiveNodes()

getUnreachableNodes

java.lang.String getUnreachableNodes()

getToken

java.lang.String getToken()

getRangeToEndPointMap

java.util.Map<Range,java.util.List<EndPoint>> getRangeToEndPointMap()

getLoadInfo

java.lang.String getLoadInfo()

getCurrentGenerationNumber

int getCurrentGenerationNumber()

forceTableCompaction

void forceTableCompaction()
                          throws java.io.IOException
Throws:
java.io.IOException

loadAll

void loadAll(java.lang.String nodes)
             throws java.net.UnknownHostException
This method will cause the local node initiate the bootstrap process for all the nodes specified in the string parameter passed in. This local node will calculate who gives what ranges to the nodes and then instructs the nodes to do so.

Parameters:
nodes - colon delimited list of endpoints that need to be bootstrapped
Throws:
java.net.UnknownHostException

forceTableCleanup

void forceTableCleanup()
                       throws java.io.IOException
Throws:
java.io.IOException

forceHandoff

void forceHandoff(java.util.List<java.lang.String> directories,
                  java.lang.String target)
                  throws java.io.IOException
Stream the files in the bootstrap directory over to the node being bootstrapped. This is used in case of normal bootstrap failure. Use a tool to re-calculate the cardinality at a later point at the destination.

Parameters:
directories - colon separated list of directories from where files need to be picked up.
target - endpoint receiving data.
Throws:
java.io.IOException

takeSnapshot

void takeSnapshot(java.lang.String tableName,
                  java.lang.String tag)
                  throws java.io.IOException
Takes the snapshot for a given table.

Parameters:
tableName - the name of the table.
tag - the tag given to the snapshot (null is permissible)
Throws:
java.io.IOException

takeAllSnapshot

void takeAllSnapshot(java.lang.String tag)
                     throws java.io.IOException
Takes a snapshot for every table.

Parameters:
tag - the tag given to the snapshot (null is permissible)
Throws:
java.io.IOException

clearSnapshot

void clearSnapshot()
                   throws java.io.IOException
Remove all the existing snapshots.

Throws:
java.io.IOException

forceTableFlush

void forceTableFlush(java.lang.String tableName,
                     java.lang.String... columnFamilies)
                     throws java.io.IOException
Flush all memtables for the given column families, or all columnfamilies for the given table if none are explicitly listed.

Parameters:
tableName -
columnFamilies -
Throws:
java.io.IOException

setLog4jLevel

void setLog4jLevel(java.lang.String classQualifier,
                   java.lang.String level)
set the logging level at runtime



Copyright © 2009 The Apache Software Foundation