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 Thu, 17 Jan 2002 12:11:47 GMT
remm        02/01/17 04:11:47

  Modified:    catalina/src/share/org/apache/catalina/core Tag:
                        tomcat_40_branch StandardEngine.java
  Log:
  - Port JVM route addition.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.10.2.1  +40 -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.10
  retrieving revision 1.10.2.1
  diff -u -r1.10 -r1.10.2.1
  --- StandardEngine.java	23 Aug 2001 22:32:10 -0000	1.10
  +++ StandardEngine.java	17 Jan 2002 12:11:47 -0000	1.10.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
1.10 2001/08/23 22:32:10 craigmcc Exp $
  - * $Revision: 1.10 $
  - * $Date: 2001/08/23 22:32:10 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
1.10.2.1 2002/01/17 12:11:47 remm Exp $
  + * $Revision: 1.10.2.1 $
  + * $Date: 2002/01/17 12:11:47 $
    *
    * ====================================================================
    *
  @@ -86,7 +86,7 @@
    * fully qualified host name of that virtual host.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.10 $ $Date: 2001/08/23 22:32:10 $
  + * @version $Revision: 1.10.2.1 $ $Date: 2002/01/17 12:11:47 $
    */
   
   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
   
   
  @@ -184,6 +191,35 @@
           this.defaultContext = defaultContext;
           support.firePropertyChange("defaultContext",
                                      oldDefaultContext, this.defaultContext);
  +
  +    }
  +
  +
  +    /**
  +     * 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.
  +     * 
  +     * @param jvmRouteId New JVM route ID
  +     */
  +    public void setJvmRoute(String jvmRouteId) {
  +
  +        String oldJvmRouteId = this.jvmRouteId;
  +        this.jvmRouteId = jvmRouteId;
  +        support.firePropertyChange("jvmRouteId",
  +                                   oldJvmRouteId, this.jvmRouteId);
  +
  +    }
  +
  +
  +    /**
  +     * Retrieve the cluster-wide unique identifier for this Engine.
  +     * This value is only useful in a load-balancing scenario.
  +     */
  +    public String getJvmRoute() {
  +
  +        return (this.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