com.caucho.server.webapp
Class WebAppVersioningController

java.lang.Object
  extended by com.caucho.env.deploy.DeployController<I>
      extended by com.caucho.env.deploy.ExpandDeployController<I>
          extended by com.caucho.env.deploy.EnvironmentDeployController<WebApp,WebAppConfig>
              extended by com.caucho.server.webapp.WebAppController
                  extended by com.caucho.server.webapp.WebAppVersioningController
All Implemented Interfaces:
DeployActionHandler, DeployControllerApi<WebApp>, RepositoryTagListener, EnvironmentListener, Dependency

public class WebAppVersioningController
extends WebAppController

A configuration entry for a versioning web-app.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.server.webapp.WebAppController
WebAppController.Var
 
Field Summary
 
Fields inherited from class com.caucho.env.deploy.ExpandDeployController
APPLICATION_HASH_PATH
 
Fields inherited from class com.caucho.env.deploy.DeployController
_lifecycle, REDEPLOY_CHECK_INTERVAL
 
Constructor Summary
WebAppVersioningController(java.lang.String id, java.lang.String baseKey, java.lang.String contextPath, WebAppExpandDeployGenerator generator, WebAppContainer container)
           
 
Method Summary
protected  void destroyInstance(WebApp instance)
           
 WebAppAdmin getAdmin()
          Returns the admin.
 DeployControllerType getControllerType()
          Returns the controller type
 WebApp getDeployInstance()
          Returns the current instance.
 java.lang.String getVersion()
          Gets the version id.
protected  void initBegin()
          Initialize the controller.
protected  void initEnd()
          Initialize the controller.
 WebApp instantiateDeployInstance()
          Returns the instance for a top-level request
 boolean isModified()
          Returns true if the entry is modified.
 boolean isVersioning()
           
 void merge(DeployControllerApi<WebApp> newControllerV)
          Merges with the old controller.
protected  WebApp startImpl()
          Starts the entry.
protected  void stopImpl()
          Stops the current instance.
protected  void stopLazyImpl()
          Stops the current instance, putting it in the lazy state.
 java.lang.String toString()
          Returns a printable view.
 boolean updateVersion()
           
 
Methods inherited from class com.caucho.server.webapp.WebAppController
addDepend, addDependencies, clearCache, configureInstanceVariables, destroy, extendJMXContext, fillInitList, getContainer, getContextPath, getContextPath, getDeployAdmin, getHost, getLifetimeClientDisconnectCount, getLifetimeConnectionCount, getLifetimeConnectionTime, getLifetimeReadBytes, getLifetimeWriteBytes, getLog, getMBeanId, getMBeanTypeName, getName, getParent, getSourceType, getURL, getVar, getWarName, getWebApp, getWebManager, isDynamicDeploy, isInheritSession, isNameMatch, isVersionAlias, onStartComplete, onStop, protectedWebApp, removeExpandFile, setDynamicDeploy, setInheritSession, setOldWebApp, setParentWebApp, setRegexpValues, setSourceType, setVersion, setVersionAlias, setWarName, updateStatistics
 
Methods inherited from class com.caucho.env.deploy.EnvironmentDeployController
addConfigDefault, configureInstance, environmentBind, environmentConfigure, environmentStart, environmentStop, getArchivePath, getConfig, getConfigException, getErrorMessage, getMBean, getObjectName, getPrologue, getRepositoryMetaData, getVariableMap, setConfig, setConfigException, setPrologue
 
Methods inherited from class com.caucho.env.deploy.ExpandDeployController
addExpandCleanupFileSet, addExpandPreserveFileset, addManifestClassPath, controllerLogModified, deploy, deployImpl, equals, getAutoDeployStage, getAutoDeployTag, getManifest, getManifestAttributes, getRepository, getRootDirectory, getVersionDependency, hashCode, isAllowRepository, isControllerModified, isControllerModifiedNow, onActive, onDestroy, onError, onTagChange, postConfigureInstance, postExtract, preConfigureInstance, removeExpandDirectory, removeExpandDirectory, setAllowRepository, setArchivePath, setDependencyCheckInterval, setRootDirectory, setVersionDependency
 
Methods inherited from class com.caucho.env.deploy.DeployController
addLifecycleListener, alarm, close, createDeployInstance, getActiveDeployInstance, getActiveWaitTime, getDeployInstanceImpl, getId, getIdKey, getIdStage, getIdType, getParentClassLoader, getRedeployCheckInterval, getRedeployMode, getStartTime, getStartupMode, getStartupPriority, getState, init, isIdleTimeout, isModifiedNow, logModified, mergeRedeployCheckInterval, mergeRedeployMode, request, restart, setActiveWaitTimeMillis, setControllerType, setRedeployCheckInterval, setRedeployMode, setStartupMode, setStartupPriority, start, startOnInit, stop, subrequest, toRestart, toStart, toStop, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebAppVersioningController

public WebAppVersioningController(java.lang.String id,
                                  java.lang.String baseKey,
                                  java.lang.String contextPath,
                                  WebAppExpandDeployGenerator generator,
                                  WebAppContainer container)
Method Detail

isVersioning

public boolean isVersioning()
Overrides:
isVersioning in class WebAppController

getControllerType

public DeployControllerType getControllerType()
Description copied from interface: DeployControllerApi
Returns the controller type

Specified by:
getControllerType in interface DeployControllerApi<WebApp>
Overrides:
getControllerType in class DeployController<WebApp>

getVersion

public java.lang.String getVersion()
Description copied from class: WebAppController
Gets the version id.

Overrides:
getVersion in class WebAppController

getAdmin

public WebAppAdmin getAdmin()
Description copied from class: WebAppController
Returns the admin.

Overrides:
getAdmin in class WebAppController

instantiateDeployInstance

public WebApp instantiateDeployInstance()
Returns the instance for a top-level request

Overrides:
instantiateDeployInstance in class WebAppController
Returns:
the request object or null for none.

startImpl

protected WebApp startImpl()
Starts the entry.

Overrides:
startImpl in class DeployController<WebApp>

getDeployInstance

public WebApp getDeployInstance()
Description copied from class: DeployController
Returns the current instance.

Specified by:
getDeployInstance in interface DeployControllerApi<WebApp>
Overrides:
getDeployInstance in class DeployController<WebApp>

stopImpl

protected void stopImpl()
Description copied from class: DeployController
Stops the current instance.

Overrides:
stopImpl in class DeployController<WebApp>

stopLazyImpl

protected void stopLazyImpl()
Description copied from class: DeployController
Stops the current instance, putting it in the lazy state.

Overrides:
stopLazyImpl in class DeployController<WebApp>

destroyInstance

protected void destroyInstance(WebApp instance)
Overrides:
destroyInstance in class DeployController<WebApp>

initBegin

protected void initBegin()
Initialize the controller.

Overrides:
initBegin in class WebAppController

initEnd

protected void initEnd()
Initialize the controller.

Overrides:
initEnd in class WebAppController

isModified

public boolean isModified()
Description copied from class: DeployController
Returns true if the entry is modified.

Specified by:
isModified in interface Dependency
Overrides:
isModified in class DeployController<WebApp>

merge

public void merge(DeployControllerApi<WebApp> newControllerV)
Description copied from class: EnvironmentDeployController
Merges with the old controller.

Specified by:
merge in interface DeployControllerApi<WebApp>
Overrides:
merge in class EnvironmentDeployController<WebApp,WebAppConfig>

updateVersion

public boolean updateVersion()

toString

public java.lang.String toString()
Returns a printable view.

Overrides:
toString in class WebAppController