Jumpi v1.2.0

org.jumpi.impl.connector.jms10
Class JmsDestination

java.lang.Object
  |
  +--org.jumpi.impl.AbstractDestination
        |
        +--org.jumpi.impl.connector.jms10.JmsDestination
All Implemented Interfaces:
Destination, Destination

public class JmsDestination
extends AbstractDestination

A JmsDestination represents a JMS Destination, i.e. Topic, Queue or a TemporaryTopic or TemporaryQueue.

<protocolname>://topic|queue:<name>


Field Summary
 
Fields inherited from class org.jumpi.impl.AbstractDestination
connector_, controller_, props_, url_, wildcard_
 
Fields inherited from interface org.jumpi.Destination
PROTOCOL_SEPARATOR, SEPARATOR
 
Constructor Summary
JmsDestination(java.lang.String url, Controller controller, Connector connector, javax.jms.Queue queue)
          Creates a JmsDestination specifically for a given Queue.
JmsDestination(java.lang.String url, Controller controller, Connector connector, javax.jms.Queue queue, javax.jms.TemporaryQueue tempqueue)
          Creates a JmsDestination specifically for a given Queue and TemporaryQueue pair.
JmsDestination(java.lang.String url, Controller controller, Connector connector, javax.jms.Topic topic)
          Creates a JmsDestination specifically for a given Topic.
JmsDestination(java.lang.String url, Controller controller, Connector connector, javax.jms.Topic topic, javax.jms.TemporaryTopic temptopic)
          Creates a JmsDestination specifically for a given Topic and TemporaryTopic pair.
 
Method Summary
 JmsDestination createTemporaryDestination(javax.jms.TemporaryQueue tq)
          Return the JmsDestination, which has the same Queue as this instance but also a TemporaryQueue used for replies.
 JmsDestination createTemporaryDestination(javax.jms.TemporaryTopic tt)
          Return the JmsDestination, which has the same Topic as this instance but also a TemporaryTopic used for replies.
 javax.jms.Queue getQueue()
          Return the Queue.
 javax.jms.TemporaryQueue getTemporaryQueue()
          Return the TemporaryQueue.
 javax.jms.TemporaryTopic getTemporaryTopic()
          Return the TemporaryTopic.
 javax.jms.Topic getTopic()
          Return the Topic.
 java.lang.String getUrl()
          Return the Url representation of the Destination.
 boolean isTemporary()
          Return true if either a TemporaryQueue or TemporaryTopic is availible.
 boolean matches(Destination dest)
           We never perform wildcard matching for JMS Destinations.
 
Methods inherited from class org.jumpi.impl.AbstractDestination
equals, getConnector, getController, getControllerName, getProperties, hashCode, isWildcard, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsDestination

public JmsDestination(java.lang.String url,
                      Controller controller,
                      Connector connector,
                      javax.jms.Queue queue)
Creates a JmsDestination specifically for a given Queue.

Parameters:
url - the Url representing the JmsDestination.
controller - the Controller associated with the JmsDestination.
connector - the Connector associated with the JmsDestination.
queue - the JmsDestination.

JmsDestination

public JmsDestination(java.lang.String url,
                      Controller controller,
                      Connector connector,
                      javax.jms.Queue queue,
                      javax.jms.TemporaryQueue tempqueue)
Creates a JmsDestination specifically for a given Queue and TemporaryQueue pair.

Parameters:
url - the Url representing the JmsDestination.
controller - the Controller associated with the JmsDestination.
connector - the Connector associated with the JmsDestination.
queue - the JmsDestination.
tempqueue - the temporary JmsDestination.

JmsDestination

public JmsDestination(java.lang.String url,
                      Controller controller,
                      Connector connector,
                      javax.jms.Topic topic)
Creates a JmsDestination specifically for a given Topic.

Parameters:
url - the Url representing the JmsDestination.
controller - the Controller associated with the JmsDestination.
connector - the Connector associated with the JmsDestination.
topic - the JmsDestination.

JmsDestination

public JmsDestination(java.lang.String url,
                      Controller controller,
                      Connector connector,
                      javax.jms.Topic topic,
                      javax.jms.TemporaryTopic temptopic)
Creates a JmsDestination specifically for a given Topic and TemporaryTopic pair.

Parameters:
url - the Url representing the JmsDestination.
controller - the Controller associated with the JmsDestination.
connector - the Connector associated with the JmsDestination.
topic - the JmsDestination.
temptopic - the temporary JmsDestination.
Method Detail

getUrl

public java.lang.String getUrl()
Return the Url representation of the Destination.

Specified by:
getUrl in interface Destination
Specified by:
getUrl in class AbstractDestination
Returns:
the Url representation of the Destination.

getQueue

public javax.jms.Queue getQueue()
Return the Queue.

Returns:
the Queue.

getTopic

public javax.jms.Topic getTopic()
Return the Topic.

Returns:
the Topic.

createTemporaryDestination

public JmsDestination createTemporaryDestination(javax.jms.TemporaryQueue tq)
Return the JmsDestination, which has the same Queue as this instance but also a TemporaryQueue used for replies.

Parameters:
tq - the TemporaryQueue to embed.
Returns:
the JmsDestination, which has the same Queue as this instance but also a TemporaryQueue used for replies.

createTemporaryDestination

public JmsDestination createTemporaryDestination(javax.jms.TemporaryTopic tt)
Return the JmsDestination, which has the same Topic as this instance but also a TemporaryTopic used for replies.

Parameters:
tt - the TemporaryTopic to embed.
Returns:
the JmsDestination, which has the same Topic as this instance but also a TemporaryTopic used for replies.

getTemporaryQueue

public javax.jms.TemporaryQueue getTemporaryQueue()
Return the TemporaryQueue.

Returns:
the TemporaryQueue.

getTemporaryTopic

public javax.jms.TemporaryTopic getTemporaryTopic()
Return the TemporaryTopic.

Returns:
the TemporaryTopic.

isTemporary

public boolean isTemporary()
Return true if either a TemporaryQueue or TemporaryTopic is availible.

Returns:
true if either a TemporaryQueue or TemporaryTopic is availible.

matches

public boolean matches(Destination dest)

We never perform wildcard matching for JMS Destinations.

Specified by:
matches in interface Destination
Overrides:
matches in class AbstractDestination
Parameters:
dest - the other Destination to be checked for the match.
Returns:
false always.

Jumpi v1.2.0

Copyright 2003, Peter Jonathan Klauser.