站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 messaging API Documentation 英文版文档

UILClientILService (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档


org.jboss.mq.il.uil2
Class UILClientILService

java.lang.Object
  extended byorg.jboss.mq.il.uil2.UILClientILService
All Implemented Interfaces:
ClientILService, MsgTypes, SocketManagerHandler, org.jboss.util.stream.StreamListener

public class UILClientILService
extends Object
implements ClientILService, MsgTypes, SocketManagerHandler

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.

Version:
$Revision: 1.3 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from interface org.jboss.mq.il.uil2.msgs.MsgTypes
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(String error, 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 getClientIL()
          getClientIL method comment.
 void handleMsg(BaseMsg msg)
          Callback from the SocketManager
 void init(Connection connection, Properties props)
          init method comment.
 void onStreamNotification(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 getClientIL()
                     throws Exception
getClientIL method comment.

Specified by:
getClientIL in interface ClientILService
Returns:
The ClientIL value
Throws:
Exception - Description of Exception

init

public void init(Connection connection,
                 Properties props)
          throws Exception
init method comment.

Specified by:
init in interface ClientILService
Parameters:
connection - Description of Parameter
props - Description of Parameter
Throws:
Exception - Description of Exception

handleMsg

public void handleMsg(BaseMsg msg)
               throws Exception
Callback from the SocketManager

Specified by:
handleMsg in interface SocketManagerHandler
Parameters:
msg - the message to handler
Throws:
Exception - for any error

start

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

Specified by:
start in interface ClientILService
Throws:
Exception - Description of Exception

stop

public void stop()
          throws Exception
Description copied from interface: ClientILService
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
Throws:
Exception - Description of Exception

onStreamNotification

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

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

asynchFailure

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

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

close

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

Specified by:
close in interface SocketManagerHandler


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.