package ru.yandex.qatools.embed.postgresql; import de.flapdoodle.embed.process.config.IRuntimeConfig; import de.flapdoodle.embed.process.distribution.Distribution; import de.flapdoodle.embed.process.extract.IExtractedFileSet; import ru.yandex.qatools.embed.postgresql.config.PostgresConfig; import java.io.IOException; /** * pg_ctl executor * (helper to initialize the DB) */ class PgCtlExecutable extends AbstractPGExecutable<PostgresConfig, PgCtlProcess> { public PgCtlExecutable(Distribution distribution, PostgresConfig config, IRuntimeConfig runtimeConfig, IExtractedFileSet exe) { super(distribution, config, runtimeConfig, exe); } @Override protected PgCtlProcess start(Distribution distribution, PostgresConfig config, IRuntimeConfig runtime) throws IOException { return new PgCtlProcess<>(distribution, config, runtime, this); } @Override public synchronized void stop() { // We don't want to cleanup after this particular single invocation } }