voldemort.tools.admin.command
Class AdminCommandAsyncJob.SubCommandAsyncJobList

java.lang.Object
  extended by voldemort.tools.admin.command.AbstractAdminCommand
      extended by voldemort.tools.admin.command.AdminCommandAsyncJob.SubCommandAsyncJobList
Enclosing class:
AdminCommandAsyncJob

public static class AdminCommandAsyncJob.SubCommandAsyncJobList
extends AbstractAdminCommand

async-job list command


Constructor Summary
AdminCommandAsyncJob.SubCommandAsyncJobList()
           
 
Method Summary
static void doAsyncJobList(AdminClient adminClient, java.util.List<java.lang.Integer> nodeIds)
          Gets list of async jobs across multiple nodes.
static void executeCommand(java.lang.String[] args)
          Parses command-line and gets async job list from nodes.
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

AdminCommandAsyncJob.SubCommandAsyncJobList

public AdminCommandAsyncJob.SubCommandAsyncJobList()
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 gets async job list from nodes.

Parameters:
args - Command-line input
Throws:
java.io.IOException

doAsyncJobList

public static void doAsyncJobList(AdminClient adminClient,
                                  java.util.List<java.lang.Integer> nodeIds)
Gets list of async jobs across multiple nodes.

Parameters:
adminClient - An instance of AdminClient points to given cluster
nodeIds - Node ids to get async jobs from


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