tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardEngine.java
Date Mon, 14 Jan 2002 23:37:49 GMT
remm        02/01/14 15:37:49

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardEngine.java
  Log:
  - Add JVM route support.
  - Patch submitted by Tom Drake <rtd at pobox.com>
  
  Revision  Changes    Path
  1.13      +32 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java
  
  Index: StandardEngine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- StandardEngine.java	21 Dec 2001 21:15:45 -0000	1.12
  +++ StandardEngine.java	14 Jan 2002 23:37:49 -0000	1.13
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
1.12 2001/12/21 21:15:45 craigmcc Exp $
  - * $Revision: 1.12 $
  - * $Date: 2001/12/21 21:15:45 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
1.13 2002/01/14 23:37:49 remm Exp $
  + * $Revision: 1.13 $
  + * $Date: 2002/01/14 23:37:49 $
    *
    * ====================================================================
    *
  @@ -86,7 +86,7 @@
    * fully qualified host name of that virtual host.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.12 $ $Date: 2001/12/21 21:15:45 $
  + * @version $Revision: 1.13 $ $Date: 2002/01/14 23:37:49 $
    */
   
   public class StandardEngine
  @@ -144,6 +144,13 @@
       private DefaultContext defaultContext;
   
   
  +    /**
  +     * The JVM Route ID for this Tomcat instance. All Route ID's must be unique
  +     * across the cluster.
  +     */
  +    private String jvmRouteId;
  +
  +
       // ------------------------------------------------------------- Properties
   
   
  @@ -169,6 +176,27 @@
           support.firePropertyChange("defaultHost", oldDefaultHost,
                                      this.defaultHost);
   
  +    }
  +
  +
  +    /**
  +     * Set the cluster-wide unique identifier for this Engine.
  +     * This value is only useful in a load-balancing scenario.
  +     * <p>
  +     * This property should not be changed once it is set.
  +     */
  +    public void setJvmRoute(String routeId) {
  +        this.log("setJvmRoute=" + routeId);
  +        jvmRouteId = routeId;
  +    }
  +
  +
  +    /**
  +     * Retrieve the cluster-wide unique identifier for this Engine.
  +     * This value is only useful in a load-balancing scenario.
  +     */
  +    public String getJvmRoute() {
  +        return jvmRouteId;
       }
   
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message