~ubuntu-branches/ubuntu/wily/libjboss-remoting-java/wily

« back to all changes in this revision

Viewing changes to src/tests/org/jboss/test/remoting/transport/bisocket/shutdown/BisocketHangingClient.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-09 14:01:03 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: package-import@ubuntu.com-20110909140103-hqokx61534tas9rg
Tags: 2.5.3.SP1-1
* Newer but not newest upstream release. Do not build samples.
* Change debian/watch to upstream's svn repo.
* Add patch to fix compile error caused by tomcat update.
  (Closes: #628303)
* Switch to source format 3.0.
* Switch to debhelper level 7.
* Remove useless Depends.
* Update Standards-Version: 3.9.2.
* Update README.source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.jboss.test.remoting.transport.bisocket.shutdown;
 
2
 
 
3
import java.util.HashMap;
 
4
import java.util.Map;
 
5
 
 
6
import org.jboss.remoting.transport.bisocket.Bisocket;
 
7
import org.jboss.test.remoting.shutdown.AbstractClient;
 
8
import org.jboss.test.remoting.shutdown.HangingClient;
 
9
 
 
10
public class BisocketHangingClient extends HangingClient
 
11
{
 
12
   public static void main(String[] args)
 
13
   {
 
14
      try
 
15
      {
 
16
         if (args.length == 0)
 
17
            throw new RuntimeException();
 
18
         
 
19
         String transport = args[0];
 
20
         
 
21
         HashMap config = new HashMap();
 
22
         System.out.println("args.length: " + args.length);
 
23
         if (args.length > 1)
 
24
            getConfig(config, args[1]);
 
25
         
 
26
         AbstractClient client = new BisocketHangingClient(transport, config);
 
27
         client.testShutdown();
 
28
      }
 
29
      catch (Throwable t)
 
30
      {
 
31
         t.printStackTrace();
 
32
      }
 
33
   }
 
34
   
 
35
   public BisocketHangingClient(String transport, Map config)
 
36
   {
 
37
      super(transport, config);
 
38
   }
 
39
 
 
40
   protected void addCallbackArgs(Map map)
 
41
   {
 
42
      map.put(Bisocket.IS_CALLBACK_SERVER, "true");
 
43
   }
 
44
}