public class PostgresProcess extends AbstractPGProcess<PostgresExecutable,PostgresProcess>
| Constructor and Description |
|---|
PostgresProcess(de.flapdoodle.embed.process.distribution.Distribution distribution,
PostgresConfig config,
de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig,
PostgresExecutable executable) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupInternal() |
protected void |
deleteTempFiles() |
protected List<String> |
getCommandLine(de.flapdoodle.embed.process.distribution.Distribution distribution,
PostgresConfig config,
de.flapdoodle.embed.process.extract.IExtractedFileSet exe) |
void |
importFromFile(File file)
Import into database from file
|
protected Set<String> |
knownFailureMessages() |
protected void |
onAfterProcessStart(de.flapdoodle.embed.process.runtime.ProcessControl process,
de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig) |
protected void |
onBeforeProcess(de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig) |
protected boolean |
sendStopToPostgresqlInstance() |
static boolean |
shutdownPostgres(PostgresConfig config) |
protected void |
stopInternal() |
onBeforeProcessStartgetConfig, getEnvironment, getPidFromFile, getProcessId, isProcessRunning, onAfterProcessStop, pidFile, pidFile, sendKillToProcess, sendTermToProcess, setProcessId, stop, stopProcess, tryKillToProcess, waitFor, writePidFilepublic PostgresProcess(de.flapdoodle.embed.process.distribution.Distribution distribution,
PostgresConfig config,
de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig,
PostgresExecutable executable)
throws IOException
IOExceptionpublic static boolean shutdownPostgres(PostgresConfig config)
protected void stopInternal()
stopInternal in class AbstractPGProcess<PostgresExecutable,PostgresProcess>protected final boolean sendStopToPostgresqlInstance()
protected void onBeforeProcess(de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
throws IOException
onBeforeProcess in class de.flapdoodle.embed.process.runtime.AbstractProcess<PostgresConfig,PostgresExecutable,PostgresProcess>IOExceptionprotected List<String> getCommandLine(de.flapdoodle.embed.process.distribution.Distribution distribution, PostgresConfig config, de.flapdoodle.embed.process.extract.IExtractedFileSet exe) throws IOException
getCommandLine in class de.flapdoodle.embed.process.runtime.AbstractProcess<PostgresConfig,PostgresExecutable,PostgresProcess>IOExceptionprotected void deleteTempFiles()
protected final void onAfterProcessStart(de.flapdoodle.embed.process.runtime.ProcessControl process,
de.flapdoodle.embed.process.config.IRuntimeConfig runtimeConfig)
throws IOException
onAfterProcessStart in class de.flapdoodle.embed.process.runtime.AbstractProcess<PostgresConfig,PostgresExecutable,PostgresProcess>IOExceptionpublic void importFromFile(File file)
file - The file to import into databaseprotected void cleanupInternal()
cleanupInternal in class AbstractPGProcess<PostgresExecutable,PostgresProcess>Copyright © 2015 Yandex. All Rights Reserved.