public class TomcatGenericWebappsDeployer extends Object
org.wso2.carbon.tomcat
Modifier and Type | Field and Description |
---|---|
protected org.apache.axis2.context.ConfigurationContext |
configurationContext |
protected Map<String,org.apache.catalina.Manager> |
sessionManagerMap |
protected String |
tenantDomain |
protected int |
tenantId |
protected Map<String,WebApplicationsHolder> |
webApplicationsHolderMap |
protected String |
webContextPrefix |
Constructor and Description |
---|
TomcatGenericWebappsDeployer(String webContextPrefix,
int tenantId,
String tenantDomain,
Map<String,WebApplicationsHolder> webApplicationsHolderMap,
org.apache.axis2.context.ConfigurationContext configurationContext)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
deploy(File webappFile,
List<WebContextParameter> webContextParams,
List<Object> applicationEventListeners)
Deploy webapps
|
protected String |
handleAppVersion(String warContext) |
protected void |
handleExplodedWebappDeployment(File webappDir,
List<WebContextParameter> webContextParams,
List<Object> applicationEventListeners)
Handle the deployment of a an exploded webapp.
|
protected void |
handleHotDeployment(File webapp,
List<WebContextParameter> webContextParams,
List<Object> applicationEventListeners)
Hot deploy a webapp.
|
protected void |
handleHotUpdate(WebApplication webApplication,
List<WebContextParameter> webContextParams,
List<Object> applicationEventListeners)
Hot update an existing webapp.
|
protected void |
handleWarWebappDeployment(File webappWAR,
List<WebContextParameter> webContextParams,
List<Object> applicationEventListeners)
Handle the deployment of a an archive webapp.
|
protected void |
handleWebappDeployment(File webappFile,
String contextStr,
List<WebContextParameter> webContextParams,
List<Object> applicationEventListeners) |
protected void |
handleZipWebappDeployment(File webapp,
List<WebContextParameter> webContextParams,
List<Object> applicationEventListeners) |
void |
lazyUnload(File webappFile)
Handle undeployment.
|
protected String |
recievePersistedWebappMetaData(File webappFile,
String propertyName)
This method reads from webapp meta files to check weather bam statistics are enabled.
|
protected void |
setPersistedWebappMetaData(File webappFile,
String propertyName,
String value)
This method stores the value in the webapp metadata file.
|
void |
undeploy(File webappFile)
Handle undeployment.
|
protected String webContextPrefix
protected int tenantId
protected String tenantDomain
protected org.apache.axis2.context.ConfigurationContext configurationContext
protected Map<String,WebApplicationsHolder> webApplicationsHolderMap
public TomcatGenericWebappsDeployer(String webContextPrefix, int tenantId, String tenantDomain, Map<String,WebApplicationsHolder> webApplicationsHolderMap, org.apache.axis2.context.ConfigurationContext configurationContext)
webContextPrefix
- The Web context prefixtenantId
- The tenant ID of the tenant to whom this deployer belongs totenantDomain
- The tenant domain of the tenant to whom this deployer belongs towebApplicationsHolderMap
- WebApplicationsHolderpublic void deploy(File webappFile, List<WebContextParameter> webContextParams, List<Object> applicationEventListeners) throws org.wso2.carbon.CarbonException
webappFile
- The webapp file to be deployedwebContextParams
- context-params for this webappapplicationEventListeners
- Application event listenersorg.wso2.carbon.CarbonException
- If a deployment error occursprotected void handleHotDeployment(File webapp, List<WebContextParameter> webContextParams, List<Object> applicationEventListeners) throws org.wso2.carbon.CarbonException
webapp
- The webapp WAR or directory that needs to be deployedwebContextParams
- ServletContext params for this webappapplicationEventListeners
- Application event listenersorg.wso2.carbon.CarbonException
- If an error occurs during deploymentprotected void handleWarWebappDeployment(File webappWAR, List<WebContextParameter> webContextParams, List<Object> applicationEventListeners) throws org.wso2.carbon.CarbonException
webappWAR
- The WAR webapp filewebContextParams
- ServletContext params for this webappapplicationEventListeners
- Application event listenersorg.wso2.carbon.CarbonException
- If a deployment error occursprotected void handleZipWebappDeployment(File webapp, List<WebContextParameter> webContextParams, List<Object> applicationEventListeners) throws org.wso2.carbon.CarbonException
org.wso2.carbon.CarbonException
protected void handleExplodedWebappDeployment(File webappDir, List<WebContextParameter> webContextParams, List<Object> applicationEventListeners) throws org.wso2.carbon.CarbonException
webappDir
- The exploded webapp directorywebContextParams
- ServletContext params for this webappapplicationEventListeners
- Application event listenersorg.wso2.carbon.CarbonException
- If a deployment error occursprotected void handleWebappDeployment(File webappFile, String contextStr, List<WebContextParameter> webContextParams, List<Object> applicationEventListeners) throws org.wso2.carbon.CarbonException
org.wso2.carbon.CarbonException
protected void handleHotUpdate(WebApplication webApplication, List<WebContextParameter> webContextParams, List<Object> applicationEventListeners) throws org.wso2.carbon.CarbonException
webApplication
- The webapp which needs to be hot updatedwebContextParams
- ServletContext params for this webappapplicationEventListeners
- Application event listenersorg.wso2.carbon.CarbonException
- If a deployment error occurspublic void undeploy(File webappFile) throws org.wso2.carbon.CarbonException
webappFile
- The webapp file to be undeployedorg.wso2.carbon.CarbonException
- If an error occurs while undeploying webapppublic void lazyUnload(File webappFile) throws org.wso2.carbon.CarbonException
webappFile
- The webapp file to be undeployedorg.wso2.carbon.CarbonException
- If an error occurs while lazy unloadingprotected String recievePersistedWebappMetaData(File webappFile, String propertyName) throws org.apache.axis2.AxisFault, org.wso2.carbon.core.persistence.metadata.ArtifactMetadataException
webappFile
- propertyName
- org.apache.axis2.AxisFault
org.wso2.carbon.core.persistence.metadata.ArtifactMetadataException
protected void setPersistedWebappMetaData(File webappFile, String propertyName, String value) throws org.apache.axis2.AxisFault, org.wso2.carbon.core.persistence.metadata.ArtifactMetadataException
webappFile
- propertyName
- value
- org.apache.axis2.AxisFault
org.wso2.carbon.core.persistence.metadata.ArtifactMetadataException
Copyright © 2018 WSO2. All rights reserved.