Brooklyn

brooklyn.entity.webapp
[Java] Class JavaWebAppSoftwareProcessImpl

java.lang.Object
  brooklyn.entity.basic.AbstractEntity
      brooklyn.entity.basic.SoftwareProcessImpl
          brooklyn.entity.webapp.JavaWebAppSoftwareProcessImpl
All Implemented Interfaces:
JavaWebAppService, JavaWebAppSoftwareProcess

public abstract class JavaWebAppSoftwareProcessImpl
extends SoftwareProcessImpl

Field Summary
 
Fields inherited from class SoftwareProcessImpl
connectedSensors
 
Fields inherited from class AbstractEntity
EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, 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()

protected void doStop()

JavaWebAppDriver getDriver()

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 SoftwareProcessImpl
callRebindHooks, callStartHooks, checkModifiable, connectSensors, connectServiceUpIsRunning, disconnectSensors, disconnectServiceUpIsRunning, doInitDriver, doRestart, doStart, doStop, getDriver, getLocalHostname, getMachineOrNull, getProvisioningFlags, getProvisioningLocation, getRequiredOpenPorts, newDriver, obtainProvisioningFlags, onManagementStarted, onManagementStarting, postDriverStart, postRebind, postStart, preStart, preStop, rebind, restart, setProvisioningLocation, start, startInLocation, startInLocation, startInLocation, startInLocation, stop, waitForEntityStart, waitForServiceUp, waitForServiceUp, waitForServiceUp, waitForServiceUp
 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addPolicy, clearLocations, clearParent, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getIconUrl, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hashCode, init, invalidateReferences, invoke, invoke, invoke, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribe
 

Constructor Detail

JavaWebAppSoftwareProcessImpl

public JavaWebAppSoftwareProcessImpl()


JavaWebAppSoftwareProcessImpl

public JavaWebAppSoftwareProcessImpl(Entity parent)


JavaWebAppSoftwareProcessImpl

public JavaWebAppSoftwareProcessImpl(java.util.Map flags)


JavaWebAppSoftwareProcessImpl

public JavaWebAppSoftwareProcessImpl(java.util.Map flags, Entity parent)


 
Method Detail

connectSensors

@Override
protected void connectSensors()


deploy

@EffectorParam(name="url", description="URL of WAR file") String url,
public void deploy({ java.lang.String url, checkNotNull(url, "url"); java.lang.String targetName)
Deploys the given artifact, from a source URL, to a given deployment filename/context. There is some variance in expected filename/context at various servers, so the following conventions are followed:

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!

Parameters:
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


deployInitialWars

public void deployInitialWars()


doStop

// vs them just showing the last known value...)
protected void doStop()


getDriver

public JavaWebAppDriver getDriver()


undeploy

try {
JavaWebAppDriver driver = getDriver();
public void undeploy( java.lang.String targetName)
For the DEPLOYED_WARS to be updated, the input must match the result of the call to deploy


 

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