public interface ClusterDeployer extends ChannelListener
| Modifier and Type | Method and Description |
|---|---|
void |
backgroundProcess()
call from container Background Process
|
CatalinaCluster |
getCluster()
Returns the cluster the cluster deployer is associated with
|
void |
install(java.lang.String contextName,
java.io.File webapp)
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 name.
|
void |
remove(java.lang.String contextName,
boolean undeploy)
Remove an existing web application, attached to the specified context
name.
|
void |
setCluster(CatalinaCluster cluster)
Associates the cluster deployer with a cluster
|
void |
start()
Start the cluster deployer, the owning container will invoke this
|
void |
stop()
Stops the cluster deployer, the owning container will invoke this
|
accept, equals, hashCode, messageReceivedvoid start()
throws java.lang.Exception
java.lang.Exception - - if failure to start clustervoid stop() throws LifecycleException
LifecycleException - Error stopping cluster deployervoid install(java.lang.String contextName,
java.io.File webapp)
throws java.io.IOException
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.
contextName - The context name to which this application should
be installed (must be unique)webapp - A WAR file or unpacked directory structure containing
the web application to be installedjava.lang.IllegalArgumentException - if the specified context name
is malformedjava.lang.IllegalStateException - if the specified context name
is already attached to an existing web applicationjava.io.IOException - if an input/output error was encountered
during installationvoid remove(java.lang.String contextName,
boolean undeploy)
throws java.io.IOException
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.contextName - The context name of the application to be removedundeploy - boolean flag to remove web application from serverjava.lang.IllegalArgumentException - if the specified context name
is malformedjava.lang.IllegalArgumentException - if the specified context name does
not identify a currently installed web applicationjava.io.IOException - if an input/output error occurs during
removalvoid backgroundProcess()
CatalinaCluster getCluster()
void setCluster(CatalinaCluster cluster)
cluster - CatalinaClusterCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.