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, setup
copyResource, 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, start
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
kill, rebind, restart, start
getLocation
public PostgreSqlSshDriver(PostgreSqlNodeImpl entity, SshMachineLocation machine)
public void install()
AbstractSoftwareProcessDriver
install
in class AbstractSoftwareProcessDriver
public void customize()
AbstractSoftwareProcessDriver
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()
AbstractSoftwareProcessDriver
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 EntityDriver
getEntity
in interface SoftwareProcessDriver
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)