voldemort.tools.admin.command
Class AdminCommandQuota.SubCommandQuotaGet

java.lang.Object
  extended by voldemort.tools.admin.command.AbstractAdminCommand
      extended by voldemort.tools.admin.command.AdminCommandQuota.SubCommandQuotaGet
Enclosing class:
AdminCommandQuota

public static class AdminCommandQuota.SubCommandQuotaGet
extends AbstractAdminCommand

quota get command


Field Summary
static java.lang.String OPT_HEAD_QUOTA_GET
           
 
Constructor Summary
AdminCommandQuota.SubCommandQuotaGet()
           
 
Method Summary
static void doQuotaGet(AdminClient adminClient, java.util.List<java.lang.String> storeNames, java.util.List<java.lang.String> quotaTypes)
          Gets quota for given quota types on given stores.
static void executeCommand(java.lang.String[] args)
          Parses command-line and gets quota.
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_HEAD_QUOTA_GET

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

AdminCommandQuota.SubCommandQuotaGet

public AdminCommandQuota.SubCommandQuotaGet()
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 quota.

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

doQuotaGet

public static void doQuotaGet(AdminClient adminClient,
                              java.util.List<java.lang.String> storeNames,
                              java.util.List<java.lang.String> quotaTypes)
Gets quota for given quota types on given stores.

Parameters:
adminClient - An instance of AdminClient points to given cluster
storeNames - List of stores to query quota
quotaType - List of quota types to fetch


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