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()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception. 
 | 
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()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception. 
 | 
boolean | 
isRunning()
Whether the entity components have started. 
 | 
void | 
launch()
Implementations should fail if the return code is non-zero, by throwing some appropriate exception. 
 | 
void | 
logTailOfPostgresLog()  | 
void | 
stop()
Performs software stop (or queues tasks to do this) 
 | 
checkNoHostnameBug, copyCustomizeResources, copyInstallResources, copyPreInstallResources, copyResource, copyResource, execute, execute, execute, getAddress, getHostname, getLocation, getMachine, getPortsUsed, getSubnetAddress, getSubnetHostname, prepare, runPostCustomizeCommand, runPostInstallCommand, runPostLaunchCommand, runPreCustomizeCommand, runPreInstallCommand, runPreLaunchCommand, setupcopyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyResource, copyRuntimeResources, copyTemplate, copyTemplate, copyTemplate, getArchiveNameFormat, getExpandedInstallDir, getInstallDir, getResource, getResourceAsString, getRunDir, getShellEnvironment, getVersion, kill, postLaunch, preInstall, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, setExpandedInstallDir, startequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkill, rebind, restart, startgetLocationpublic PostgreSqlSshDriver(PostgreSqlNodeImpl entity, SshMachineLocation machine)
public void install()
AbstractSoftwareProcessDriverinstall in class AbstractSoftwareProcessDriverpublic void customize()
AbstractSoftwareProcessDrivercustomize 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()
AbstractSoftwareProcessDriverlaunch 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 EntityDrivergetEntity in interface SoftwareProcessDrivergetEntity 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)