public class CreateCluster extends Tool
| Constructor and Description |
|---|
CreateCluster() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.String urlSource,
java.lang.String urlTarget,
java.lang.String user,
java.lang.String password,
java.lang.String serverList)
Creates a cluster.
|
static void |
main(java.lang.String... args)
Options are case sensitive.
|
void |
runTool(java.lang.String... args)
Run the tool with the given output stream and arguments.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOptionpublic static void main(java.lang.String... args)
throws java.sql.SQLException
| [-help] or [-?] | Print the list of options |
| [-urlSource "<url>"] | The database URL of the source database (jdbc:h2:...) |
| [-urlTarget "<url>"] | The database URL of the target database (jdbc:h2:...) |
| [-user <user>] | The user name (default: sa) |
| [-password <pwd>] | The password |
| [-serverList <list>] | The comma separated list of host names or IP addresses |
args - the command line argumentsjava.sql.SQLExceptionpublic void runTool(java.lang.String... args)
throws java.sql.SQLException
Toolpublic void execute(java.lang.String urlSource,
java.lang.String urlTarget,
java.lang.String user,
java.lang.String password,
java.lang.String serverList)
throws java.sql.SQLException
urlSource - the database URL of the original databaseurlTarget - the database URL of the copyuser - the user namepassword - the passwordserverList - the server listjava.sql.SQLException