public class PostgreSqlSshDriver extends AbstractSoftwareProcessSshDriver implements PostgreSqlDriver
PostgreSqlDriver
.Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
CHECK_RUNNING, CUSTOMIZING, DEBUG, IGNORE_ENTITY_SSH_FLAGS, INSTALL_INCOMPLETE, INSTALLING, KILLING, LAUNCHING, logSsh, NON_STANDARD_LAYOUT, PID_FILENAME, PROCESS_OWNER, RESTARTING, STOPPING, USE_PID_FILE, VALID_FLAGS
Constructor and Description |
---|
PostgreSqlSshDriver(PostgreSqlNodeImpl entity,
SshMachineLocation machine) |
Modifier and Type | Method and Description |
---|---|
void |
copyLogFileContents()
Deprecated.
since 0.7.0 renamed
logTailOfPostgresLog() |
void |
customize() |
ProcessTaskWrapper<java.lang.Integer> |
executeScriptAsync(java.lang.String commands) |
ProcessTaskWrapper<java.lang.Integer> |
executeScriptFromInstalledFileAsync(java.lang.String filenameAlreadyInstalledAtServer) |
java.lang.String |
getDataDir() |
PostgreSqlNodeImpl |
getEntity()
The entity whose components we are controlling.
|
java.lang.String |
getLogFile() |
java.lang.String |
getPidFile() |
java.lang.String |
getStatusCmd() |
void |
install() |
boolean |
isRunning()
Whether the entity components have started.
|
void |
launch() |
void |
logTailOfPostgresLog() |
void |
stop()
Performs software stop (or queues tasks to do this)
|
checkNoHostnameBug, copyInstallResources, copyResource, copyResource, execute, execute, execute, getAddress, getExpandedInstallDir, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getShellEnvironment, getSubnetAddress, getSubnetHostname, runPostInstallCommand, runPostLaunchCommand, runPreInstallCommand, runPreLaunchCommand, setExpandedInstallDir, setup
copyPreInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, getResource, getResourceAsString, getVersion, kill, postLaunch, preInstall, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, start
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
kill, rebind, restart, start
getLocation
public PostgreSqlSshDriver(PostgreSqlNodeImpl entity, SshMachineLocation machine)
public void install()
install
in class AbstractSoftwareProcessDriver
public void customize()
customize
in class AbstractSoftwareProcessDriver
public java.lang.String getDataDir()
public java.lang.String getLogFile()
public java.lang.String getPidFile()
@Deprecated public void copyLogFileContents()
logTailOfPostgresLog()
public void logTailOfPostgresLog()
public void launch()
launch
in class AbstractSoftwareProcessDriver
public boolean isRunning()
SoftwareProcessDriver
isRunning
in interface SoftwareProcessDriver
public void stop()
SoftwareProcessDriver
stop
in interface SoftwareProcessDriver
stop
in class AbstractSoftwareProcessDriver
Startable.stop()
public PostgreSqlNodeImpl getEntity()
SoftwareProcessDriver
getEntity
in interface SoftwareProcessDriver
getEntity
in interface EntityDriver
getEntity
in class AbstractSoftwareProcessDriver
public java.lang.String getStatusCmd()
getStatusCmd
in interface PostgreSqlDriver
public ProcessTaskWrapper<java.lang.Integer> executeScriptAsync(java.lang.String commands)
executeScriptAsync
in interface PostgreSqlDriver
public ProcessTaskWrapper<java.lang.Integer> executeScriptFromInstalledFileAsync(java.lang.String filenameAlreadyInstalledAtServer)