voldemort.tools.admin.command
Class AdminCommandStream.SubCommandStreamMirror

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

public static class AdminCommandStream.SubCommandStreamMirror
extends AbstractAdminCommand

stream mirror command


Field Summary
static java.lang.String OPT_FROM_NODE
           
static java.lang.String OPT_FROM_URL
           
static java.lang.String OPT_TO_NODE
           
static java.lang.String OPT_TO_URL
           
 
Constructor Summary
AdminCommandStream.SubCommandStreamMirror()
           
 
Method Summary
static void executeCommand(java.lang.String[] args)
          Parses command-line and mirrors data from a node to another.
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
 

Field Detail

OPT_FROM_NODE

public static final java.lang.String OPT_FROM_NODE
See Also:
Constant Field Values

OPT_FROM_URL

public static final java.lang.String OPT_FROM_URL
See Also:
Constant Field Values

OPT_TO_NODE

public static final java.lang.String OPT_TO_NODE
See Also:
Constant Field Values

OPT_TO_URL

public static final java.lang.String OPT_TO_URL
See Also:
Constant Field Values
Constructor Detail

AdminCommandStream.SubCommandStreamMirror

public AdminCommandStream.SubCommandStreamMirror()
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 mirrors data from a node to another.

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


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