|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.deploy.DeployController<I>
com.caucho.server.deploy.ExpandDeployController<I>
com.caucho.server.deploy.EnvironmentDeployController<WebApp,WebAppConfig>
com.caucho.server.webapp.WebAppController
public class WebAppController
A configuration entry for a web-app.
| Nested Class Summary | |
|---|---|
class |
WebAppController.Var
EL variables for the app. |
| Field Summary | |
|---|---|
protected WebAppContainer |
_container
|
| Fields inherited from class com.caucho.server.deploy.DeployController |
|---|
_lifecycle, REDEPLOY_AUTOMATIC, REDEPLOY_CHECK_INTERVAL, REDEPLOY_DEFAULT, REDEPLOY_LAZY, REDEPLOY_MANUAL, STARTUP_AUTOMATIC, STARTUP_DEFAULT, STARTUP_LAZY, STARTUP_MANUAL |
| Constructor Summary | |
|---|---|
WebAppController()
|
|
WebAppController(java.lang.String name,
java.lang.String contextPath,
Path rootDirectory,
WebAppContainer container)
|
|
| Method Summary | |
|---|---|
void |
addDepend(Path path)
Adds a dependent file. |
protected void |
addDependencies()
Adding any dependencies. |
protected Path |
calculateRootDirectory()
|
protected void |
configureInstanceVariables(WebApp app)
Creates the webApp. |
boolean |
destroy()
Returns the webApp object. |
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 context path |
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()
|
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. |
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. |
protected WebAppController |
merge(WebAppController newController)
Merges two entries. |
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 |
setContextPath(java.lang.String contextPath)
Sets the webApp's context path |
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 |
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. |
| Methods inherited from class com.caucho.server.deploy.EnvironmentDeployController |
|---|
addConfigDefault, configureInstance, environmentBind, environmentConfigure, environmentStart, environmentStop, getArchivePath, getConfig, getConfigException, getMBean, getObjectName, getPrologue, getVariableMap, mergeController, setConfig, setConfigException, setPrologue |
| Methods inherited from class com.caucho.server.deploy.ExpandDeployController |
|---|
addManifestClassPath, equals, expandArchive, getGit, getGitRefPath, getManifest, getManifestAttributes, getRootDirectory, hashCode, removeExpandDirectory, removeExpandDirectory, setArchivePath, setExpandCleanupFileSet, setGit, setGitRefPath, setManifestClassLoader, setRootDirectory |
| Methods inherited from class com.caucho.server.deploy.DeployController |
|---|
addLifecycleListener, getDeployInstance, getId, getParentClassLoader, getRedeployCheckInterval, getRedeployMode, getStartTime, getStartupMode, getStartupPriority, getState, handleAlarm, init, isActive, isActiveIdle, isDestroyed, isError, isErrorNow, isModified, isModifiedNow, isStopped, isStoppedLazy, logModified, mergeRedeployCheckInterval, mergeRedeployMode, mergeStartupMode, request, restart, setRedeployCheckInterval, setRedeployMode, setStartupMode, setStartupPriority, start, startImpl, startOnInit, stop, subrequest, toRedeployCode, toStartupCode, update |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected WebAppContainer _container
| Constructor Detail |
|---|
public WebAppController()
public WebAppController(java.lang.String name,
java.lang.String contextPath,
Path rootDirectory,
WebAppContainer container)
| Method Detail |
|---|
public java.lang.String getContextPath()
public void setContextPath(java.lang.String contextPath)
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 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 DeployController<WebApp>protected java.lang.String getMBeanId()
getMBeanId in class DeployController<WebApp>protected void setVersion(java.lang.String version)
public java.lang.String getVersion()
public void setOldWebApp(WebAppController oldWebApp,
long expireTime)
protected DeployControllerAdmin getDeployAdmin()
getDeployAdmin in class DeployController<WebApp>protected void initEnd()
EnvironmentDeployController
initEnd in class EnvironmentDeployController<WebApp,WebAppConfig>public WebAppAdmin getAdmin()
public boolean isNameMatch(java.lang.String url)
isNameMatch in class EnvironmentDeployController<WebApp,WebAppConfig>protected WebAppController merge(WebAppController newController)
public WebAppController.Var getVar()
public boolean destroy()
destroy in class EnvironmentDeployController<WebApp,WebAppConfig>
protected void protectedWebApp()
throws java.lang.Exception
java.lang.Exception
protected void addDependencies()
throws java.lang.Exception
java.lang.Exceptionpublic 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 app)
throws java.lang.Throwable
configureInstanceVariables in class EnvironmentDeployController<WebApp,WebAppConfig>java.lang.Throwableprotected void extendJMXContext(java.util.Map<java.lang.String,java.lang.String> context)
extendJMXContext in class EnvironmentDeployController<WebApp,WebAppConfig>
protected Path calculateRootDirectory()
throws ELException
ELException
protected void removeExpandFile(Path path,
java.lang.String relPath)
throws java.io.IOException
removeExpandFile in class ExpandDeployController<WebApp>java.io.IOExceptionpublic 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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||