Brooklyn

brooklyn.entity.nosql.redis
[Groovy] Class RedisSetup

java.lang.Object
  brooklyn.entity.basic.AbstractSoftwareProcessDriver
      brooklyn.entity.basic.AbstractSoftwareProcessSshDriver
          brooklyn.entity.basic.lifecycle.legacy.SshBasedAppSetup
              brooklyn.entity.nosql.redis.RedisSetup

class RedisSetup
extends SshBasedAppSetup

Start a RedisStore in a Location accessible over ssh.


Field Summary
static java.lang.String DEFAULT_INSTALL_DIR

static java.lang.String DEFAULT_VERSION

 
Fields inherited from class SshBasedAppSetup
log
 
Fields inherited from class AbstractSoftwareProcessSshDriver
BROOKLYN_HOME_DIR, CHECK_RUNNING, CUSTOMIZING, DEFAULT_INSTALL_BASEDIR, DEFAULT_RUN_BASEDIR, INSTALLING, KILLING, LAUNCHING, NO_VERSION_INFO, PID_FILENAME, RESTARTING, STOPPING, log, logSsh
 
Fields inherited from class AbstractSoftwareProcessDriver
entity
 
Property Summary
int redisPort

 
Constructor Summary
RedisSetup(RedisStore entity, SshMachineLocation machine)

 
Method Summary
void config()

java.util.List getCheckRunningScript()

@see SshBasedAppSetup#getCheckRunningScript()

java.util.List getConfigScript()

java.util.List getInstallScript()

java.util.List getRunScript()

Starts redis from the runDir directory.

java.util.List getShutdownScript()

Restarts redis with the current configuration.

static RedisSetup newInstance(RedisStore entity, SshMachineLocation machine)

protected void postShutdown()

protected void setEntityAttributes()

 
Methods inherited from class SshBasedAppSetup
config, copy, customize, deploy, exec, getCheckRunningScript, getConfigScript, getDefaultVersion, getDeployScript, getInstallDir, getInstallScript, getRestartScript, getRunScript, getShutdownScript, install, isRunning, kill, launch, makeCheckPortOpenScript, makeCheckRunningScript, makeInstallScript, makeRestartScript, makeShutdownScript, newScript, obtainPort, obtainPort, postShutdown, restart, runApp, setEntityAttributes, setInstallDir, setRunDir, setVersion, shutdown, stop, toDesiredPortRange
 
Methods inherited from class AbstractSoftwareProcessSshDriver
copyFile, copyFile, execute, execute, getDefaultVersion, getEntityVersionLabel, getEntityVersionLabel, getHostname, getInstallDir, getLocation, getMachine, getPortsUsed, getRunDir, getShellEnvironment, getVersion, newScript, newScript
 
Methods inherited from class AbstractSoftwareProcessDriver
customize, getEntity, getLocation, getResource, install, kill, launch, postLaunch, restart, start, stop, waitForConfigKey
 

Field Detail

DEFAULT_INSTALL_DIR

public static final java.lang.String DEFAULT_INSTALL_DIR


DEFAULT_VERSION

public static final java.lang.String DEFAULT_VERSION


 
Property Detail

redisPort

int redisPort


 
Constructor Detail

RedisSetup

RedisSetup(RedisStore entity, SshMachineLocation machine)


 
Method Detail

config

@Override
void config()


getCheckRunningScript

java.util.List getCheckRunningScript()
See Also:
SshBasedAppSetup#getCheckRunningScript()#getCheckRunningScript()


getConfigScript

@Override
java.util.List getConfigScript()


getInstallScript

@Override
java.util.List getInstallScript()


getRunScript

java.util.List getRunScript()
Starts redis from the runDir directory.


getShutdownScript

@Override
java.util.List getShutdownScript()
Restarts redis with the current configuration.


newInstance

static RedisSetup newInstance(RedisStore entity, SshMachineLocation machine)


postShutdown

@Override
protected void postShutdown()


setEntityAttributes

@Override
protected void setEntityAttributes()


 

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