Save This Page
Home » glassfish-v2ur2-b04-src » org.apache » catalina » ha » [javadoc | source]
org.apache.catalina.ha
public interface: ClusterDeployer [javadoc | source]

All Implemented Interfaces:
    ChannelListener

All Known Implementing Classes:
    FarmWarDeployer

A ClusterDeployer interface allows to plug in and out the different deployment implementations
Field Summary
public  String info    Descriptive information about this component implementation. 
Method from org.apache.catalina.ha.ClusterDeployer Summary:
backgroundProcess,   getCluster,   install,   remove,   setCluster,   start,   stop
Method from org.apache.catalina.ha.ClusterDeployer Detail:
 public  void backgroundProcess()
    call from container Background Process
 public CatalinaCluster getCluster()
    Returns the cluster the cluster deployer is associated with
 public  void install(String contextPath,
    URL war) throws IOException
    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.

 public  void remove(String contextPath,
    boolean undeploy) throws IOException
    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.
 public  void setCluster(CatalinaCluster cluster)
    Associates the cluster deployer with a cluster
 public  void start() throws Exception
    Start the cluster deployer, the owning container will invoke this
 public  void stop() throws LifecycleException
    Stops the cluster deployer, the owning container will invoke this