org.jboss.mq.il.uil2
Class UILClientILService

java.lang.Object
  extended byorg.jboss.mq.il.uil2.UILClientILService
All Implemented Interfaces:
ClientILService (src) , MsgTypes (src) , SocketManagerHandler (src) , StreamListener (src)

public class UILClientILService
extends java.lang.Object
implements ClientILService (src) , MsgTypes (src) , SocketManagerHandler (src)

The UILClientILService runs on the client side of a JMS server connection and acts as a factory for the UILClientIL passed to the server. It also handles the callbacks from the client side SocketManager.


Field Summary
 
Fields inherited from interface org.jboss.mq.il.uil2.msgs.MsgTypes (src)
m_acknowledge, m_addMessage, m_authenticate, m_browse, m_checkID, m_checkUser, m_close, m_connectionClosing, m_createQueue, m_createTopic, m_deleteTemporaryDestination, m_destroySubscription, m_getID, m_getTemporaryQueue, m_getTemporaryTopic, m_ping, m_pong, m_receive, m_receiveRequest, m_setEnabled, m_setSpyDistributedConnection, m_subscribe, m_transact, m_unsubscribe
 
Constructor Summary
UILClientILService()
           
 
Method Summary
 void asynchFailure(java.lang.String error, java.lang.Throwable e)
          Report a connection failure
 void close()
          Handle closedown, this maybe invoked many times due to an explicit close and/or a connection failure.
 ClientIL (src) getClientIL()
          getClientIL method comment.
 void handleMsg(BaseMsg (src)  msg)
          Callback from the SocketManager
 void init(Connection (src)  connection, java.util.Properties props)
          init method comment.
 void onStreamNotification(java.lang.Object stream, int size)
          Handle a stream notification
 void start()
          Once started, the ClientIL instance should process all server requests.
 void stop()
          Once stopped, the ClientIL instance stop processing all server requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UILClientILService

public UILClientILService()
Method Detail

getClientIL

public ClientIL (src)  getClientIL()
                     throws java.lang.Exception
getClientIL method comment.

Specified by:
getClientIL in interface ClientILService (src)
Returns:
The ClientIL value
Throws:
java.lang.Exception - Description of Exception

init

public void init(Connection (src)  connection,
                 java.util.Properties props)
          throws java.lang.Exception
init method comment.

Specified by:
init in interface ClientILService (src)
Parameters:
connection - Description of Parameter
props - Description of Parameter
Throws:
java.lang.Exception - Description of Exception

handleMsg

public void handleMsg(BaseMsg (src)  msg)
               throws java.lang.Exception
Callback from the SocketManager

Specified by:
handleMsg in interface SocketManagerHandler (src)
Parameters:
msg - the message to handler
Throws:
java.lang.Exception - for any error

start

public void start()
           throws java.lang.Exception
Description copied from interface: ClientILService (src)
Once started, the ClientIL instance should process all server requests.

Specified by:
start in interface ClientILService (src)
Throws:
java.lang.Exception - Description of Exception

stop

public void stop()
          throws java.lang.Exception
Description copied from interface: ClientILService (src)
Once stopped, the ClientIL instance stop processing all server requests. if( cr_server != null ) cr_server.close(); if (cr!=null && cr instanceof java.rmi.Remote) { java.rmi.server.UnicastRemoteObject.unexportObject((java.rmi.Remote)cr, true); }

Specified by:
stop in interface ClientILService (src)
Throws:
java.lang.Exception - Description of Exception

onStreamNotification

public void onStreamNotification(java.lang.Object stream,
                                 int size)
Description copied from interface: SocketManagerHandler (src)
Handle a stream notification

Specified by:
onStreamNotification in interface SocketManagerHandler (src)
Parameters:
stream - the stream
size - the bytes since the last notification

asynchFailure

public void asynchFailure(java.lang.String error,
                          java.lang.Throwable e)
Description copied from interface: SocketManagerHandler (src)
Report a connection failure

Specified by:
asynchFailure in interface SocketManagerHandler (src)
Parameters:
error - the error text

close

public void close()
Description copied from interface: SocketManagerHandler (src)
Handle closedown, this maybe invoked many times due to an explicit close and/or a connection failure.

Specified by:
close in interface SocketManagerHandler (src)