voldemort.tools.admin.command
Class AdminCommandDebug.SubCommandDebugQueryKeys

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

public static class AdminCommandDebug.SubCommandDebugQueryKeys
extends AbstractAdminCommand

debug query-keys command


Constructor Summary
AdminCommandDebug.SubCommandDebugQueryKeys()
           
 
Method Summary
static void doDebugQueryKeys(AdminClient adminClient, java.util.List<java.lang.Integer> nodeIds, java.util.List<java.lang.String> storeNames, java.util.List<java.lang.String> keyStrings, java.lang.String keyType)
          Queries stores for a set of keys
static void executeCommand(java.lang.String[] args)
          Parses command-line and queries stores for a set of keys
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.SubCommandDebugQueryKeys

public AdminCommandDebug.SubCommandDebugQueryKeys()
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.io.IOException
Parses command-line and queries stores for a set of keys

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

doDebugQueryKeys

public static void doDebugQueryKeys(AdminClient adminClient,
                                    java.util.List<java.lang.Integer> nodeIds,
                                    java.util.List<java.lang.String> storeNames,
                                    java.util.List<java.lang.String> keyStrings,
                                    java.lang.String keyType)
                             throws java.io.IOException
Queries stores for a set of keys

Parameters:
adminClient - An instance of AdminClient points to given cluster
nodeIds - Node ids to query keys from
storeNames - Stores to be queried
keyStrings - Keys to be queried
keyType - Format of the keys: hex, json
Throws:
java.io.IOException


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