public class CreateCluster extends Tool
| Constructor and Description |
|---|
CreateCluster() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(String urlSource,
String urlTarget,
String user,
String password,
String serverList)
Creates a cluster.
|
static void |
main(String... args)
Options are case sensitive.
|
void |
runTool(String... args)
Run the tool with the given output stream and arguments.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, throwUnsupportedOptionpublic static void main(String... args) throws 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 argumentsSQLExceptionpublic void runTool(String... args) throws SQLException
ToolrunTool in class Toolargs - the argument listSQLExceptionpublic void execute(String urlSource, String urlTarget, String user, String password, String serverList) throws SQLException
urlSource - the database URL of the original databaseurlTarget - the database URL of the copyuser - the user namepassword - the passwordserverList - the server listSQLExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.