voldemort.tools.admin.command
Class AdminCommandMeta.SubCommandMetaGet
java.lang.Object
voldemort.tools.admin.command.AbstractAdminCommand
voldemort.tools.admin.command.AdminCommandMeta.SubCommandMetaGet
- Enclosing class:
- AdminCommandMeta
public static class AdminCommandMeta.SubCommandMetaGet
- extends AbstractAdminCommand
meta get command
Method Summary |
static void |
doMetaGet(AdminClient adminClient,
java.util.Collection<java.lang.Integer> nodeIds,
java.util.List<java.lang.String> metaKeys,
java.io.File directory,
java.lang.Boolean verbose)
Gets metadata. |
static void |
executeCommand(java.lang.String[] args)
Parses command-line and gets metadata. |
protected static joptsimple.OptionParser |
getParser()
Initializes parser |
static void |
printHelp(java.io.PrintStream stream)
Prints help menu for command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPT_HEAD_META_GET
public static final java.lang.String OPT_HEAD_META_GET
- See Also:
- Constant Field Values
OPT_VERBOSE
public static final java.lang.String OPT_VERBOSE
- See Also:
- Constant Field Values
AdminCommandMeta.SubCommandMetaGet
public AdminCommandMeta.SubCommandMetaGet()
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 gets metadata.
- Parameters:
args
- Command-line inputprintHelp
- Tells whether to print help only or execute command
actually
- Throws:
java.io.IOException
doMetaGet
public static void doMetaGet(AdminClient adminClient,
java.util.Collection<java.lang.Integer> nodeIds,
java.util.List<java.lang.String> metaKeys,
java.io.File directory,
java.lang.Boolean verbose)
throws java.io.IOException
- Gets metadata.
- Parameters:
adminClient
- An instance of AdminClient points to given clusternodeIds
- Node ids to fetch metadata frommetaKeys
- List of metadata to fetchdirectory
- Directory to output toverbose
- Tells whether to print metadata verbosely
- Throws:
java.io.IOException
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu