public class CreateCluster
extends org.h2.util.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.
|
public 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.SQLException - on failurepublic void runTool(java.lang.String... args)
throws java.sql.SQLException
org.h2.util.ToolrunTool in class org.h2.util.Toolargs - the argument listjava.sql.SQLException - on failurepublic 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 - on failure