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

« back to all changes in this revision

Viewing changes to tests/org/jboss/test/remoting/transport/socket/serverlockup/RogueClientInvoker.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
 
/**
2
 
 * JBoss, Home of Professional Open Source
3
 
 *
4
 
 * Distributable under LGPL license.
5
 
 * See terms of license at gnu.org.
6
 
 */
7
 
package org.jboss.test.remoting.transport.socket.serverlockup;
8
 
 
9
 
import org.jboss.remoting.transport.socket.MicroSocketClientInvoker;
10
 
import org.jboss.remoting.InvokerLocator;
11
 
import org.jboss.logging.Logger;
12
 
 
13
 
import java.net.Socket;
14
 
 
15
 
/**
16
 
 * @author <a href="mailto:ovidiu@jboss.org">Ovidiu Feodorov</a>
17
 
 * @version <tt>$Revision: 1972 $</tt>
18
 
 *          <p/>
19
 
 *          $Id: RogueClientInvoker.java 1972 2007-01-23 09:39:03Z ovidiu $
20
 
 */
21
 
public class RogueClientInvoker extends MicroSocketClientInvoker
22
 
{
23
 
   // Constants ------------------------------------------------------------------------------------
24
 
 
25
 
   private static final Logger log = Logger.getLogger(RogueClientInvoker.class);
26
 
 
27
 
   // Static ---------------------------------------------------------------------------------------
28
 
 
29
 
   // Attributes -----------------------------------------------------------------------------------
30
 
 
31
 
   // Constructors ---------------------------------------------------------------------------------
32
 
 
33
 
   public RogueClientInvoker(InvokerLocator locator)
34
 
   {
35
 
      super(locator);
36
 
   }
37
 
 
38
 
   // Public ---------------------------------------------------------------------------------------
39
 
 
40
 
   public String toString()
41
 
   {
42
 
      return "RogueClientInvoker[" + Integer.toHexString(hashCode()) + "]";
43
 
   }
44
 
 
45
 
   // Package protected ----------------------------------------------------------------------------
46
 
 
47
 
   void openConnectionButDontSendAnything() throws Exception
48
 
   {
49
 
      log.debug(this + " creating simple socket");
50
 
 
51
 
      Socket socket = new Socket(locator.getHost(), locator.getPort());
52
 
 
53
 
      log.debug(this + " created socket " + socket + ", sleeping ...");
54
 
 
55
 
      Thread.sleep(30000);
56
 
 
57
 
      log.debug(this + " done sleeping");
58
 
 
59
 
 
60
 
 
61
 
//      OutputStream outputStream = socketWrapper.getOutputStream();
62
 
//
63
 
//      writeVersion(outputStream, version);
64
 
//
65
 
//      versionedWrite(outputStream, marshaller, invocation, version);
66
 
//
67
 
//      InputStream inputStream = socketWrapper.getInputStream();
68
 
//
69
 
//      version = readVersion(inputStream);
70
 
//
71
 
//      response = versionedRead(inputStream, unmarshaller, version);
72
 
   }
73
 
 
74
 
   // Protected ------------------------------------------------------------------------------------
75
 
 
76
 
   // Private --------------------------------------------------------------------------------------
77
 
 
78
 
   // Inner classes --------------------------------------------------------------------------------
79
 
}