fhanik      2003/03/19 16:19:27

  Modified:    modules/cluster/src/share/org/apache/catalina/cluster/tcp
                        SimpleTcpCluster.java
  Log:
  added in empty methods for compilations
  
  Revision  Changes    Path
  1.7       +80 -6     
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java
  
  Index: SimpleTcpCluster.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SimpleTcpCluster.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SimpleTcpCluster.java     15 Mar 2003 00:20:56 -0000      1.6
  +++ SimpleTcpCluster.java     20 Mar 2003 00:19:27 -0000      1.7
  @@ -101,9 +101,11 @@
   
   import org.apache.commons.logging.Log;
   
  -
  +import java.io.IOException;
  +import java.net.URL;
   /**
  - * A <b>Cluster</b> implementation using JavaGroups. Responsible for setting
  + * A <b>Cluster</b> implementation using simple multicast.
  + * Responsible for setting
    * up a cluster and provides callers with a valid multicast receiver/sender.
    *
    * @author Filip Hanik
  @@ -669,6 +671,78 @@
   //
   //        }//end if
       }
  +
  +    // --------------------------------------------------------- Cluster Wide 
Deployments
  +    /**
  +     * Start an existing web application, attached to the specified context
  +     * path in all the other nodes in the cluster.
  +     * Only starts a web application if it is not running.
  +     *
  +     * @param contextPath The context path of the application to be started
  +     *
  +     * @exception IllegalArgumentException if the specified context path
  +     *  is malformed (it must be "" or start with a slash)
  +     * @exception IllegalArgumentException if the specified context path does
  +     *  not identify a currently installed web application
  +     * @exception IOException if an input/output error occurs during
  +     *  startup
  +     */
  +    public void startContext(String contextPath) throws IOException {
  +        return;
  +    }
  +
  +
  +    /**
  +     * Install a new web application, whose web application archive is at the
  +     * specified URL, into this container 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.
  +     * <p>
  +     * If this application is successfully installed, a ContainerEvent of type
  +     * <code>PRE_INSTALL_EVENT</code> will be sent to registered listeners
  +     * before the associated Context is started, and a ContainerEvent of type
  +     * <code>INSTALL_EVENT</code> will be sent to all registered listeners
  +     * after the associated Context is started, with the newly created
  +     * <code>Context</code> as an argument.
  +     *
  +     * @param contextPath The context path to which this application should
  +     *  be installed (must be unique)
  +     * @param war A URL of type "jar:" that points to a WAR file, or type
  +     *  "file:" that points to an unpacked directory structure containing
  +     *  the web application to be installed
  +     *
  +     * @exception IllegalArgumentException if the specified context path
  +     *  is malformed (it must be "" or start with a slash)
  +     * @exception IllegalStateException if the specified context path
  +     *  is already attached to an existing web application
  +     * @exception IOException if an input/output error was encountered
  +     *  during installation
  +     */
  +    public void installContext(String contextPath, URL war) {
  +        return;
  +    }
  +
  +
  +    /**
  +     * Stop an existing web application, attached to the specified context
  +     * path.  Only stops a web application if it is running.
  +     *
  +     * @param contextPath The context path of the application to be stopped
  +     *
  +     * @exception IllegalArgumentException if the specified context path
  +     *  is malformed (it must be "" or start with a slash)
  +     * @exception IllegalArgumentException if the specified context path does
  +     *  not identify a currently installed web application
  +     * @exception IOException if an input/output error occurs while stopping
  +     *  the web application
  +     */
  +    public void stop(String contextPath) throws IOException {
  +        return;
  +    }
  +
  +
  +
       // ---------------------------------------------  Inner Class
   
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to