| java.lang.Object org.h2.tools.CreateCluster
CreateCluster | public class CreateCluster (Code) | | Tool to create a database cluster. This will copy a database to another
location if required, and modify the cluster setting.
|
execute | public static void execute(String urlSource, String urlTarget, String user, String password, String serverlist) throws SQLException(Code) | | Creates a cluster.
Parameters: urlSource - the database URL of the original database Parameters: urlTarget - the database URL of the copy Parameters: user - the user name Parameters: password - the password Parameters: serverlist - the server list throws: SQLException - |
main | public static void main(String[] args) throws SQLException(Code) | | The command line interface for this tool. The options must be split into
strings like this: "-urlSource", "jdbc:h2:test",... Options are case
sensitive. The following options are supported:
- -help or -? (print the list of options)
- -urlSource jdbc:h2:... (the database URL of the source database)
- -urlTarget jdbc:h2:... (the database URL of the target database)
Parameters: args - the command line arguments throws: SQLException - |
|
|