|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer
public class TomcatGenericWebappsDeployer
This deployer is responsible for deploying/undeploying/updating those webapps.
org.wso2.carbon.tomcat| Field Summary | |
|---|---|
protected org.apache.axis2.context.ConfigurationContext |
configurationContext
|
protected Map<String,org.wso2.carbon.core.session.CarbonTomcatClusterableSessionManager> |
sessionManagerMap
|
protected String |
tenantDomain
|
protected int |
tenantId
|
protected Map<String,WebApplicationsHolder> |
webApplicationsHolderMap
|
protected String |
webContextPrefix
|
| Constructor Summary | |
|---|---|
TomcatGenericWebappsDeployer(String webContextPrefix,
int tenantId,
String tenantDomain,
Map<String,WebApplicationsHolder> webApplicationsHolderMap,
org.apache.axis2.context.ConfigurationContext configurationContext)
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String webContextPrefix
protected int tenantId
protected String tenantDomain
protected org.apache.axis2.context.ConfigurationContext configurationContext
protected Map<String,WebApplicationsHolder> webApplicationsHolderMap
protected Map<String,org.wso2.carbon.core.session.CarbonTomcatClusterableSessionManager> sessionManagerMap
| Constructor Detail |
|---|
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 - WebApplicationsHolder| Method Detail |
|---|
public 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 listeners
org.wso2.carbon.CarbonException - If a deployment error occurs
protected 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 listeners
org.wso2.carbon.CarbonException - If an error occurs during deployment
protected 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 listeners
org.wso2.carbon.CarbonException - If a deployment error occurs
protected 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 listeners
org.wso2.carbon.CarbonException - If a deployment error occurs
protected 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 listeners
org.wso2.carbon.CarbonException - If a deployment error occurs
public void undeploy(File webappFile)
throws org.wso2.carbon.CarbonException
webappFile - The webapp file to be undeployed
org.wso2.carbon.CarbonException - If an error occurs while undeploying webapp
public void lazyUnload(File webappFile)
throws org.wso2.carbon.CarbonException
webappFile - The webapp file to be undeployed
org.wso2.carbon.CarbonException - If an error occurs while lazy unloading
protected 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.ArtifactMetadataExceptionprotected String handleAppVersion(String warContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||