tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r550273 - in /tomcat/connectors/trunk/jk: jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java xdocs/miscellaneous/changelog.xml
Date Sun, 24 Jun 2007 18:37:55 GMT
Author: rjung
Date: Sun Jun 24 11:37:53 2007
New Revision: 550273

URL: http://svn.apache.org/viewvc?view=rev&rev=550273
Log:
Added manipulation of max_reply_timeouts to jkstatus.

Modified:
    tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java
    tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml

Modified: tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java?view=diff&rev=550273&r1=550272&r2=550273
==============================================================================
--- tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java
(original)
+++ tomcat/connectors/trunk/jk/jkstatus/src/share/org/apache/jk/status/JkStatusUpdateLoadbalancerTask.java
Sun Jun 24 11:37:53 2007
@@ -28,7 +28,7 @@
  * 
  * 
  * @author Peter Rossbach
- * @version $Revision:$
+ * @version $Revision$
  * @since mod_jk 1.2.20
  */
 public class JkStatusUpdateLoadbalancerTask extends AbstractJkStatusTask {
@@ -51,6 +51,7 @@
    
     protected int lockCode = -1;
     protected String lock;
+    protected int maxReplyTimeouts = -1;
 
     /**
      * Return descriptive information about this implementation and the
@@ -199,9 +200,23 @@
 	}
 
 	/**
+	 * @return the maxReplyTimeouts
+	 */
+	public int getMaxReplyTimeouts() {
+		return maxReplyTimeouts;
+	}
+
+	/**
+	 * @param maxReplyTimeouts the maxReplyTimeouts to set
+	 */
+	public void setMaxReplyTimeouts(int maxReplyTimeouts) {
+		this.maxReplyTimeouts = maxReplyTimeouts;
+	}
+
+	/**
      * Create JkStatus worker update link
      * <ul>
-     * </b>http://localhost/jkstatus?cmd=update&mime=txt&w=loadbalancer&lm=1&ll=1&lr=2&lt=60&ls=true&lf=false
+     * </b>http://localhost/jkstatus?cmd=update&mime=txt&w=loadbalancer&lm=1&ll=1&lr=2&lt=60&ls=true&lf=false&lx=0
      * <br/>
      *
      * 
@@ -215,6 +230,7 @@
      * <li><b>lt:<b/> recover wait timeout</li>
      * <li><b>ls:<b/> sticky session</li>
      * <li><b>lf:<b/> force sticky session</li>
+     * <li><b>lx:<b/> max reply timeouts</li>
      * </ul>
      * <ul>
      * <li>lm=1 or Requests</li>
@@ -268,6 +284,10 @@
  				sb.append("&ll=");
  				sb.append(lock);
  			}
+			if (maxReplyTimeouts >= 0) {
+				sb.append("&lx=");
+				sb.append(maxReplyTimeouts);
+			}
             
         } catch (UnsupportedEncodingException e) {
             throw new BuildException("Invalid 'charset' attribute: "
@@ -284,4 +304,4 @@
             throw new BuildException("Must specify 'loadbalancer' attribute");
         }
     }
-}
\ No newline at end of file
+}

Modified: tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml?view=diff&rev=550273&r1=550272&r2=550273
==============================================================================
--- tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/miscellaneous/changelog.xml Sun Jun 24 11:37:53 2007
@@ -28,6 +28,9 @@
   <subsection name="Native">
     <changelog>
       <update>
+      JkStatus: Added manipulation of max_reply_timeouts. (rjung)
+      </update>
+      <update>
       LB, Status: Add feature max_reply_timeouts, to make lb tolerant against
       occasional long running requests. (rjung)
       </update>



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


Mime
View raw message