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) | 
copyInstallResources, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, execute, execute, execute, getAddress, getDownloadFilename, getDownloadFileSuffix, getExpandedInstallDir, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getShellEnvironment, getSubnetAddress, getSubnetHostname, getVersion, runPostInstallCommand, runPostLaunchCommand, runPreInstallCommand, runPreLaunchCommand, setExpandedInstallDir, setupgetResource, getResourceAsString, kill, postLaunch, preInstall, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, startequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkill, rebind, restart, startgetLocationpublic PostgreSqlSshDriver(PostgreSqlNodeImpl entity, SshMachineLocation machine)
public void install()
install in class AbstractSoftwareProcessDriverpublic void customize()
customize in class AbstractSoftwareProcessDriverpublic 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 AbstractSoftwareProcessDriverpublic boolean isRunning()
SoftwareProcessDriverisRunning in interface SoftwareProcessDriverpublic void stop()
SoftwareProcessDriverstop in interface SoftwareProcessDriverstop in class AbstractSoftwareProcessDriverStartable.stop()public PostgreSqlNodeImpl getEntity()
SoftwareProcessDrivergetEntity in interface SoftwareProcessDrivergetEntity in interface EntityDrivergetEntity in class AbstractSoftwareProcessDriverpublic java.lang.String getStatusCmd()
getStatusCmd in interface PostgreSqlDriverpublic ProcessTaskWrapper<java.lang.Integer> executeScriptAsync(java.lang.String commands)
executeScriptAsync in interface PostgreSqlDriverpublic ProcessTaskWrapper<java.lang.Integer> executeScriptFromInstalledFileAsync(java.lang.String filenameAlreadyInstalledAtServer)