|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.basic.AbstractSoftwareProcessDriver
brooklyn.entity.basic.AbstractSoftwareProcessSshDriver
brooklyn.entity.proxy.nginx.NginxSshDriver
public class NginxSshDriver extends AbstractSoftwareProcessSshDriver
Start a NginxController in a Location accessible over ssh.
Field Summary | |
---|---|
protected boolean |
customizationCompleted
|
static Logger |
log
|
Fields inherited from class AbstractSoftwareProcessSshDriver | |
---|---|
BROOKLYN_HOME_DIR, CHECK_RUNNING, CUSTOMIZING, DEFAULT_INSTALL_BASEDIR, DEFAULT_RUN_BASEDIR, IGNORE_ENTITY_SSH_FLAGS, INSTALLING, KILLING, LAUNCHING, NO_VERSION_INFO, PID_FILENAME, RESTARTING, STOPPING, USE_PID_FILE, log, logSsh |
Fields inherited from class AbstractSoftwareProcessDriver | |
---|---|
entity, location, resource |
Constructor Summary | |
NginxSshDriver(NginxControllerImpl entity, SshMachineLocation machine)
|
Method Summary | |
---|---|
void
|
customize()
|
protected void
|
doReloadNow()
Executes the given task, but only if another thread hasn't executed it for us (where the other thread began executing it after the current caller of run() began attempting to do so itself). |
NginxControllerImpl
|
getEntity()
|
protected java.lang.Integer
|
getHttpPort()
|
protected java.lang.String
|
getLogFileLocation()
|
void
|
install()
|
boolean
|
isCustomizationCompleted()
|
boolean
|
isRunning()
|
void
|
kill()
|
void
|
launch()
|
void
|
postLaunch()
|
void
|
rebind()
|
void
|
reload()
|
void
|
stop()
|
static java.lang.String
|
sudoBashCIfPrivilegedPort(int port, java.lang.String command)
|
static java.lang.String
|
sudoIfPrivilegedPort(int port, java.lang.String command)
|
Methods inherited from class AbstractSoftwareProcessDriver | |
---|---|
customize, doFullStartOnRestart, getEntity, getLocation, getResource, getResourceAsString, install, kill, launch, postLaunch, processTemplate, processTemplate, processTemplate, processTemplate, processTemplateContents, processTemplateContents, rebind, restart, start, stop, waitForConfigKey |
Field Detail |
---|
protected boolean customizationCompleted
public static final Logger log
Constructor Detail |
---|
public NginxSshDriver(NginxControllerImpl entity, SshMachineLocation machine)
Method Detail |
---|
} public void customize()
protected void doReloadNow()
public NginxControllerImpl getEntity()
protected java.lang.Integer getHttpPort()
protected java.lang.String getLogFileLocation()
false)).orSubmitAndBlock(); public void install()
public boolean isCustomizationCompleted()
).execute(); public boolean isRunning()
// bad because the ssh commands take a second or two - if 10 changes were made to the config in that time, we'd public void kill()
// We wait for evidence of running because, using public void launch()
} public void postLaunch()
public void rebind()
public void reload()
} public void stop()
public static java.lang.String sudoBashCIfPrivilegedPort(int port, java.lang.String command)
public static java.lang.String sudoIfPrivilegedPort(int port, java.lang.String command)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.