voldemort.tools.admin.command
Class AdminCommandDebug.SubCommandDebugRoute

java.lang.Object
  extended by voldemort.tools.admin.command.AbstractAdminCommand
      extended by voldemort.tools.admin.command.AdminCommandDebug.SubCommandDebugRoute
Enclosing class:
AdminCommandDebug

public static class AdminCommandDebug.SubCommandDebugRoute
extends AbstractAdminCommand

debug route command


Constructor Summary
AdminCommandDebug.SubCommandDebugRoute()
           
 
Method Summary
static void doDebugRoute(AdminClient adminClient, java.lang.String storeName, java.util.List<java.lang.String> keyStrings, java.lang.String keyType)
          Shows detailed routing information for a given set of keys on a store.
static void executeCommand(java.lang.String[] args)
          Parses command-line and shows detailed routing information for a given set of keys on a store.
protected static joptsimple.OptionParser getParser()
          Initializes parser
static void printHelp(java.io.PrintStream stream)
          Prints help menu for command.
 
Methods inherited from class voldemort.tools.admin.command.AbstractAdminCommand
executeHelp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminCommandDebug.SubCommandDebugRoute

public AdminCommandDebug.SubCommandDebugRoute()
Method Detail

getParser

protected static joptsimple.OptionParser getParser()
Initializes parser

Returns:
OptionParser object with all available options

printHelp

public static void printHelp(java.io.PrintStream stream)
                      throws java.io.IOException
Prints help menu for command.

Parameters:
stream - PrintStream object for output
Throws:
java.io.IOException

executeCommand

public static void executeCommand(java.lang.String[] args)
                           throws java.lang.Exception
Parses command-line and shows detailed routing information for a given set of keys on a store. Usage: debug route ((-h | -j) ) -s -u

Parameters:
args - Command-line input
printHelp - Tells whether to print help only or execute command actually
Throws:
java.lang.Exception

doDebugRoute

public static void doDebugRoute(AdminClient adminClient,
                                java.lang.String storeName,
                                java.util.List<java.lang.String> keyStrings,
                                java.lang.String keyType)
                         throws org.apache.commons.codec.DecoderException
Shows detailed routing information for a given set of keys on a store.

Parameters:
adminClient - An instance of AdminClient points to given cluster
storeName - Store that contains keys
keyStrings - Keys to show routing plan
keyType - Format of the keys: hex
Throws:
org.apache.commons.codec.DecoderException
java.io.IOException


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu