KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > remoting > performance > asynchronous > PerformanceServerSideClientTest


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.remoting.performance.asynchronous;
8
9 import org.jboss.test.remoting.performance.synchronous.Payload;
10 import org.jboss.test.remoting.performance.synchronous.PerformanceClientTest;
11
12 /**
13  * @author <a HREF="mailto:tom.elrod@jboss.com">Tom Elrod</a>
14  */

15 public class PerformanceServerSideClientTest extends PerformanceClientTest
16 {
17    protected void makeClientCall(String JavaDoc testInvocation, Payload payloadWrapper) throws Throwable JavaDoc
18    {
19       makeOnewayInvocation(testInvocation, payloadWrapper, false);
20    }
21
22    public static void main(String JavaDoc[] args)
23    {
24       PerformanceServerSideClientTest test = new PerformanceServerSideClientTest();
25       try
26       {
27          test.setUp();
28          test.testClientCalls();
29       }
30       catch(Throwable JavaDoc throwable)
31       {
32          throwable.printStackTrace();
33       }
34       finally
35       {
36          try
37          {
38             test.tearDown();
39          }
40          catch(Exception JavaDoc e)
41          {
42             e.printStackTrace();
43          }
44       }
45    }
46 }
Popular Tags