Author: dkulp
Date: Thu Jul 17 11:57:04 2008
New Revision: 677686

URL: http://svn.apache.org/viewvc?rev=677686&view=rev
Log:
Allow specifying the host part of the URL so I can get it working on OSX and 
Linux

Modified:
    cxf/trunk/benchmark/performance/soap_http_doc_lit/bin/run_server
    cxf/trunk/benchmark/performance/soap_http_doc_lit/build.xml
    
cxf/trunk/benchmark/performance/soap_http_doc_lit/src/org/apache/cxf/performance/complex_type/server/Server.java

Modified: cxf/trunk/benchmark/performance/soap_http_doc_lit/bin/run_server
URL: 
http://svn.apache.org/viewvc/cxf/trunk/benchmark/performance/soap_http_doc_lit/bin/run_server?rev=677686&r1=677685&r2=677686&view=diff
==============================================================================
--- cxf/trunk/benchmark/performance/soap_http_doc_lit/bin/run_server (original)
+++ cxf/trunk/benchmark/performance/soap_http_doc_lit/bin/run_server Thu Jul 17 
11:57:04 2008
@@ -18,7 +18,20 @@
 #  under the License.
 cd ../
 
+HOST=localhost
+
+for i in $@
+do 
+  if [ "$i" = "-Host" ]
+  then
+       HOST=$2
+  fi
+
+  shift
+done
+
+
 if [ -e /usr/lib/libumem.so.1 ]; then
     export LD_PRELOAD=/usr/lib/libumem.so.1
 fi
-ant server
+ant server -Dhost=$HOST

Modified: cxf/trunk/benchmark/performance/soap_http_doc_lit/build.xml
URL: 
http://svn.apache.org/viewvc/cxf/trunk/benchmark/performance/soap_http_doc_lit/build.xml?rev=677686&r1=677685&r2=677686&view=diff
==============================================================================
--- cxf/trunk/benchmark/performance/soap_http_doc_lit/build.xml (original)
+++ cxf/trunk/benchmark/performance/soap_http_doc_lit/build.xml Thu Jul 17 
11:57:04 2008
@@ -74,8 +74,9 @@
     </target>
 
     <target name="server" description="run complex_type server">
+        <property name="host" value="localhost"/>
         <cxf.run 
classname="org.apache.cxf.performance.complex_type.server.Server"
-            params="-WSDL ${wsdl.location}"
+            params="-host ${host}"
             jvmargs="-server -XX:CompileThreshold=1000 -Xmx1500M -Xms1500M 
-Xmn1000M -XX:+UseParallelGC -XX:+UseParallelOldGC"/>
     </target>
 

Modified: 
cxf/trunk/benchmark/performance/soap_http_doc_lit/src/org/apache/cxf/performance/complex_type/server/Server.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/benchmark/performance/soap_http_doc_lit/src/org/apache/cxf/performance/complex_type/server/Server.java?rev=677686&r1=677685&r2=677686&view=diff
==============================================================================
--- 
cxf/trunk/benchmark/performance/soap_http_doc_lit/src/org/apache/cxf/performance/complex_type/server/Server.java
 (original)
+++ 
cxf/trunk/benchmark/performance/soap_http_doc_lit/src/org/apache/cxf/performance/complex_type/server/Server.java
 Thu Jul 17 11:57:04 2008
@@ -31,16 +31,17 @@
         Endpoint.publish(address, implementor);
         System.out.println("Server published " + address);
     }
-
-    public Server(String[] args) throws Exception {
-        this("http://"; + java.net.InetAddress.getLocalHost().getHostAddress() 
+ ":20003/performance/SoapHttpDocLitPort");
-    }
     
     public static void main(String args[]) throws Exception {
-        Server server = new Server(args);
+        String host = "localhost";
+        if ("-host".equals(args[0])) {
+            host = args[1];
+        }
+    
+        Server server = new Server("http://"; + host + 
":20003/performance/SoapHttpDocLitPort");
         server.run();
 
-       Thread.sleep(10000000);
+        Thread.sleep(10000000);
     }
     
     public void run() {


Reply via email to