public static interface JavaWebAppService.CanDeployAndUndeploy extends Entity
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Modifier and Type | Field and Description |
---|---|
static MethodEffector<java.lang.Void> |
DEPLOY |
static AttributeSensor<java.util.Set<java.lang.String>> |
DEPLOYED_WARS |
static MethodEffector<java.lang.Void> |
UNDEPLOY |
Modifier and Type | Method and Description |
---|---|
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 |
undeploy(java.lang.String targetName)
For the DEPLOYED_WARS to be updated, the input must match the result of the call to deploy,
e.g.
|
addChild, addChild, addFeed, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEntityType, getIconUrl, getId, getLocations, getParent, groups, invoke, policies, relations, removeChild, sensors, setDisplayName, setParent
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
static final AttributeSensor<java.util.Set<java.lang.String>> DEPLOYED_WARS
static final MethodEffector<java.lang.Void> DEPLOY
static final MethodEffector<java.lang.Void> UNDEPLOY
void deploy(java.lang.String url, 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 abovevoid undeploy(java.lang.String targetName)