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, 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
JavaWebAppSshDriver(JavaWebAppSoftwareProcessImpl 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.

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

JavaWebAppSoftwareProcessImpl getEntity()

FilenameToWebContextMapper getFilenameContextMapper()

java.lang.Integer getHttpPort()

java.lang.Integer getHttpsPort()

HttpsSslConfig getHttpsSslConfig()

protected java.lang.String getSslKeyAlias()

protected java.lang.String getSslKeystorePassword()

protected java.lang.String getSslKeystoreUrl()

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, getJmxJavaConfigOptions, getJmxJavaSystemProperties, getJmxPort, getJmxSslSupport, getLogFileLocation, getRmiPort, getRmiServerPort, getShellEnvironment, installJava, installJmxSupport, isJmxEnabled, isJmxSslEnabled, start
 
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
 

Constructor Detail

JavaWebAppSshDriver

public JavaWebAppSshDriver(JavaWebAppSoftwareProcessImpl 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 Also:
JavaWebAppSoftwareProcess#deploy(String, String)#deploy(String, String)


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 JavaWebAppSoftwareProcessImpl getEntity()


getFilenameContextMapper

@Override
public FilenameToWebContextMapper getFilenameContextMapper()


getHttpPort

@Override
public java.lang.Integer getHttpPort()


getHttpsPort

@Override
public java.lang.Integer getHttpsPort()


getHttpsSslConfig

@Override
public HttpsSslConfig getHttpsSslConfig()


getSslKeyAlias

protected java.lang.String getSslKeyAlias()


getSslKeystorePassword

protected java.lang.String getSslKeystorePassword()


getSslKeystoreUrl

protected java.lang.String getSslKeystoreUrl()


inferRootUrl

protected java.lang.String inferRootUrl()


isProtocolEnabled

protected boolean isProtocolEnabled(java.lang.String protocol)


postLaunch

@Override
public void postLaunch()


undeploy

@Override
public void undeploy(java.lang.String targetName)


 

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