org.jboss.mq.il.oil2
Class OIL2SocketHandler

java.lang.Object
  extended byorg.jboss.mq.il.oil2.OIL2SocketHandler
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Runnable

public final class OIL2SocketHandler
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Runnable

The OIL2 implementation of the ServerIL object


Nested Class Summary
 class OIL2SocketHandler.RequestRunner (src)
           
 
Constructor Summary
OIL2SocketHandler(java.io.ObjectInputStream in, java.io.ObjectOutputStream out, java.lang.ThreadGroup partentThreadGroup)
          Constructor for the OILServerIL object
 
Method Summary
 void run()
          Main processing method for the OILClientILService object
 void sendRequest(OIL2Request (src)  request)
          #Description of the Method
 void sendResponse(OIL2Response (src)  response)
          #Description of the Method
 void setRequestListner(OIL2RequestListner (src)  requestListner)
          #Description of the Method
 void start()
           
 void stop()
           
 OIL2Response (src) synchRequest(OIL2Request (src)  request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OIL2SocketHandler

public OIL2SocketHandler(java.io.ObjectInputStream in,
                         java.io.ObjectOutputStream out,
                         java.lang.ThreadGroup partentThreadGroup)
Constructor for the OILServerIL object

Method Detail

sendRequest

public void sendRequest(OIL2Request (src)  request)
                 throws java.io.IOException
#Description of the Method

Returns:
Description of the Returned Value
Throws:
java.lang.Exception - Description of Exception
java.io.IOException

setRequestListner

public void setRequestListner(OIL2RequestListner (src)  requestListner)
#Description of the Method


sendResponse

public void sendResponse(OIL2Response (src)  response)
                  throws java.io.IOException
#Description of the Method

Returns:
Description of the Returned Value
Throws:
java.lang.Exception - Description of Exception
java.io.IOException

synchRequest

public OIL2Response (src)  synchRequest(OIL2Request (src)  request)
                          throws java.io.IOException,
                                 java.lang.InterruptedException,
                                 java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException

run

public void run()
Main processing method for the OILClientILService object

Specified by:
run in interface java.lang.Runnable

start

public void start()

stop

public void stop()