Return-Path: Delivered-To: apmail-incubator-cxf-commits-archive@locus.apache.org Received: (qmail 36996 invoked from network); 19 Sep 2006 06:48:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 06:48:44 -0000 Received: (qmail 8355 invoked by uid 500); 19 Sep 2006 06:48:44 -0000 Delivered-To: apmail-incubator-cxf-commits-archive@incubator.apache.org Received: (qmail 8302 invoked by uid 500); 19 Sep 2006 06:48:44 -0000 Mailing-List: contact cxf-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-commits@incubator.apache.org Received: (qmail 8293 invoked by uid 99); 19 Sep 2006 06:48:44 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 23:48:44 -0700 X-ASF-Spam-Status: No, hits=-9.3 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME,WEIRD_PORT Received: from ([140.211.166.113:51773] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id D0/D4-26148-7C29F054 for ; Mon, 18 Sep 2006 23:48:39 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 68BF81A981A; Mon, 18 Sep 2006 23:48:37 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r447765 - in /incubator/cxf/trunk/test: ./ performance/ performance/base/ performance/base/src/ performance/base/src/org/ performance/base/src/org/apache/ performance/base/src/org/apache/cxf/ performance/base/src/org/apache/cxf/pat/ perform... Date: Tue, 19 Sep 2006 06:48:36 -0000 To: cxf-commits@incubator.apache.org From: ningjiang@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060919064837.68BF81A981A@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: ningjiang Date: Mon Sep 18 23:48:34 2006 New Revision: 447765 URL: http://svn.apache.org/viewvc?view=rev&rev=447765 Log: [JIRA CXF-95] Port Celtix performance test to CXF Please read the README.txt in the /test/performance for detail information Added: incubator/cxf/trunk/test/ incubator/cxf/trunk/test/performance/ incubator/cxf/trunk/test/performance/README.txt (with props) incubator/cxf/trunk/test/performance/base/ incubator/cxf/trunk/test/performance/base/build.xml (with props) incubator/cxf/trunk/test/performance/base/src/ incubator/cxf/trunk/test/performance/base/src/org/ incubator/cxf/trunk/test/performance/base/src/org/apache/ incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/ incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/ incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/ incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestCaseBase.java (with props) incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestResult.java (with props) incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestRunner.java (with props) incubator/cxf/trunk/test/performance/base/wsdl/ incubator/cxf/trunk/test/performance/basic_type/ incubator/cxf/trunk/test/performance/basic_type/bin/ incubator/cxf/trunk/test/performance/basic_type/bin/run_client (with props) incubator/cxf/trunk/test/performance/basic_type/bin/run_client.bat (with props) incubator/cxf/trunk/test/performance/basic_type/bin/run_server (with props) incubator/cxf/trunk/test/performance/basic_type/bin/run_server.bat (with props) incubator/cxf/trunk/test/performance/basic_type/build.xml (with props) incubator/cxf/trunk/test/performance/basic_type/src/ incubator/cxf/trunk/test/performance/basic_type/src/org/ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java (with props) incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/Server.java (with props) incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/ServerImpl.java (with props) incubator/cxf/trunk/test/performance/basic_type/wsdl/ incubator/cxf/trunk/test/performance/basic_type/wsdl/basic_type.wsdl (with props) incubator/cxf/trunk/test/performance/complex_type/ incubator/cxf/trunk/test/performance/complex_type/bin/ incubator/cxf/trunk/test/performance/complex_type/bin/run_client (with props) incubator/cxf/trunk/test/performance/complex_type/bin/run_client.bat (with props) incubator/cxf/trunk/test/performance/complex_type/bin/run_server (with props) incubator/cxf/trunk/test/performance/complex_type/bin/run_server.bat (with props) incubator/cxf/trunk/test/performance/complex_type/build.xml (with props) incubator/cxf/trunk/test/performance/complex_type/src/ incubator/cxf/trunk/test/performance/complex_type/src/org/ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java (with props) incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/Server.java (with props) incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/ServerImpl.java (with props) incubator/cxf/trunk/test/performance/complex_type/wsdl/ incubator/cxf/trunk/test/performance/complex_type/wsdl/complex_type.wsdl (with props) incubator/cxf/trunk/test/performance/etc/ incubator/cxf/trunk/test/performance/etc/common_build.xml (with props) Added: incubator/cxf/trunk/test/performance/README.txt URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/README.txt?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/README.txt (added) +++ incubator/cxf/trunk/test/performance/README.txt Mon Sep 18 23:48:34 2006 @@ -0,0 +1,47 @@ +Basic Setup for Building and Running the performance test case +============================================== + +As described in the installation notes, extract the cxf +binary distribution archive into an installation directory +under the root drive. This creates the sub-directory celtixfire, +which includes all of the product directories. + +1. setup the build Enviroment + +To build and run the performance test case , you must install +the J2SE Development Kit (JDK) 5.0 + +If you want to use ant to build and run the performance test case, +you must install the Apache ant 1.6 build utility. + +The CXF_HOME system variable need to be set to the cxf binary install +directory. + + + 2. Build the performance test case +There are two types of test case in the performance test case +directory. The one is basic_type testcase ,the othere is complex_type +testcase. The base directory provide a simple testcase base class for +the client to calculate the server reponse time and throughput. There +for you should build the base directory first, and then build the + othere directory files. + + cd base + ant + cd ../basic_type + ant + cd ../complex_type + ant + + 3. to run the performance test +You can cd to basic_type/bin or complex_type/bin to run the test +run_server and run_server.bat just startup the server +run_client and run_client.bat can take these argument: + -Operation to invoke the wsdl defined operation + -BasedOn Time setup the invoking count with time + -Amount define the invoke times , if based on time it means second + -PacketSize define the packet size which client send to server + -Threads define the thread number to run the perform test + + + Propchange: incubator/cxf/trunk/test/performance/README.txt ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/README.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: incubator/cxf/trunk/test/performance/base/build.xml URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/base/build.xml?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/base/build.xml (added) +++ incubator/cxf/trunk/test/performance/base/build.xml Mon Sep 18 23:48:34 2006 @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + Propchange: incubator/cxf/trunk/test/performance/base/build.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/base/build.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/cxf/trunk/test/performance/base/build.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestCaseBase.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestCaseBase.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestCaseBase.java (added) +++ incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestCaseBase.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,305 @@ +package org.apache.cxf.pat.internal; + +import java.util.*; + + + +public abstract class TestCaseBase { + private static boolean initialized; + + protected String wsdlPath; + + protected String serviceName; + + protected String portName; + + protected String operationName; + + protected String hostname; + + protected String hostport; + + protected int packetSize = 1; + + protected boolean usingTime; + + protected int amount = 1; + + protected String wsdlNameSpace; + + protected List results = new ArrayList(); + + protected boolean usePipe; + + private int numberOfThreads; + + private String name; + + private String[] args; + + private String faultReason = "no error"; + + + + public TestCaseBase() { + this("DEFAULT TESTCASE", null); + } + + public TestCaseBase(String cname) { + this(cname, null); + } + + public TestCaseBase(String cname, String[] arg) { + this.name = cname; + this.args = arg; + } + + public abstract void initTestData(); + + public void init() throws Exception { + initBus(); + initTestData(); + } + + private void processArgs() { + int count = 0; + int argc = args.length; + while (count < argc) { + if ("-WSDL".equals(args[count])) { + wsdlPath = args[count + 1]; + count += 2; + } else if ("-Service".equals(args[count])) { + serviceName = args[count + 1]; + count += 2; + } else if ("-Pipe".equals(args[count])) { + usePipe = true; + count++; + } else if ("-Port".equals(args[count])) { + portName = args[count + 1]; + count += 2; + } else if ("-Operation".equals(args[count])) { + operationName = args[count + 1]; + count += 2; + } else if ("-BasedOn".equals(args[count])) { + if ("Time".equals(args[count + 1])) { + usingTime = true; + } + count += 2; + } else if ("-Amount".equals(args[count])) { + amount = Integer.parseInt(args[count + 1]); + count += 2; + } else if ("-Threads".equals(args[count])) { + numberOfThreads = Integer.parseInt(args[count + 1]); + count += 2; + } else if ("-HostName".equals(args[count])) { + hostname = args[count + 1]; + count += 2; + } else if ("-HostPort".equals(args[count])) { + hostport = args[count + 1]; + count += 2; + } else if ("-PacketSize".equals(args[count])) { + packetSize = Integer.parseInt(args[count + 1]); + count += 2; + } else { + count++; + } + } + } + + private boolean validate() { + if (wsdlNameSpace == null || wsdlNameSpace.trim().equals("")) { + System.out.println("WSDL name space is not specified"); + faultReason = "Missing WSDL name space"; + return false; + } + if (serviceName == null || serviceName.trim().equals("")) { + System.out.println("Service name is not specified"); + faultReason = "Missing Service name"; + return false; + } + if (portName == null || portName.trim().equals("")) { + System.out.println("Port name is not specified"); + faultReason = "Missing Port name"; + return false; + } + if (wsdlPath == null || wsdlPath.trim().equals("")) { + System.out.println("WSDL path is not specifed"); + faultReason = "Missing WSDL path"; + return false; + } + return true; + } + + // for the cxf init , here do nothing + private void initBus() { + } + + public void tearDown() { + } + + protected void setUp() throws Exception { + + clearTestResults(); + printTitle(); + printSetting("Default Setting: "); + processArgs(); + if (!validate()) { + System.out.println("Configure Exception!" + faultReason); + System.exit(1); + } + init(); + printSetting("Runtime Setting: "); + } + + public void initialize() { + try { + if (!initialized) { + setUp(); + } + initialized = true; + + + System.out.println("TestCase " + name + " is warming up the jit. (5 sec/200 iterations)"); + long endTime = System.currentTimeMillis() + 5000; + getPort(); + int count = 0; + while (System.currentTimeMillis() < endTime || count < 200) { + count++; + doJob(); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + public abstract void doJob(); + + public abstract void getPort(); + + protected void internalTestRun(String caseName) throws Exception { + int numberOfInvocations = 0; + long startTime = System.currentTimeMillis(); + long endTime = startTime + amount * 1000; + if (usingTime) { + while (System.currentTimeMillis() < endTime) { + doJob(); + numberOfInvocations++; + } + } else { + for (int i = 0; i < amount; i++) { + doJob(); + numberOfInvocations++; + } + } + endTime = System.currentTimeMillis(); + TestResult testResult = new TestResult(caseName, this); + testResult.compute(startTime, endTime, numberOfInvocations); + addTestResult(testResult); + } + + public void testRun() throws Exception { + if (numberOfThreads == 0) { + internalTestRun(name); + } + List threadList = new ArrayList(); + for (int i = 0; i < numberOfThreads; i++) { + TestRunner runner = new TestRunner("No." + i + " TestRunner", this); + Thread thread = new Thread(runner, "RunnerThread No." + i); + thread.start(); + threadList.add(thread); + } + + for (Iterator iter = threadList.iterator(); iter.hasNext();) { + Thread thread = (Thread) iter.next(); + try { + thread.join(); + } catch (InterruptedException e) { + e.printStackTrace(); + } + } + } + + public void run() { + try { + System.out.println("TestCase " + name + " is running"); + testRun(); + tearDown(); + System.out.println("TestCase " + name + " is finished"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + protected void clearTestResults() { + results.clear(); + } + + protected void addTestResult(TestResult result) { + results.add(result); + } + + public List getTestResults() { + return results; + } + + public abstract void printUsage(); + + public void printSetting(String settingType) { + System.out.println(settingType + " [Service] -- > " + serviceName); + System.out.println(settingType + " [Port] -- > " + portName); + System.out.println(settingType + " [Operation] -- > " + operationName); + System.out.println(settingType + " [Threads] -- > " + numberOfThreads); + System.out.println(settingType + " [Packet Size] -- > " + packetSize + + " packet(s) "); + if (usingTime) { + System.out.println(settingType + " [Running] --> " + amount + " (secs)"); + } else { + System.out.println(settingType + " [Running] --> " + amount + + " (invocations)"); + } + } + + public void printTitle() { + System.out.println(" ---------------------------------"); + System.out.println(name + " Client (JAVA Version)"); + System.out.println(" ---------------------------------"); + } + + public void setWSDLNameSpace(String nameSpace) { + this.wsdlNameSpace = nameSpace; + } + + public void setWSDLPath(String wpath) { + this.wsdlPath = wsdlPath; + } + + public void setServiceName(String sname) { + this.serviceName = sname; + } + + public void setPortName(String pname) { + this.portName = pname; + } + + public void setOperationName(String oname) { + this.operationName = oname; + } + + public String getServiceName() { + return this.serviceName; + } + + public String getPortName() { + return this.portName; + } + + public String getOperationName() { + return this.operationName; + } + + public String getName() { + return this.name; + } + + +} Propchange: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestCaseBase.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestCaseBase.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestResult.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestResult.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestResult.java (added) +++ incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestResult.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,55 @@ +package org.apache.cxf.pat.internal; + + +public class TestResult { + public static final String AVG_UNIT = "(ms)"; + private static final String THROUGHPUT_UNIT = "(invocations/sec)"; + + private String name; + private TestCaseBase testCase; + + private double avgResponseTime; + private double throughput; + + public TestResult() { + this("Default Result"); + } + + public TestResult(String cname) { + this(cname, null); + } + + public TestResult(String cname, TestCaseBase test) { + this.name = cname; + this.testCase = test; + } + + public void compute(long startTime, long endTime, int numberOfInvocations) { + double numOfInvocations = (double)numberOfInvocations; + double duration = convertToSeconds(endTime - startTime); + + throughput = numOfInvocations / duration; + avgResponseTime = duration / numOfInvocations; + + System.out.println("Throughput: " + testCase.getOperationName() + " " + throughput + THROUGHPUT_UNIT); + System.out.println("AVG. response time: " + avgResponseTime * 1000 + AVG_UNIT); + System.out.println(numOfInvocations + " (invocations), running " + duration + " (sec) "); + + } + + private double convertToSeconds(double ms) { + return ms / 1000; + } + + public String getName() { + return this.name; + } + + public double getAvgResponseTime() { + return avgResponseTime; + } + + public double getThroughput() { + return throughput; + } +} Propchange: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestResult.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestResult.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestRunner.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestRunner.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestRunner.java (added) +++ incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestRunner.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,41 @@ +package org.apache.cxf.pat.internal; + + +public class TestRunner implements Runnable { + + protected TestCaseBase testCase; + private String name; + + + public TestRunner() { + this("Default runner"); + } + + public TestRunner(String cname) { + this(cname, null); + } + + public TestRunner(String cname, TestCaseBase test) { + this.name = cname; + this.testCase = test; + } + + public void run() { + System.out.println("TestRunner " + name + " is running"); + try { + testCase.internalTestRun(name); + } catch (Exception e) { + e.printStackTrace(); + } + System.out.println("TestRunner " + name + " is finished"); + } + + public void start() { + Thread thread = new Thread(this); + thread.start(); + } + + public String getName() { + return name; + } +} Propchange: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestRunner.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/base/src/org/apache/cxf/pat/internal/TestRunner.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/basic_type/bin/run_client URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/bin/run_client?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/bin/run_client (added) +++ incubator/cxf/trunk/test/performance/basic_type/bin/run_client Mon Sep 18 23:48:34 2006 @@ -0,0 +1,51 @@ +#!/bin/bash + +OPERARTION=echoString +BASEDON=Time +AMOUNT=30 +PACKETSIZE=1 +THREADS=0 +PIPE= + +cd .. + +for i in $@ +do + if [ "$i" = "-Operartion" ] + then + OPERARTION=$2 + fi + + if [ "$i" = "-BasedOn" ] + then + BASEDON=$2 + fi + + if [ "$i" = "-Amount" ] + then + AMOUNT=$2 + fi + + if [ "$i" = "-PacketSize" ] + then + PACKETSIZE=$2 + fi + + if [ "$i" = "-Threads" ] + then + THREADS=$2 + fi + + if [ "$i" = "-Pipe" ] + then + PIPE=-Dpipe=-Pipe + fi + + shift + +done + +ant client -Dceltix.running.time=$AMOUNT -Dceltix.operation=$OPERARTION -Dceltix.basedon=$BASEDON -Dceltix.packet.size=$PACKETSIZE -Dceltix.threads=$THREADS $PIPE + + + Propchange: incubator/cxf/trunk/test/performance/basic_type/bin/run_client ------------------------------------------------------------------------------ svn:executable = * Added: incubator/cxf/trunk/test/performance/basic_type/bin/run_client.bat URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/bin/run_client.bat?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/bin/run_client.bat (added) +++ incubator/cxf/trunk/test/performance/basic_type/bin/run_client.bat Mon Sep 18 23:48:34 2006 @@ -0,0 +1,26 @@ +@echo off +@setlocal + +cd .. + +set BASEDON=Time +set AMOUNT=3 +set OPERATION=echoString +set PACKETSIZE=1 +set THREADS=1 + +:Loop +IF "%1"=="" GOTO Continue +IF "%1"=="-BasedOn" (set BASEDON=%2) +IF "%1"=="-Amount" (set AMOUNT=%2) +IF "%1"=="-Operation" (set OPERATION=%2) +IF "%1"=="-Threads" (set THREADS=%2) +IF "%1"=="-PacketSize" (set PACKETSIZE=%2) +SHIFT +GOTO Loop + +:Continue + +ant client -Dceltix.running.time=%AMOUNT% -Dceltix.operation=%OPERATION% -Dceltix.basedon=%BASEDON% -Dceltix.packet.size=%PACKETSIZE% -Dceltix.threads=%THREADS% + +@endlocal Propchange: incubator/cxf/trunk/test/performance/basic_type/bin/run_client.bat ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/cxf/trunk/test/performance/basic_type/bin/run_server URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/bin/run_server?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/bin/run_server (added) +++ incubator/cxf/trunk/test/performance/basic_type/bin/run_server Mon Sep 18 23:48:34 2006 @@ -0,0 +1,2 @@ +cd ../ +ant server Propchange: incubator/cxf/trunk/test/performance/basic_type/bin/run_server ------------------------------------------------------------------------------ svn:executable = * Added: incubator/cxf/trunk/test/performance/basic_type/bin/run_server.bat URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/bin/run_server.bat?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/bin/run_server.bat (added) +++ incubator/cxf/trunk/test/performance/basic_type/bin/run_server.bat Mon Sep 18 23:48:34 2006 @@ -0,0 +1,2 @@ +cd .. +ant server \ No newline at end of file Propchange: incubator/cxf/trunk/test/performance/basic_type/bin/run_server.bat ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/cxf/trunk/test/performance/basic_type/build.xml URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/build.xml?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/build.xml (added) +++ incubator/cxf/trunk/test/performance/basic_type/build.xml Mon Sep 18 23:48:34 2006 @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + Propchange: incubator/cxf/trunk/test/performance/basic_type/build.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/basic_type/build.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/cxf/trunk/test/performance/basic_type/build.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java (added) +++ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,123 @@ +package org.apache.cxf.performance.basic_type.client; + +import java.io.File; +import java.net.MalformedURLException; +import java.util.Iterator; +import java.util.List; + +import javax.xml.namespace.QName; +import javax.xml.ws.BindingProvider; + +import org.apache.cxf.pat.internal.TestCaseBase; +import org.apache.cxf.pat.internal.TestResult; +import org.apache.cxf.performance.basic_type.BasicPortType; +import org.apache.cxf.performance.basic_type.BasicService; +import org.apache.cxf.performance.basic_type.server.Server; + +public final class Client extends TestCaseBase { + + private static final QName SERVICE_NAME + = new QName("http://cxf.apache.org/performance/basic_type", "BasicService"); + + private static int opid; + + private byte[] inputBase64 = new byte[100 * 1024]; + private String inputString = new String(); + + private final int asciiCount = 1 * 1024; + + private BasicService ss; + private BasicPortType port; + + public Client(String[] args) { + super("Base TestCase", args); + serviceName = "BasicService"; + portName = "BasicPortType"; + operationName = "echoString"; + amount = 30; + wsdlNameSpace = "http://cxf.apache.org/performance/basic_type"; + } + + public void initTestData() { + String temp = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+?><[]/0123456789"; + for (int idx = 0; idx < 4 * packetSize; idx++) { + for (int jdx = 0; jdx < 256; jdx++) { + inputBase64[idx * 256 + jdx] = (byte)(jdx - 128); + } + } + for (int i = 0; i < asciiCount / temp.length() * packetSize; i++) { + inputString = inputString + temp; + } + } + + public void printUsage() { + System.out.println("Syntax is: Client [-WSDL wsdllocation] operation [-operation args...]"); + System.out.println(" operation is one of: "); + System.out.println(" echoBase64"); + System.out.println(" echoString"); + } + + public static void main(String args[]) throws Exception { + Client client = new Client(args); + client.initialize(); + if (client.getOperationName().equals("echoString")) { + opid = 0; + } else { + opid = 1; + } + client.run(); + List results = client.getTestResults(); + TestResult testResult = null; + for (Iterator iter = results.iterator(); iter.hasNext();) { + testResult = (TestResult)iter.next(); + System.out.println("Throughput " + testResult.getThroughput()); + System.out.println("AVG Response Time " + testResult.getAvgResponseTime()); + } + System.out.println("cxf client is going to shutdown!"); + //System.exit(0); + } + + public void doJob() { + try { + switch(opid) { + case 0: + port.echoString(inputString); + break; + case 1: + port.echoBase64(inputBase64); + break; + default: + port.echoString(inputString); + } + } catch (Exception e) { + e.printStackTrace(); + } + } + + public void getPort() { + if (usePipe) { + try { + new Server("pipe://localhost:20000/performance/basic_type/SoapPort"); + } catch (Exception ex) { + ex.printStackTrace(); + } + } + File wsdl = new File(wsdlPath); + try { + ss = new BasicService(wsdl.toURL(), SERVICE_NAME); + } catch (MalformedURLException e) { + e.printStackTrace(); + } + port = ss.getSoapHttpPort(); + + if (usePipe) { + javax.xml.ws.BindingProvider provider = (javax.xml.ws.BindingProvider)port; + provider.getRequestContext().put(provider.ENDPOINT_ADDRESS_PROPERTY, + "pipe://localhost:20000/performance/basic_type/SoapPort"); + } + + } +} + + + Propchange: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/Server.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/Server.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/Server.java (added) +++ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/Server.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,34 @@ +package org.apache.cxf.performance.basic_type.server; + +import javax.xml.ws.Endpoint; + + +public class Server implements Runnable { + + + public Server(String address) throws Exception { + System.out.println("Starting Server"); + Object implementor = new ServerImpl(); + Endpoint.publish(address, implementor); + System.out.println("Server published"); + } + + public Server(String[] args) throws Exception { + this("http://localhost:20000/performance/basic_type/SoapPort"); + } + + public static void main(String args[]) throws Exception { + Server server = new Server(args); + server.run(); + } + + public void run() { + System.out.println("running server"); + System.out.println(" READY "); + + } + + void shutdown(boolean wait) { + System.out.println("shutting down server"); + } +} Propchange: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/Server.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/Server.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/ServerImpl.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/ServerImpl.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/ServerImpl.java (added) +++ incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/ServerImpl.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,29 @@ +package org.apache.cxf.performance.basic_type.server; + +import java.util.logging.Logger; + +import org.apache.cxf.performance.basic_type.BasicPortType; +@javax.jws.WebService(portName = "SoapHttpPort", serviceName = "BasicService", + targetNamespace = "http://cxf.apache.org/performance/basic_type", + endpointInterface = "org.apache.cxf.performance.basic_type.BasicPortType") + +public class ServerImpl implements BasicPortType { + + private static final Logger LOG = + Logger.getLogger(ServerImpl.class.getPackage().getName()); + + public byte[] echoBase64(byte[] inputBase64) { + //LOG.info("Executing operation echoBase64 "); + //System.out.println("Executing operation echoBase64"); + //System.out.println("Message received: " + inputBase64 + "\n"); + return inputBase64; + } + + public String echoString(String inputString) { + //LOG.info("Executing operation echoString"); + //System.out.println("Executing operation echoString\n"); + //System.out.println("Message received: " + inputString + "\n"); + return inputString; + } +} + Propchange: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/ServerImpl.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/basic_type/src/org/apache/cxf/performance/basic_type/server/ServerImpl.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/basic_type/wsdl/basic_type.wsdl URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/basic_type/wsdl/basic_type.wsdl?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/basic_type/wsdl/basic_type.wsdl (added) +++ incubator/cxf/trunk/test/performance/basic_type/wsdl/basic_type.wsdl Mon Sep 18 23:48:34 2006 @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: incubator/cxf/trunk/test/performance/basic_type/wsdl/basic_type.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/basic_type/wsdl/basic_type.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/cxf/trunk/test/performance/basic_type/wsdl/basic_type.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/cxf/trunk/test/performance/complex_type/bin/run_client URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/bin/run_client?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/bin/run_client (added) +++ incubator/cxf/trunk/test/performance/complex_type/bin/run_client Mon Sep 18 23:48:34 2006 @@ -0,0 +1,46 @@ +#!/bin/bash + +OPERARTION=sendReceiveData +BASEDON=Time +AMOUNT=30 +PACKETSIZE=1 +THREADS=1 +PIPE= + +for i in $@ +do + if [ "$i" = "-Operartion" ] + then + OPERARTION=$2 + fi + + if [ "$i" = "-BasedOn" ] + then + BASEDON=$2 + fi + + if [ "$i" = "-Amount" ] + then + AMOUNT=$2 + fi + + if [ "$i" = "-PacketSize" ] + then + PACKETSIZE=$2 + fi + + if [ "$i" = "-Threads" ] + then + THREADS=$2 + fi + + if [ "$i" = "-Pipe" ] + then + PIPE=-Dpipe=-Pipe + fi + + shift +done + +cd .. +ant client -Dceltix.running.time=$AMOUNT -Dceltix.operation=$OPERARTION -Dceltix.basedon=$BASEDON -Dceltix.packet.size=$PACKETSIZE -Dceltix.threads=$THREADS $PIPE Propchange: incubator/cxf/trunk/test/performance/complex_type/bin/run_client ------------------------------------------------------------------------------ svn:executable = * Added: incubator/cxf/trunk/test/performance/complex_type/bin/run_client.bat URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/bin/run_client.bat?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/bin/run_client.bat (added) +++ incubator/cxf/trunk/test/performance/complex_type/bin/run_client.bat Mon Sep 18 23:48:34 2006 @@ -0,0 +1,26 @@ +@echo off +@setlocal + +cd .. + +set BASEDON=Time +set AMOUNT=3 +set OPERATION=sendReceiveData +set PACKETSIZE=1 +set THREADS=1 + +:Loop +IF "%1"=="" GOTO Continue +IF "%1"=="-BasedOn" (set BASEDON=%2) +IF "%1"=="-Amount" (set AMOUNT=%2) +IF "%1"=="-Operation" (set OPERATION=%2) +IF "%1"=="-Threads" (set THREADS=%2) +IF "%1"=="-PacketSize" (set PACKETSIZE=%2) +SHIFT +GOTO Loop + +:Continue + +ant client -Dceltix.running.time=%AMOUNT% -Dceltix.operation=%OPERATION% -Dceltix.basedon=%BASEDON% -Dceltix.packet.size=%PACKETSIZE% -Dceltix.threads=%THREADS% + +@endlocal \ No newline at end of file Propchange: incubator/cxf/trunk/test/performance/complex_type/bin/run_client.bat ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/cxf/trunk/test/performance/complex_type/bin/run_server URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/bin/run_server?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/bin/run_server (added) +++ incubator/cxf/trunk/test/performance/complex_type/bin/run_server Mon Sep 18 23:48:34 2006 @@ -0,0 +1,2 @@ +cd ../ +ant server Propchange: incubator/cxf/trunk/test/performance/complex_type/bin/run_server ------------------------------------------------------------------------------ svn:executable = * Added: incubator/cxf/trunk/test/performance/complex_type/bin/run_server.bat URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/bin/run_server.bat?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/bin/run_server.bat (added) +++ incubator/cxf/trunk/test/performance/complex_type/bin/run_server.bat Mon Sep 18 23:48:34 2006 @@ -0,0 +1,2 @@ +cd .. +ant server \ No newline at end of file Propchange: incubator/cxf/trunk/test/performance/complex_type/bin/run_server.bat ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/cxf/trunk/test/performance/complex_type/build.xml URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/build.xml?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/build.xml (added) +++ incubator/cxf/trunk/test/performance/complex_type/build.xml Mon Sep 18 23:48:34 2006 @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: incubator/cxf/trunk/test/performance/complex_type/build.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/complex_type/build.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/cxf/trunk/test/performance/complex_type/build.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java (added) +++ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,136 @@ +package org.apache.cxf.performance.complex_type.client; + +import java.io.File; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.net.MalformedURLException; +import java.util.Iterator; +import java.util.List; + +import javax.xml.datatype.DatatypeConfigurationException; +import javax.xml.datatype.DatatypeFactory; +import javax.xml.namespace.QName; + +import org.apache.cxf.pat.internal.TestCaseBase; +import org.apache.cxf.pat.internal.TestResult; +import org.apache.cxf.performance.complex_type.ComplexPortType; +import org.apache.cxf.performance.complex_type.ComplexService; +import org.apache.cxf.performance.complex_type.server.Server; +import org.apache.cxf.performance.complex_type.types.ColourEnum; +import org.apache.cxf.performance.complex_type.types.NestedComplexType; +import org.apache.cxf.performance.complex_type.types.NestedComplexTypeSeq; +import org.apache.cxf.performance.complex_type.types.SimpleStruct; + +public final class Client extends TestCaseBase { + private static final QName SERVICE_NAME = new QName( + "http://cxf.apache.org/performance/complex_type", + "ComplexService"); + private static final QName PORT_NAME = new QName( + "http://cxf.apache.org/performance/complex_type", + "ComplexPortType"); + private ComplexService cs; + private ComplexPortType port; + private final NestedComplexTypeSeq complexTypeSeq = new NestedComplexTypeSeq(); + + public Client(String[] args) { + super("Base TestCase", args); + serviceName = "ComplexService"; + portName = "ComplexPortType"; + operationName = "sendReceiveData"; + wsdlNameSpace = "http://cxf.apache.org/performance/complex_type"; + amount = 30; + packetSize = 1; + } + + public static void main(String args[]) throws Exception { + + Client client = new Client(args); + + client.initialize(); + + client.run(); + + List results = client.getTestResults(); + TestResult testResult = null; + for (Iterator iter = results.iterator(); iter.hasNext();) { + testResult = (TestResult)iter.next(); + System.out.println("Throughput " + testResult.getThroughput()); + System.out.println("AVG Response Time " + testResult.getAvgResponseTime()); + } + System.out.println("cxf client is going to shutdown!"); + } + + private SimpleStruct getSimpleStruct() throws DatatypeConfigurationException { + SimpleStruct ss = new SimpleStruct(); + ss.setVarFloat(Float.MAX_VALUE); + ss.setVarShort(Short.MAX_VALUE); + ss.setVarByte(Byte.MAX_VALUE); + ss.setVarDecimal(new BigDecimal("3.1415926")); + ss.setVarDouble(Double.MAX_VALUE); + ss.setVarString("1234567890!@#$%^&*()abcdefghijk"); + ss.setVarAttrString("1234567890!@#$%^&*()abcdefghijk"); + ss.setVarDateTime(DatatypeFactory.newInstance().newXMLGregorianCalendar(2005, 12, 3, 0, 0, 9, 0, 0)); + return ss; + } + + + public void initTestData() { + NestedComplexType complexType = new NestedComplexType(); + complexType.setVarString("#12345ABc"); + complexType.setVarUByte(Short.MAX_VALUE); + complexType.setVarUnsignedLong(new BigInteger("13691056728")); + complexType.setVarFloat(Float.MAX_VALUE); + complexType.setVarQName(new QName("return", "return")); + try { + complexType.setVarStruct(getSimpleStruct()); + } catch (DatatypeConfigurationException e) { + e.printStackTrace(); + } + + complexType.setVarEnum(ColourEnum.RED); + byte[] binary = new byte[1024]; + for (int idx = 0; idx < 4; idx++) { + for (int jdx = 0; jdx < 256; jdx++) { + binary[idx * 256 + jdx] = (byte)(jdx - 128); + } + } + complexType.setVarBase64Binary(binary); + complexType.setVarHexBinary(binary); + + for (int i = 0; i < packetSize; i++) { + complexTypeSeq.getItem().add(complexType); + } + } + + public void doJob() { + port.sendReceiveData(complexTypeSeq); + } + + public void getPort() { + if (usePipe) { + try { + new Server("pipe://localhost:20000/performance/complex_type/ComplexPort"); + } catch (Exception ex) { + ex.printStackTrace(); + } + } else { + System.out.println("not using pipe"); + } + File wsdl = new File(wsdlPath); + try { + cs = new ComplexService(wsdl.toURL(), SERVICE_NAME); + } catch (MalformedURLException e) { + e.printStackTrace(); + } + port = cs.getSoapPort(); + if (usePipe) { + javax.xml.ws.BindingProvider provider = (javax.xml.ws.BindingProvider)port; + provider.getRequestContext().put(provider.ENDPOINT_ADDRESS_PROPERTY, + "pipe://localhost:20000/performance/complex_type/ComplexPort"); + } + } + + public void printUsage() { + System.out.println("Syntax is: Client [-WSDL wsdllocation] [-PacketSize packetnumber] "); + } +} Propchange: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/Server.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/Server.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/Server.java (added) +++ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/Server.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,36 @@ +package org.apache.cxf.performance.complex_type.server; + +import javax.xml.ws.Endpoint; + + + +public class Server implements Runnable { + + + public Server(String address) throws Exception { + System.out.println("Starting Server"); + Object implementor = new ServerImpl(); + Endpoint.publish(address, implementor); + System.out.println("Server published"); + } + + public Server(String[] args) throws Exception { + this("http://localhost:20003/performance/complex_type/SoapPort"); + } + + public static void main(String args[]) throws Exception { + Server server = new Server(args); + server.run(); + } + + public void run() { + System.out.println("running server"); + System.out.println("READY"); + } + + void shutdown(boolean wait) { + System.out.println("shutting down server"); + } + + +} Propchange: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/Server.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/Server.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/ServerImpl.java URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/ServerImpl.java?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/ServerImpl.java (added) +++ incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/ServerImpl.java Mon Sep 18 23:48:34 2006 @@ -0,0 +1,24 @@ +package org.apache.cxf.performance.complex_type.server; + +import java.util.logging.Logger; + +import org.apache.cxf.performance.complex_type.ComplexPortType; +import org.apache.cxf.performance.complex_type.types.NestedComplexTypeSeq; + +@javax.jws.WebService(portName = "SoapPort", serviceName = "ComplexService", + targetNamespace = "http://cxf.apache.org/performance/complex_type", + endpointInterface = "org.apache.cxf.performance.complex_type.ComplexPortType") + +public class ServerImpl implements ComplexPortType { + + private static final Logger LOG = + Logger.getLogger(ServerImpl.class.getPackage().getName()); + + public NestedComplexTypeSeq sendReceiveData(NestedComplexTypeSeq request) { + //LOG.info("Executing operation sendReceiveData opt"); + //System.out.println("Executing operation sendReceiveData\n"); + //System.out.println("Message received: " + request + "\n"); + return request; + } +} + Propchange: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/ServerImpl.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/complex_type/src/org/apache/cxf/performance/complex_type/server/ServerImpl.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Added: incubator/cxf/trunk/test/performance/complex_type/wsdl/complex_type.wsdl URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/complex_type/wsdl/complex_type.wsdl?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/complex_type/wsdl/complex_type.wsdl (added) +++ incubator/cxf/trunk/test/performance/complex_type/wsdl/complex_type.wsdl Mon Sep 18 23:48:34 2006 @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: incubator/cxf/trunk/test/performance/complex_type/wsdl/complex_type.wsdl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/complex_type/wsdl/complex_type.wsdl ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/cxf/trunk/test/performance/complex_type/wsdl/complex_type.wsdl ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: incubator/cxf/trunk/test/performance/etc/common_build.xml URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/performance/etc/common_build.xml?view=auto&rev=447765 ============================================================================== --- incubator/cxf/trunk/test/performance/etc/common_build.xml (added) +++ incubator/cxf/trunk/test/performance/etc/common_build.xml Mon Sep 18 23:48:34 2006 @@ -0,0 +1,253 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: incubator/cxf/trunk/test/performance/etc/common_build.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/cxf/trunk/test/performance/etc/common_build.xml ------------------------------------------------------------------------------ svn:keywords = Rev Date Propchange: incubator/cxf/trunk/test/performance/etc/common_build.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml