@Module public class WebAppController extends EnvironmentDeployController<WebApp,WebAppConfig>
Modifier and Type | Class and Description |
---|---|
class |
WebAppController.Var
EL variables for the app.
|
APPLICATION_HASH_PATH
_lifecycle, REDEPLOY_CHECK_INTERVAL
Constructor and Description |
---|
WebAppController(Path rootDirectory,
WebAppContainer container,
java.lang.String contextPath) |
WebAppController(java.lang.String id,
Path rootDirectory,
WebAppContainer container) |
WebAppController(java.lang.String id,
Path rootDirectory,
WebAppContainer container,
java.lang.String contextPath) |
Modifier and Type | Method and Description |
---|---|
void |
addDepend(Path path)
Adds a dependent file.
|
protected void |
addDependencies()
Adding any dependencies.
|
void |
clearCache()
Clears the
|
protected void |
configureInstanceVariables(WebApp webApp)
Creates the webApp.
|
boolean |
destroy()
Destroy the controller
|
protected void |
extendJMXContext(java.util.Map<java.lang.String,java.lang.String> context) |
protected void |
fillInitList(java.util.ArrayList<DeployConfig> initList) |
WebAppAdmin |
getAdmin()
Returns the admin.
|
WebAppContainer |
getContainer()
Returns the web-app container.
|
java.lang.String |
getContextPath()
Returns the webApp's canonical context path, e.g.
|
java.lang.String |
getContextPath(java.lang.String uri)
Returns the webApp's context path
|
protected DeployControllerAdmin<?> |
getDeployAdmin()
Returns the deploy admin.
|
Host |
getHost()
Returns the containing host.
|
long |
getLifetimeClientDisconnectCount() |
long |
getLifetimeConnectionCount() |
long |
getLifetimeConnectionTime() |
long |
getLifetimeReadBytes() |
long |
getLifetimeWriteBytes() |
protected java.util.logging.Logger |
getLog()
Returns the appropriate log for debugging.
|
protected java.lang.String |
getMBeanId() |
protected java.lang.String |
getMBeanTypeName() |
java.lang.String |
getName() |
WebAppController |
getParent()
Returns the parent controller.
|
java.lang.String |
getSourceType()
Returns the source (for backwards compatibility)
|
java.lang.String |
getURL()
Gets the URL
|
WebAppController.Var |
getVar()
Returns the var.
|
java.lang.String |
getVersion()
Gets the version id.
|
java.lang.String |
getWarName()
Gets the war name prefix.
|
WebApp |
getWebApp()
Returns the webApp object.
|
ServletService |
getWebManager() |
protected void |
initBegin()
Initialize the controller.
|
protected void |
initEnd()
Initialize the controller.
|
protected WebApp |
instantiateDeployInstance()
Instantiate the webApp.
|
boolean |
isDynamicDeploy()
Returns true for a dynamically deployed webApp.
|
boolean |
isInheritSession()
True for inherit-session webApps.
|
boolean |
isNameMatch(java.lang.String url)
Returns true if the controller matches.
|
boolean |
isVersionAlias()
versionAlias is true if a versioned web-app is currently acting
as the primary web-app.
|
protected boolean |
isVersioning() |
protected void |
onStartComplete() |
protected void |
onStop() |
protected void |
protectedWebApp()
Any extra steps needed to deploy the webApp.
|
protected void |
removeExpandFile(Path path,
java.lang.String relPath)
Override to prevent removing of special files.
|
void |
setDynamicDeploy(boolean isDynamicDeploy)
Set true for a dynamically deployed webApp.
|
void |
setInheritSession(boolean inheritSession)
True for inherit-session
|
void |
setOldWebApp(WebAppController oldWebApp,
long expireTime)
Sets the old version web-app.
|
void |
setParentWebApp(WebAppController parent)
Sets the parent controller.
|
void |
setRegexpValues(java.util.ArrayList<java.lang.String> values)
Sets the regexp values.
|
void |
setSourceType(java.lang.String type)
Sets the source (for backwards compatibility)
|
protected void |
setVersion(java.lang.String version)
Sets the version id.
|
void |
setVersionAlias(boolean isVersionAlias)
versionAlias is true if a versioned web-app is currently acting
as the primary web-app.
|
void |
setWarName(java.lang.String warName)
Sets the war name prefix.
|
java.lang.String |
toString()
Returns a printable view.
|
void |
updateStatistics(long milliseconds,
int readBytes,
int writeBytes,
boolean isClientDisconnect)
Update statistics with the results of one request.
|
addConfigDefault, configureInstance, environmentBind, environmentConfigure, environmentStart, environmentStop, getArchivePath, getClassPath, getConfig, getConfigException, getErrorMessage, getMBean, getObjectName, getPrologue, getRepositoryMetaData, getVariableMap, merge, setConfig, setConfigException, setPrologue
addExpandCleanupFileSet, addExpandPreserveFileset, addManifestClassPath, addParentExpandCleanupFileSet, controllerLogModified, deploy, deployImpl, equals, getAutoDeployStage, getAutoDeployTag, getManifest, getManifestAttributes, getRepository, getRootDirectory, getVersionDependency, hashCode, isAllowRepository, isControllerModified, isControllerModifiedNow, onActive, onDestroy, onError, onRemove, onTagChange, postConfigureInstance, postExtract, preConfigureInstance, removeExpandDirectory, removeExpandDirectory, removeExpandDirectory, setAllowRepository, setArchivePath, setDependencyCheckInterval, setRootDirectory, setVersionDependency, undeploy, undeployImpl
addLifecycleListener, alarm, close, createDeployInstance, destroyInstance, getActiveDeployInstance, getActiveWaitTime, getControllerType, getDeployInstance, getDeployInstanceImpl, getId, getIdKey, getIdStage, getIdType, getParentClassLoader, getRedeployCheckInterval, getRedeployMode, getStartTime, getStartupMode, getStartupPriority, getState, init, isIdleTimeout, isModified, isModifiedNow, logModified, mergeRedeployCheckInterval, mergeRedeployMode, remove, request, restart, setActiveWaitTimeMillis, setControllerType, setRedeployCheckInterval, setRedeployMode, setStartupMode, setStartupPriority, start, startImpl, startOnInit, stop, stopImpl, stopLazyImpl, subrequest, toRestart, toStart, toStop, update
public WebAppController(java.lang.String id, Path rootDirectory, WebAppContainer container)
public WebAppController(Path rootDirectory, WebAppContainer container, java.lang.String contextPath)
public WebAppController(java.lang.String id, Path rootDirectory, WebAppContainer container, java.lang.String contextPath)
public java.lang.String getName()
public java.lang.String getContextPath()
protected boolean isVersioning()
public java.lang.String getContextPath(java.lang.String uri)
public void setWarName(java.lang.String warName)
public java.lang.String getWarName()
public java.lang.String getURL()
public WebAppController getParent()
public WebAppContainer getContainer()
public ServletService getWebManager()
public void setParentWebApp(WebAppController parent)
public Host getHost()
public java.lang.String getSourceType()
public void setSourceType(java.lang.String type)
public void setRegexpValues(java.util.ArrayList<java.lang.String> values)
public boolean isInheritSession()
public void setInheritSession(boolean inheritSession)
public WebApp getWebApp()
public void setDynamicDeploy(boolean isDynamicDeploy)
public boolean isDynamicDeploy()
protected java.lang.String getMBeanTypeName()
getMBeanTypeName
in class EnvironmentDeployController<WebApp,WebAppConfig>
protected java.lang.String getMBeanId()
getMBeanId
in class EnvironmentDeployController<WebApp,WebAppConfig>
protected void setVersion(java.lang.String version)
public java.lang.String getVersion()
public void setVersionAlias(boolean isVersionAlias)
public boolean isVersionAlias()
public void setOldWebApp(WebAppController oldWebApp, long expireTime)
protected DeployControllerAdmin<?> getDeployAdmin()
getDeployAdmin
in class EnvironmentDeployController<WebApp,WebAppConfig>
protected void initEnd()
EnvironmentDeployController
initEnd
in class EnvironmentDeployController<WebApp,WebAppConfig>
public WebAppAdmin getAdmin()
public boolean isNameMatch(java.lang.String url)
isNameMatch
in interface DeployControllerApi<WebApp>
isNameMatch
in class EnvironmentDeployController<WebApp,WebAppConfig>
public WebAppController.Var getVar()
protected void protectedWebApp() throws java.lang.Exception
java.lang.Exception
protected void addDependencies()
addDependencies
in class ExpandDeployController<WebApp>
public void addDepend(Path path)
protected void initBegin()
initBegin
in class DeployController<WebApp>
protected void fillInitList(java.util.ArrayList<DeployConfig> initList)
fillInitList
in class EnvironmentDeployController<WebApp,WebAppConfig>
protected WebApp instantiateDeployInstance()
instantiateDeployInstance
in class DeployController<WebApp>
protected void configureInstanceVariables(WebApp webApp)
configureInstanceVariables
in class EnvironmentDeployController<WebApp,WebAppConfig>
protected void onStartComplete()
onStartComplete
in class DeployController<WebApp>
protected void onStop()
onStop
in class ExpandDeployController<WebApp>
public void clearCache()
public boolean destroy()
destroy
in class EnvironmentDeployController<WebApp,WebAppConfig>
protected void extendJMXContext(java.util.Map<java.lang.String,java.lang.String> context)
extendJMXContext
in class EnvironmentDeployController<WebApp,WebAppConfig>
protected void removeExpandFile(Path path, java.lang.String relPath) throws java.io.IOException
removeExpandFile
in class ExpandDeployController<WebApp>
java.io.IOException
public long getLifetimeConnectionCount()
public long getLifetimeConnectionTime()
public long getLifetimeReadBytes()
public long getLifetimeWriteBytes()
public long getLifetimeClientDisconnectCount()
public void updateStatistics(long milliseconds, int readBytes, int writeBytes, boolean isClientDisconnect)
milliseconds
- the number of millesconds for the requestreadBytes
- the number of bytes readwriteBytes
- the number of bytes writtenisClientDisconnect
- true if the request ended with a client DisconnectExceptionprotected java.util.logging.Logger getLog()
DeployController
getLog
in class DeployController<WebApp>
public java.lang.String toString()
toString
in class EnvironmentDeployController<WebApp,WebAppConfig>