CreateCluster

Tool to create a database cluster. This will copy a database to another location if required, and modify the cluster setting.

Methods
void execute(String urlSource, String urlTarget, String user, String password, String serverlist)
Creates a cluster.
static void main(String[] args)
The command line interface for this tool.
void run(String[] args)

void execute(String urlSource, String urlTarget, String user, String password, String serverlist) throws SQLException

Creates a cluster.

Parameters:
urlSource - the database URL of the original database
urlTarget - the database URL of the copy
user - the user name
password - the password
serverlist - the server list
Throws:
SQLException

static void main(String[] args) throws SQLException

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)
  • -user (the user name)
  • -password (the password)
  • -serverlist (the server list)


Parameters:
args - the command line arguments
Throws:
SQLException

void run(String[] args) throws SQLException