| org.apache.catalina.cluster.ClusterDeployer
All known Subclasses: org.apache.catalina.cluster.deploy.FarmWarDeployer,
Field Summary | |
public String | info Descriptive information about this component implementation. |
Method Summary | |
public CatalinaCluster | getCluster() | public void | install(String contextPath, URL war) Install a new web application, whose web application archive is at the
specified URL, into this container and all the other
members of the cluster with the specified context path.
A context path of "" (the empty string) should be used for the root
application for this container. | public void | remove(String contextPath, boolean undeploy) Remove an existing web application, attached to the specified context
path. | public void | setCluster(CatalinaCluster cluster) | public void | setDeployer(Deployer deployer) Sets the deployer for this cluster deployer to use. | public void | start() | public void | stop() |
info | public String info(Code) | | Descriptive information about this component implementation.
|
getCluster | public CatalinaCluster getCluster()(Code) | | Returns the cluster the cluster deployer is associated with
CatalinaCluster |
install | public void install(String contextPath, URL war) throws IOException(Code) | | Install a new web application, whose web application archive is at the
specified URL, into this container and all the other
members of the cluster with the specified context path.
A context path of "" (the empty string) should be used for the root
application for this container. Otherwise, the context path must
start with a slash.
If this application is successfully installed locally,
a ContainerEvent of type
INSTALL_EVENT will be sent to all registered listeners,
with the newly created Context as an argument.
Parameters: contextPath - The context path to which this application shouldbe installed (must be unique) Parameters: war - A URL of type "jar:" that points to a WAR file, or type"file:" that points to an unpacked directory structure containingthe web application to be installed exception: IllegalArgumentException - if the specified context pathis malformed (it must be "" or start with a slash) exception: IllegalStateException - if the specified context pathis already attached to an existing web application exception: IOException - if an input/output error was encounteredduring installation |
remove | public void remove(String contextPath, boolean undeploy) throws IOException(Code) | | Remove an existing web application, attached to the specified context
path. If this application is successfully removed, a
ContainerEvent of type REMOVE_EVENT will be sent to all
registered listeners, with the removed Context as
an argument. Deletes the web application war file and/or directory
if they exist in the Host's appBase.
Parameters: contextPath - The context path of the application to be removed Parameters: undeploy - boolean flag to remove web application from server exception: IllegalArgumentException - if the specified context pathis malformed (it must be "" or start with a slash) exception: IllegalArgumentException - if the specified context path doesnot identify a currently installed web application exception: IOException - if an input/output error occurs duringremoval |
setCluster | public void setCluster(CatalinaCluster cluster)(Code) | | Associates the cluster deployer with a cluster
Parameters: cluster - CatalinaCluster |
setDeployer | public void setDeployer(Deployer deployer)(Code) | | Sets the deployer for this cluster deployer to use.
Parameters: deployer - Deployer |
start | public void start() throws Exception(Code) | | Start the cluster deployer, the owning container will invoke this
throws: Exception - - if failure to start cluster |
stop | public void stop() throws LifecycleException(Code) | | Stops the cluster deployer, the owning container will invoke this
throws: LifecycleException - |
|
|