|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
brooklyn.entity.basic.AbstractEntity
brooklyn.entity.basic.SoftwareProcessImpl
brooklyn.entity.webapp.JavaWebAppSoftwareProcessImpl
public abstract class JavaWebAppSoftwareProcessImpl extends SoftwareProcessImpl
Field Summary |
---|
Fields inherited from class SoftwareProcessImpl | |
---|---|
sensorRegistry |
Fields inherited from class AbstractEntity | |
---|---|
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings |
Constructor Summary | |
JavaWebAppSoftwareProcessImpl()
|
|
JavaWebAppSoftwareProcessImpl(Entity parent)
|
|
JavaWebAppSoftwareProcessImpl(java.util.Map flags)
|
|
JavaWebAppSoftwareProcessImpl(java.util.Map flags, Entity parent)
|
Method Summary | |
---|---|
protected void
|
connectSensors()
|
void
|
deploy(java.lang.String url, java.lang.String targetName)
Deploys the given artifact, from a source URL, to a given deployment filename/context. |
void
|
deployInitialWars()
|
JavaWebAppDriver
|
getDriver()
|
void
|
stop()
|
void
|
undeploy(java.lang.String targetName)
For the DEPLOYED_WARS to be updated, the input must match the result of the call to deploy |
Methods inherited from class groovy.lang.GroovyObjectSupport | |
---|---|
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Constructor Detail |
---|
public JavaWebAppSoftwareProcessImpl()
public JavaWebAppSoftwareProcessImpl(Entity parent)
public JavaWebAppSoftwareProcessImpl(java.util.Map flags)
public JavaWebAppSoftwareProcessImpl(java.util.Map flags, Entity parent)
Method Detail |
---|
@Override protected void connectSensors()
@Description("Deploys the given artifact, from a source URL, to a given deployment filename/context") public void deploy(@NamedParameter("url") @Description("URL of WAR file") java.lang.String url, @NamedParameter("targetName") @Description("context path where WAR should be deployed (/ for ROOT)") java.lang.String targetName)
either ROOT.WAR or / denotes root context
anything of form FOO.?AR (ending .?AR) is copied with that name (unless copying not necessary) and is expected to be served from /FOO
anything of form /FOO (with leading slash) is expected to be served from /FOO (and is copied as FOO.WAR)
anything of form FOO (without a dot) is expected to be served from /FOO (and is copied as FOO.WAR)
otherwise please note behaviour may vary on different appservers; e.g. FOO.FOO would probably be ignored on appservers which expect a file copied across (usually), but served as /FOO.FOO on systems that take a deployment context.
See FileNameToContextMappingTest for definitive examples!
url
- where to get the war, as a URL, either classpath://xxx or file:///home/xxx or http(s)...targetName
- where to tell the server to serve the WAR, see above
public void deployInitialWars()
public JavaWebAppDriver getDriver()
@Override public void stop()
@Description("Undeploys the given context/artifact") public void undeploy(@NamedParameter("targetName") java.lang.String targetName)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.