org.apache.cassandra.service
Interface StorageServiceMBean

All Known Implementing Classes:
StorageService

public interface StorageServiceMBean

Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )


Method Summary
 void doGC()
           
 void forceHandoff(java.lang.String directories, java.lang.String target)
          Stream the files in the bootstrap directory over to the node being bootstrapped.
 java.lang.String getLiveNodes()
           
 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.
 

Method Detail

getLiveNodes

java.lang.String getLiveNodes()

getUnreachableNodes

java.lang.String getUnreachableNodes()

getToken

java.lang.String getToken()

loadAll

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. 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

doGC

void doGC()

forceHandoff

void forceHandoff(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:
sources - colon separated list of directories from where files need to be picked up.
target - endpoint receiving data.
Throws:
java.io.IOException


Copyright © 2009 The Apache Software Foundation