Author: jfrederic.clere(a)jboss.com
Date: 2008-07-09 11:56:30 -0400 (Wed, 09 Jul 2008)
New Revision: 705
Modified:
trunk/java/org/jboss/web/cluster/ClusterListener.java
Log:
Add INFO for the testsuite.
Modified: trunk/java/org/jboss/web/cluster/ClusterListener.java
===================================================================
--- trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-07-07 09:11:13 UTC (rev
704)
+++ trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-07-09 15:56:30 UTC (rev
705)
@@ -668,6 +668,25 @@
}
return result.toString();
}
+ /**
+ * Retrieves the full proxy info message.
+ *
+ *
+ * @return the proxy confguration
+ */
+ public String getProxyInfo() {
+ HashMap<String, String> parameters = new HashMap<String, String>();
+ // Send INFO * request
+ Proxy[] local = proxies;
+ StringBuffer result = new StringBuffer();
+ for (int i = 0; i < local.length; i++) {
+
result.append("Proxy[").append(i).append("]:[").append(local[i].address)
+ .append(':').append(local[i].port).append("]: \r\n");
+ result.append(sendRequest("INFO", true, parameters, i));
+ result.append("\r\n");
+ }
+ return result.toString();
+ }
/**
Show replies by date