Author: jfrederic.clere(a)jboss.com
Date: 2009-07-20 04:12:06 -0400 (Mon, 20 Jul 2009)
New Revision: 2496
Modified:
trunk/mod_cluster/native/mod_manager/mod_manager.c
Log:
Fix for MODCLUSTER-79 (not exactly but transforming the output into
mod_proxy directives doesn't bring a lot more).
Modified: trunk/mod_cluster/native/mod_manager/mod_manager.c
===================================================================
--- trunk/mod_cluster/native/mod_manager/mod_manager.c 2009-07-14 14:21:56 UTC (rev 2495)
+++ trunk/mod_cluster/native/mod_manager/mod_manager.c 2009-07-20 08:12:06 UTC (rev 2496)
@@ -1589,7 +1589,15 @@
errstring = process_stop(r, ptr, &errtype, global);
else if (strcasecmp(cmd, "REMOVE-APP") == 0)
errstring = process_remove(r, ptr, &errtype, global);
- else {
+ else if (strcasecmp(cmd, "DUMP") == 0) {
+ errstring = process_dump(r, ptr, &errtype);
+ if (!errstring)
+ return OK;
+ } else if (strcasecmp(cmd, "INFO") == 0) {
+ errstring = process_info(r, ptr, &errtype);
+ if (!errstring)
+ return OK;
+ } else {
errstring = SCMDUNS;
errtype = TYPESYNTAX;
}
@@ -1608,6 +1616,14 @@
"&refresh=10",
"\">Auto Refresh</a>", NULL);
+ ap_rvputs(r, " <a href=\"", r->uri, "?nonce=",
balancer_nonce,
+ "&Cmd=DUMP&Range=ALL",
+ "\">show DUMP output</a>", NULL);
+
+ ap_rvputs(r, " <a href=\"", r->uri, "?nonce=",
balancer_nonce,
+ "&Cmd=INFO&Range=ALL",
+ "\">show INFO output</a>", NULL);
+
ap_rputs("<pre>", r);
sizesessionid = get_max_size_sessionid(sessionidstatsmem);
Show replies by date