public class MessagePacket
extends java.lang.Object
Constructor and Description |
---|
MessagePacket(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOperation() |
long |
inquire(XQueue xq,
java.net.DatagramSocket sock)
It listens to an XQueue for JMS Messages and converts the content of
the message into a packet as a request.
|
long |
listen(java.net.DatagramSocket in,
XQueue xq)
It listens to the DatagramSocket for incoming DatagramPackets.
|
long |
reply(java.net.DatagramSocket sock,
XQueue xq)
It listens to a DatagramSocket for incoming DatagramPackets and converts
the packet into a JMS message as a request.
|
long |
talk(XQueue xq,
java.net.DatagramSocket out)
It continually gets a JMS Message from the XQueue, loads its content
to a DatagramPacket according to the format rules and sends the packet
to the DatagramSocket.
|
public long listen(java.net.DatagramSocket in, XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public long reply(java.net.DatagramSocket sock, XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public long inquire(XQueue xq, java.net.DatagramSocket sock) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public long talk(XQueue xq, java.net.DatagramSocket out) throws java.io.IOException, javax.jms.JMSException
java.io.IOException
javax.jms.JMSException
public java.lang.String getOperation()