| Constructor and Description |
|---|
Instances() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
reusedExistingDatabase()
Returns if a clean database had to be created.
|
void |
start(Config config,
File dist,
File target,
boolean deldir,
File socket)
Start a new one at this port.
|
void |
stop(int port)
Stop a running one at this port.
|
public void start(@NotNull Config config, @NotNull File dist, @NotNull File target, boolean deldir, File socket) throws IOException
config - Instance configurationdist - Path to MySQL distributiontarget - Where to keep temp datadeldir - If existing DB should be deletedsocket - Alternative socket location for mysql (may be null)IOException - If fails to startpublic void stop(int port)
port - The port to stop atpublic boolean reusedExistingDatabase()
Instances#start(Config, File, File, boolean).Copyright © 2012–2014 jcabi.com. All rights reserved.