public final class JarTools extends ToolsBase
ToolsBase.ConnectionOptions, ToolsBase.ProcessCommandAUTH_PROVIDER, BIND_ADDRESS, CLIENT_BIND_ADDRESS, CLIENT_PORT, CONNECTION_URL, currentOpts, EXTRA_CONN_PROPS, LOCATORS, MCAST_ADDRESS, MCAST_PORT, outputStream, PASSWORD, SYSTEM_PROPERTY, USERNAME| Constructor and Description |
|---|
JarTools() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommonOptions(org.apache.commons.cli.Options opts) |
protected void |
addFileOption(org.apache.commons.cli.Options opts) |
protected ToolsBase.ProcessCommand |
getCommandProcessor(String cmd)
Get a processor specific to the provided command.
|
protected Map<String,String> |
getCommandToDescriptionKeyMap()
Get the mapping from command-name to its description key that can be used
to lookup the localized description string using
LocalizedResource. |
protected Connection |
getConnection(org.apache.commons.cli.CommandLine cmdLine,
String cmd,
String cmdDescKey,
boolean hasFileName) |
protected String |
getUsageString(String cmd,
String cmdDescKey)
Get the usage string (without any formatting etc.) in case of an exception
or when explicitly requested.
|
static Map<String,String> |
getValidCommands() |
static void |
main(String[] args) |
addConnectionOptions, buildCommandOptions, getConnection, handleCommonOption, handleConnectionOption, handleConnectionOptions, invoke, printUsageExamples, showUsagepublic static void main(String[] args)
protected Map<String,String> getCommandToDescriptionKeyMap()
LocalizedResource.getCommandToDescriptionKeyMap in class ToolsBaseprotected ToolsBase.ProcessCommand getCommandProcessor(String cmd)
getCommandProcessor in class ToolsBaseprotected void addCommonOptions(org.apache.commons.cli.Options opts)
addCommonOptions in class ToolsBaseprotected void addFileOption(org.apache.commons.cli.Options opts)
protected Connection getConnection(org.apache.commons.cli.CommandLine cmdLine, String cmd, String cmdDescKey, boolean hasFileName) throws org.apache.commons.cli.ParseException, SQLException
org.apache.commons.cli.ParseExceptionSQLExceptionprotected String getUsageString(String cmd, String cmdDescKey)
getUsageString in class ToolsBaseCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.