Brooklyn

brooklyn.entity.webapp
[Java] Class JavaWebAppSshDriver

java.lang.Object
  brooklyn.entity.basic.AbstractSoftwareProcessDriver
      brooklyn.entity.basic.AbstractSoftwareProcessSshDriver
          brooklyn.entity.java.JavaSoftwareProcessSshDriver
              brooklyn.entity.webapp.JavaWebAppSshDriver
All Implemented Interfaces:
JavaWebAppDriver

public abstract class JavaWebAppSshDriver
extends JavaSoftwareProcessSshDriver

Field Summary
 
Fields inherited from class JavaSoftwareProcessSshDriver
KEY_VAL_OPT_PREFIXES, MUTUALLY_EXCLUSIVE_OPTS, 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
 
Constructor Summary
JavaWebAppSshDriver(JavaWebAppSoftwareProcess entity, SshMachineLocation machine)

 
Method Summary
void deploy(java.io.File file)

void deploy(java.io.File f, java.lang.String targetName)

java.lang.String deploy(java.lang.String url, java.lang.String targetName)

deploys a URL as a webapp at the appserver; returns a token which can be used as an argument to undeploy, typically the web context with leading slash where the app can be reached (just "/" for ROOT)

protected java.lang.String getDeployDir()

protected java.lang.String getDeploySubdir()

if files should be placed on the server for deployment, override this to be the sub-directory of the runDir where they should be stored (or override getDeployDir() if they should be copied somewhere else, and set this null); if files are not copied to the server, but injected (e.g.

java.util.List getEnabledProtocols()

JavaWebAppSoftwareProcess getEntity()

protected FilenameToWebContextMapper getFilenameContextMapper()

java.lang.Integer getHttpPort()

java.lang.Integer getHttpsPort()

protected java.lang.String inferRootUrl()

protected boolean isProtocolEnabled(java.lang.String protocol)

void postLaunch()

void undeploy(java.lang.String targetName)

 
Methods inherited from class JavaSoftwareProcessSshDriver
getCustomJavaConfigOptions, getCustomJavaSystemProperties, getJavaOpts, getJavaSystemProperties, getJmxContext, getJmxJavaSystemProperties, getJmxPort, getLogFileLocation, getRmiPort, getRmiServerPort, getShellEnvironment, installJava, isJmxEnabled, start
 
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
 

Constructor Detail

JavaWebAppSshDriver

public JavaWebAppSshDriver(JavaWebAppSoftwareProcess entity, SshMachineLocation machine)


 
Method Detail

deploy

@Override
public void deploy(java.io.File file)


deploy

@Override
public void deploy(java.io.File f, java.lang.String targetName)


deploy

@Override
public java.lang.String deploy(java.lang.String url, java.lang.String targetName)
deploys a URL as a webapp at the appserver; returns a token which can be used as an argument to undeploy, typically the web context with leading slash where the app can be reached (just "/" for ROOT)

see JavaWebAppSoftwareProcess#deploy(String, String)#deploy(String, String) for details of how input filenames are handled


getDeployDir

protected java.lang.String getDeployDir()


getDeploySubdir

protected java.lang.String getDeploySubdir()
if files should be placed on the server for deployment, override this to be the sub-directory of the runDir where they should be stored (or override getDeployDir() if they should be copied somewhere else, and set this null); if files are not copied to the server, but injected (e.g. JMX or uploaded) then override deploy(String, String) as appropriate, using getContextFromDeploymentTargetName(targetName) and override this to return null


getEnabledProtocols

@Override
public java.util.List getEnabledProtocols()


getEntity

public JavaWebAppSoftwareProcess getEntity()


getFilenameContextMapper

protected FilenameToWebContextMapper getFilenameContextMapper()


getHttpPort

@Override
public java.lang.Integer getHttpPort()


getHttpsPort

@Override
public java.lang.Integer getHttpsPort()


inferRootUrl

protected java.lang.String inferRootUrl()


isProtocolEnabled

protected boolean isProtocolEnabled(java.lang.String protocol)


postLaunch

@Override
public void postLaunch()


undeploy

public void undeploy(java.lang.String targetName)


 

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