Brooklyn

brooklyn.entity.proxy.nginx
[Java] Class NginxSshDriver

java.lang.Object
  brooklyn.entity.basic.AbstractSoftwareProcessDriver
      brooklyn.entity.basic.AbstractSoftwareProcessSshDriver
          brooklyn.entity.proxy.nginx.NginxSshDriver
All Implemented Interfaces:
NginxDriver

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
 
Constructor Summary
NginxSshDriver(NginxControllerImpl entity, SshMachineLocation machine)

 
Method Summary
void customize()

protected void doReloadNow()

Instructs nginx to reload its configuration (without restarting, so don't lose any requests).

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 restart()

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 AbstractSoftwareProcessSshDriver
copyFile, copyFile, copyFile, copyResource, copyResource, copyResource, copyResources, copyTemplate, copyTemplate, copyTemplates, execute, execute, getAddress, getDefaultVersion, getDownloadFileSuffix, getDownloadFilename, getEntityVersionLabel, getEntityVersionLabel, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getShellEnvironment, getSshFlags, getVersion, newScript, newScript
 
Methods inherited from class AbstractSoftwareProcessDriver
customize, getEntity, getLocation, getResource, getResourceAsString, install, kill, launch, postLaunch, processTemplate, processTemplate, rebind, restart, start, stop, waitForConfigKey
 

Field Detail

customizationCompleted

protected boolean customizationCompleted


log

public static final Logger log


 
Constructor Detail

NginxSshDriver

public NginxSshDriver(NginxControllerImpl entity, SshMachineLocation machine)


 
Method Detail

customize

@Override
public void customize()


doReloadNow

protected void doReloadNow()
Instructs nginx to reload its configuration (without restarting, so don't lose any requests). Can be overridden if necessary, to change the call used for reloading.


getEntity

@Override
public NginxControllerImpl getEntity()


getHttpPort

protected java.lang.Integer getHttpPort()


getLogFileLocation

protected java.lang.String getLogFileLocation()


install

@Override
public void install()


isCustomizationCompleted

public boolean isCustomizationCompleted()


isRunning

@Override
public boolean isRunning()


kill

@Override
public void kill()


launch

@Override
public void launch()


postLaunch

@Override
public void postLaunch()


rebind

@Override
public void rebind()


reload

public void reload()


restart

@Override
public void restart()


stop

@Override
public void stop()


sudoBashCIfPrivilegedPort

public static java.lang.String sudoBashCIfPrivilegedPort(int port, java.lang.String command)


sudoIfPrivilegedPort

public static java.lang.String sudoIfPrivilegedPort(int port, java.lang.String command)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.