Joram 5.2.4

org.objectweb.joram.client.jms.local
Class LocalRequestChannel

java.lang.Object
  extended by org.objectweb.joram.client.jms.local.LocalRequestChannel
All Implemented Interfaces:
RequestChannel, LocalRequestChannelMBean

public class LocalRequestChannel
extends java.lang.Object
implements RequestChannel, LocalRequestChannelMBean


Field Summary
static org.objectweb.util.monolog.api.Logger logger
          logger
 
Constructor Summary
LocalRequestChannel(Identity identity)
           
 
Method Summary
 void close()
          Closes the connection and unregisters the MBean.
 void closing()
           
 void connect()
           
 java.util.Date getCreationDate()
          Gets connection creation date.
 long getReceivedCount()
          Gets the number of replies received on the connection.
 long getSentCount()
          Gets the number of requests sent on the connection.
 java.lang.String getUserName()
          Gets connected user's name.
 AbstractJmsReply receive()
           
 void send(AbstractJmsRequest request)
           
 void setTimer(java.util.Timer timer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.objectweb.util.monolog.api.Logger logger
logger

Constructor Detail

LocalRequestChannel

public LocalRequestChannel(Identity identity)
                    throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

setTimer

public void setTimer(java.util.Timer timer)
Specified by:
setTimer in interface RequestChannel

connect

public void connect()
             throws java.lang.Exception
Specified by:
connect in interface RequestChannel
Throws:
java.lang.Exception

send

public void send(AbstractJmsRequest request)
          throws java.lang.Exception
Specified by:
send in interface RequestChannel
Throws:
java.lang.Exception

receive

public AbstractJmsReply receive()
                         throws java.lang.Exception
Specified by:
receive in interface RequestChannel
Throws:
java.lang.Exception

close

public void close()
Description copied from interface: LocalRequestChannelMBean
Closes the connection and unregisters the MBean.

Specified by:
close in interface RequestChannel
Specified by:
close in interface LocalRequestChannelMBean

getCreationDate

public java.util.Date getCreationDate()
Description copied from interface: LocalRequestChannelMBean
Gets connection creation date.

Specified by:
getCreationDate in interface LocalRequestChannelMBean
Returns:
the date of creation of the connection.

getReceivedCount

public long getReceivedCount()
Description copied from interface: LocalRequestChannelMBean
Gets the number of replies received on the connection.

Specified by:
getReceivedCount in interface LocalRequestChannelMBean
Returns:
the number of replies received on the connection.

getSentCount

public long getSentCount()
Description copied from interface: LocalRequestChannelMBean
Gets the number of requests sent on the connection.

Specified by:
getSentCount in interface LocalRequestChannelMBean
Returns:
the number of requests sent on the connection.

getUserName

public java.lang.String getUserName()
Description copied from interface: LocalRequestChannelMBean
Gets connected user's name.

Specified by:
getUserName in interface LocalRequestChannelMBean
Returns:
the name of the connected user.

closing

public void closing()
Specified by:
closing in interface RequestChannel

Joram 5.2.4

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved