public class CreateCluster extends Tool
| 构造器和说明 |
|---|
CreateCluster() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, showUsageAndThrowUnsupportedOption, 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 argumentsSQLException - on failurepublic void runTool(String... args) throws SQLException
ToolrunTool 在类中 Toolargs - the argument listSQLException - on failurepublic 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 listSQLException - on failureCopyright © 2022. All rights reserved.