public class MariaDbSshDriver extends AbstractSoftwareProcessSshDriver implements MariaDbDriver
MariaDbDriver
.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 |
---|
MariaDbSshDriver(MariaDbNodeImpl entity,
SshMachineLocation machine) |
Modifier and Type | Method and Description |
---|---|
void |
customize() |
ProcessTaskWrapper<java.lang.Integer> |
executeScriptAsync(java.lang.String commands) |
ProcessTaskWrapper<java.lang.Integer> |
executeScriptFromInstalledFileAsync(java.lang.String filenameAlreadyInstalledAtServer) |
java.lang.String |
getBaseDir() |
java.lang.String |
getConfigFile() |
java.lang.String |
getDataDir() |
java.lang.String |
getDownloadParentDir() |
MariaDbNodeImpl |
getEntity()
The entity whose components we are controlling.
|
java.lang.String |
getInstallFilename() |
java.lang.String |
getLogFile() |
java.lang.String |
getMariaDbServerOptionsString() |
java.lang.String |
getMirrorUrl() |
java.lang.String |
getOsTag() |
java.lang.String |
getPassword() |
int |
getPort() |
java.lang.String |
getSocketUid() |
java.lang.String |
getStatusCmd() |
void |
install() |
boolean |
isRunning()
Whether the entity components have started.
|
void |
kill()
Kills the process, ungracefully and immediately where possible (e.g.
|
void |
launch() |
void |
preInstall()
Implement this method in child classes to add some pre-install behavior
|
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, postLaunch, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, start
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rebind, restart, start
getLocation
public MariaDbSshDriver(MariaDbNodeImpl entity, SshMachineLocation machine)
public java.lang.String getOsTag()
public java.lang.String getDownloadParentDir()
public java.lang.String getMirrorUrl()
public java.lang.String getBaseDir()
public java.lang.String getDataDir()
public java.lang.String getLogFile()
public java.lang.String getConfigFile()
public java.lang.String getInstallFilename()
public void preInstall()
AbstractSoftwareProcessDriver
preInstall
in class AbstractSoftwareProcessDriver
public void install()
install
in class AbstractSoftwareProcessDriver
public MariaDbNodeImpl getEntity()
SoftwareProcessDriver
getEntity
in interface SoftwareProcessDriver
getEntity
in interface EntityDriver
getEntity
in class AbstractSoftwareProcessDriver
public int getPort()
public java.lang.String getSocketUid()
public java.lang.String getPassword()
public void customize()
customize
in class AbstractSoftwareProcessDriver
public java.lang.String getMariaDbServerOptionsString()
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 void kill()
SoftwareProcessDriver
kill
in interface SoftwareProcessDriver
kill
in class AbstractSoftwareProcessDriver
public java.lang.String getStatusCmd()
getStatusCmd
in interface MariaDbDriver
public ProcessTaskWrapper<java.lang.Integer> executeScriptAsync(java.lang.String commands)
executeScriptAsync
in interface MariaDbDriver
public ProcessTaskWrapper<java.lang.Integer> executeScriptFromInstalledFileAsync(java.lang.String filenameAlreadyInstalledAtServer)