voldemort.tools.admin.command
Class AdminCommandStream.SubCommandStreamFetchKeys

java.lang.Object
  extended by voldemort.tools.admin.command.AbstractAdminCommand
      extended by voldemort.tools.admin.command.AdminCommandStream.SubCommandStreamFetchKeys
Enclosing class:
AdminCommandStream

public static class AdminCommandStream.SubCommandStreamFetchKeys
extends AbstractAdminCommand

stream fetch-keys command


Constructor Summary
AdminCommandStream.SubCommandStreamFetchKeys()
           
 
Method Summary
static void doStreamFetchKeys(AdminClient adminClient, java.lang.Integer nodeId, java.util.List<java.lang.String> storeNames, java.util.List<java.lang.Integer> partIds, java.lang.Boolean orphaned, java.io.File directory, java.lang.String format)
          Fetches keys from a given node.
static void executeCommand(java.lang.String[] args)
          Parses command-line and fetches keys from a given node.
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

AdminCommandStream.SubCommandStreamFetchKeys

public AdminCommandStream.SubCommandStreamFetchKeys()
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 fetches keys from a given node.

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

doStreamFetchKeys

public static void doStreamFetchKeys(AdminClient adminClient,
                                     java.lang.Integer nodeId,
                                     java.util.List<java.lang.String> storeNames,
                                     java.util.List<java.lang.Integer> partIds,
                                     java.lang.Boolean orphaned,
                                     java.io.File directory,
                                     java.lang.String format)
                              throws java.io.IOException
Fetches keys from a given node.

Parameters:
adminClient - An instance of AdminClient points to given cluster
nodeId - Node id to fetch entries from
storeNames - List of stores to fetch from
partIds - List of partitions to fetch from
orphaned - Tells if orphaned entries to be fetched
directory - File object of directory to output to
format - output format
Throws:
java.io.IOException


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