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-catalina/catalina/src/share/org/apache/catalina/core mbeans-descriptors.xml StandardDefaultContext.java
Date Sun, 30 Nov 2003 14:33:29 GMT
remm        2003/11/30 06:33:29

  Modified:    catalina/src/share/org/apache/catalina/core
                        mbeans-descriptors.xml StandardDefaultContext.java
  Log:
  - Add managerChecksFrequency in JMX.
  - Add it to default context.
  
  Revision  Changes    Path
  1.26      +8 -0      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/mbeans-descriptors.xml
  
  Index: mbeans-descriptors.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/mbeans-descriptors.xml,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- mbeans-descriptors.xml	29 Nov 2003 21:09:11 -0000	1.25
  +++ mbeans-descriptors.xml	30 Nov 2003 14:33:29 -0000	1.26
  @@ -38,6 +38,10 @@
                  description="Should we allow the ServletContext.getContext() method to access
the context of other web applications in this server?"
                  type="boolean"/>
         
  +    <attribute name="managerChecksFrequency"
  +               description="The frequency of the manager checks (expiration and passivation)"
  +               type="int"/>
  +               
       <attribute name="reloadable"
                  description="The reloadable flag for this web application"
                  type="boolean"/>
  @@ -211,6 +215,10 @@
                  description="Associated manager."
                  type="org.apache.catalina.Manager" />
         
  +    <attribute name="managerChecksFrequency"
  +               description="The frequency of the manager checks (expiration and passivation)"
  +               type="int"/>
  +               
       <attribute name="mappingObject"
                  description="The object used for mapping"
                  type="java.lang.Object"/>
  
  
  
  1.10      +28 -4     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardDefaultContext.java
  
  Index: StandardDefaultContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardDefaultContext.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- StandardDefaultContext.java	13 Nov 2003 21:03:14 -0000	1.9
  +++ StandardDefaultContext.java	30 Nov 2003 14:33:29 -0000	1.10
  @@ -305,6 +305,12 @@
   
   
       /**
  +     * Frequency of manager checks.
  +     */
  +    protected int managerChecksFrequency = 6;
  +
  +
  +    /**
        * The string manager for this package.
        */
       protected static StringManager sm =
  @@ -401,6 +407,22 @@
   
   
       /**
  +     * Set the manager checks frequency.
  +     */
  +    public void setManagerChecksFrequency(int managerChecksFrequency) {
  +        this.managerChecksFrequency = managerChecksFrequency;
  +    }
  +
  +
  +    /**
  +     * Get manager checks frquency.
  +     */
  +    public int getManagerChecksFrequency() {
  +        return managerChecksFrequency;
  +    }
  +
  +
  +    /**
        * Returns true if the internal naming support is used.
        */
       public boolean isUseNaming() {
  @@ -1527,6 +1549,8 @@
               ((StandardContext)context).setCacheMaxSize(getCacheMaxSize());
               ((StandardContext)context).setAllowLinking(isAllowLinking());
               ((StandardContext)context).setCaseSensitive(isCaseSensitive());
  +            ((StandardContext)context).setManagerChecksFrequency
  +                (getManagerChecksFrequency());
               if (!contexts.containsKey(context)) {
                   ((StandardContext) context).addLifecycleListener(this);
               }
  
  
  

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


Mime
View raw message