public class BackupDatabase extends AppCmdLine
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
password |
protected java.lang.String |
type |
protected java.lang.String |
url |
protected java.lang.String |
user |
exitStatus, OPTION_DEBUG, OPTION_HELP, OPTION_HOME, OPTION_REMOTE_URL, PROPERTY_REMOTE_URL| Constructor and Description |
|---|
BackupDatabase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtraOptions(org.apache.commons.cli.Options options)
add extra command line options
|
protected java.lang.String |
extractServerUrl() |
protected java.lang.String |
getHomeDir() |
void |
handleArgs(java.util.Properties p)
Do not use this method
|
void |
init()
init the program
|
static void |
main(java.lang.String[] argv)
The main for the program
|
void |
process()
process ( extend this method)
|
abort, abortShowHelp, execute, getExtraPars, handleCommandLine, setDefaults, setExitFlgprotected java.lang.String url
protected java.lang.String user
protected java.lang.String type
protected java.lang.String password
public void handleArgs(java.util.Properties p)
throws java.lang.Exception
AppCmdLinep - the propertiesjava.lang.Exception - a serious problemprotected void addExtraOptions(org.apache.commons.cli.Options options)
options - the optionspublic void process()
throws java.lang.Exception
AppCmdLineprocess in class AppCmdLinejava.lang.Exception - a serious problempublic static void main(java.lang.String[] argv)
argv - The command line argumentspublic void init()
throws java.lang.Exception
AppCmdLineinit in class AppCmdLinejava.lang.Exception - a serious problemprotected java.lang.String extractServerUrl()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String getHomeDir()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.