cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina Cluster.java
remm2004/06/23 07:00:04 Modified:catalina/src/share/org/apache/catalina Cluster.java Log: - Remove another debug flag. Revision ChangesPath 1.8 +1 -15 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java Index: Cluster.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- Cluster.java 26 May 2004 15:24:59 - 1.7 +++ Cluster.java 23 Jun 2004 14:00:04 - 1.8 @@ -75,20 +75,6 @@ public Container getContainer(); /** - * The debug detail level for this Cluster - * - * @param debug The debug level - */ -public void setDebug(int debug); - -/** - * Returns the debug level for this Cluster - * - * @return The debug level - */ -public int getDebug(); - -/** * Set the protocol parameters. * * @param protocol The protocol used by the cluster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina Cluster.java
fhanik 2003/03/19 16:11:05 Modified:catalina/src/share/org/apache/catalina Cluster.java Log: added methods for cluster wide deployments Revision ChangesPath 1.3 +71 -8 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java Index: Cluster.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Cluster.java 5 Dec 2002 12:22:15 - 1.2 +++ Cluster.java 20 Mar 2003 00:11:05 - 1.3 @@ -63,8 +63,8 @@ package org.apache.catalina; - - +import java.io.IOException; +import java.net.URL; /** * A bCluster/b works as a Cluster client/server for the local host * Different Cluster implementations can be used to support different @@ -76,6 +76,7 @@ * * @author Bip Thelin * @author Remy Maucherat + * @author Filip Hanik * @version $Revision$, $Date$ */ @@ -151,12 +152,74 @@ // - Public Methods /** - * Create a new manager which will use this cluster to replicate its + * Create a new manager which will use this cluster to replicate its * sessions. - * + * * @param name Name (key) of the application with which the manager is * associated */ public Manager createManager(String name); + +// - 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; + + +/** + * 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 + * codePRE_INSTALL_EVENT/code will be sent to registered listeners + * before the associated Context is started, and a ContainerEvent of type + * codeINSTALL_EVENT/code will be sent to all registered listeners + * after the associated Context is started, with the newly created + * codeContext/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); + +/** + * 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; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina Cluster.java
remm2002/12/05 04:22:15 Modified:catalina/src/share/org/apache/catalina Cluster.java Log: - Simplify cluster interface. Revision ChangesPath 1.2 +19 -53 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java Index: Cluster.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Cluster.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Cluster.java 18 Jul 2002 16:47:36 - 1.1 +++ Cluster.java 5 Dec 2002 12:22:15 - 1.2 @@ -64,11 +64,6 @@ package org.apache.catalina; -import java.beans.PropertyChangeListener; -import java.util.Collection; -import org.apache.catalina.cluster.ClusterMemberInfo; -import org.apache.catalina.cluster.ClusterReceiver; -import org.apache.catalina.cluster.ClusterSender; /** * A bCluster/b works as a Cluster client/server for the local host @@ -80,6 +75,7 @@ * codeClusterInfo/code used for receiving information in the Cluster. * * @author Bip Thelin + * @author Remy Maucherat * @version $Revision$, $Date$ */ @@ -103,21 +99,6 @@ public String getClusterName(); /** - * Set the time in seconds that the Cluster waits before - * checking for changes and replicated data. - * - * @param checkInterval The time in seconds to sleep - */ -public void setCheckInterval(int checkInterval); - -/** - * Get the time in seconds that this Cluster sleeps. - * - * @return The value in seconds - */ -public int getCheckInterval(); - -/** * Set the name of the cluster to join, if no cluster with * this name is present create one. * @@ -153,44 +134,29 @@ */ public int getDebug(); -// - Public Methods - /** - * Returns a collection containing codeClusterMemberInfo/code - * on the remote members of this Cluster. This method does - * not include the local host, to retrieve - * codeClusterMemberInfo/code on the local host - * use codegetLocalClusterInfo()/code instead. + * Set the protocol parameters. * - * @return Collection with all members in the Cluster + * @param protocol The protocol used by the cluster */ -public ClusterMemberInfo[] getRemoteClusterMembers(); +public void setProtocol(String protocol); /** - * Returns a codeClusterSender/code which is the interface - * to use when sending information in the Cluster. senderId is - * used as a identifier so that information sent through this - * instance can only be used with the respectice - * codeClusterReceiver/code + * Get the protocol used by the cluster. * - * @return The ClusterSender + * @return The protocol */ -public ClusterSender getClusterSender(String senderId); +public String getProtocol(); -/** - * Returns a codeClusterReceiver/code which is the interface - * to use when receiving information in the Cluster. senderId is - * used as a indentifier, only information send through the - * codeClusterSender/code with the same senderId can be received. - * - * @return The ClusterReceiver - */ -public ClusterReceiver getClusterReceiver(String senderId); +// - Public Methods /** - * Return cluster information about the local host - * - * @return Cluster information + * Create a new manager which will use this cluster to replicate its + * sessions. + * + * @param name Name (key) of the application with which the manager is + * associated */ -public ClusterMemberInfo getLocalClusterMember(); +public Manager createManager(String name); + } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]