tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r438876 - /tomcat/connectors/trunk/jk/native/common/jk_status.c
Date Thu, 31 Aug 2006 11:53:20 GMT
Author: mturk
Date: Thu Aug 31 04:53:19 2006
New Revision: 438876

URL: http://svn.apache.org/viewvc?rev=438876&view=rev
Log:
Allow to update the jvm_route, since it can be
defined independent from worker name.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_status.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?rev=438876&r1=438875&r2=438876&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Thu Aug 31 04:53:19 2006
@@ -510,8 +510,12 @@
                 jk_puts(s, "<input type=\"hidden\" name=\"lb\" ");
                 jk_printf(s, "value=\"%u\">\n", i);
 
-                jk_puts(s, "<table>\n<tr><td>Distance:</td><td><input
name=\"wx\" type=\"text\" ");
+                jk_puts(s, "<table>\n<tr><td>Route:</td><td><input
name=\"wn\" type=\"text\" ");
+                jk_printf(s, "value=\"%s\"/></td></tr>\n", wr->s->jvm_route);
+
+                jk_puts(s, "<tr><td>Distance:</td><td><input name=\"wx\"
type=\"text\" ");
                 jk_printf(s, "value=\"%d\"/></td></tr>\n", wr->s->distance);
+
                 jk_puts(s, "<tr><td>Load factor:</td><td><input
name=\"wf\" type=\"text\" ");
                 jk_printf(s, "value=\"%d\"/></td></tr>\n", wr->s->lb_factor);
                 jk_puts(s, "<tr><td>Route Redirect:</td><td><input
name=\"wr\" type=\"text\" ");
@@ -749,6 +753,10 @@
             strncpy(wr->s->domain, b, JK_SHM_STR_SIZ);
         else
             memset(wr->s->domain, 0, JK_SHM_STR_SIZ);
+        if ((b = status_cmd("wn", s->query_string, buf, sizeof(buf)))) {
+            if (strlen(b) > 0)
+                strncpy(wr->s->jvm_route, b, JK_SHM_STR_SIZ);
+        }
         i = status_int("wa", s->query_string, wr->s->activation);
         if (wr->s->activation != i && i>0 && i<= JK_LB_ACTIVATION_STOPPED)
{
             wr->s->activation = i;



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


Mime
View raw message