org.apache.activemq.command
Class ActiveMQDestination
java.lang.Object
org.apache.activemq.jndi.JNDIBaseStorable
org.apache.activemq.command.ActiveMQDestination
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Comparable, javax.jms.Destination, javax.naming.Referenceable, DataStructure, JNDIStorableInterface
- Direct Known Subclasses:
- ActiveMQQueue, ActiveMQTempDestination, ActiveMQTopic
public abstract class ActiveMQDestination
- extends JNDIBaseStorable
- implements DataStructure, javax.jms.Destination, java.io.Externalizable, java.lang.Comparable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PATH_SEPERATOR
public static final java.lang.String PATH_SEPERATOR
- See Also:
- Constant Field Values
COMPOSITE_SEPERATOR
public static final char COMPOSITE_SEPERATOR
- See Also:
- Constant Field Values
QUEUE_TYPE
public static final byte QUEUE_TYPE
- See Also:
- Constant Field Values
TOPIC_TYPE
public static final byte TOPIC_TYPE
- See Also:
- Constant Field Values
TEMP_MASK
public static final byte TEMP_MASK
- See Also:
- Constant Field Values
TEMP_TOPIC_TYPE
public static final byte TEMP_TOPIC_TYPE
- See Also:
- Constant Field Values
TEMP_QUEUE_TYPE
public static final byte TEMP_QUEUE_TYPE
- See Also:
- Constant Field Values
QUEUE_QUALIFIED_PREFIX
public static final java.lang.String QUEUE_QUALIFIED_PREFIX
- See Also:
- Constant Field Values
TOPIC_QUALIFIED_PREFIX
public static final java.lang.String TOPIC_QUALIFIED_PREFIX
- See Also:
- Constant Field Values
TEMP_QUEUE_QUALIFED_PREFIX
public static final java.lang.String TEMP_QUEUE_QUALIFED_PREFIX
- See Also:
- Constant Field Values
TEMP_TOPIC_QUALIFED_PREFIX
public static final java.lang.String TEMP_TOPIC_QUALIFED_PREFIX
- See Also:
- Constant Field Values
TEMP_DESTINATION_NAME_PREFIX
public static final java.lang.String TEMP_DESTINATION_NAME_PREFIX
- See Also:
- Constant Field Values
physicalName
protected java.lang.String physicalName
compositeDestinations
protected transient ActiveMQDestination[] compositeDestinations
destinationPaths
protected transient java.lang.String[] destinationPaths
isPattern
protected transient boolean isPattern
hashValue
protected transient int hashValue
options
protected java.util.Map<java.lang.String,java.lang.String> options
ActiveMQDestination
public ActiveMQDestination()
ActiveMQDestination
protected ActiveMQDestination(java.lang.String name)
ActiveMQDestination
public ActiveMQDestination(ActiveMQDestination[] composites)
createDestination
public static ActiveMQDestination createDestination(java.lang.String name,
byte defaultType)
transform
public static ActiveMQDestination transform(javax.jms.Destination dest)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
compare
public static int compare(ActiveMQDestination destination,
ActiveMQDestination destination2)
compareTo
public int compareTo(java.lang.Object that)
- Specified by:
compareTo
in interface java.lang.Comparable
isComposite
public boolean isComposite()
getCompositeDestinations
public ActiveMQDestination[] getCompositeDestinations()
setCompositeDestinations
public void setCompositeDestinations(ActiveMQDestination[] destinations)
getQualifiedName
public java.lang.String getQualifiedName()
getQualifiedPrefix
protected abstract java.lang.String getQualifiedPrefix()
getPhysicalName
public java.lang.String getPhysicalName()
setPhysicalName
public void setPhysicalName(java.lang.String physicalName)
createDestination
public ActiveMQDestination createDestination(java.lang.String name)
getDestinationPaths
public java.lang.String[] getDestinationPaths()
getDestinationType
public abstract byte getDestinationType()
isQueue
public boolean isQueue()
isTopic
public boolean isTopic()
isTemporary
public boolean isTemporary()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Overrides:
writeExternal
in class JNDIBaseStorable
- Throws:
java.io.IOException
- See Also:
Externalizable.writeExternal(java.io.ObjectOutput)
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Overrides:
readExternal
in class JNDIBaseStorable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
- See Also:
Externalizable.readExternal(java.io.ObjectInput)
getDestinationTypeAsString
public java.lang.String getDestinationTypeAsString()
getOptions
public java.util.Map<java.lang.String,java.lang.String> getOptions()
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAware
in interface DataStructure
buildFromProperties
public void buildFromProperties(java.util.Properties properties)
- Description copied from class:
JNDIBaseStorable
- Set the properties that will represent the instance in JNDI
- Specified by:
buildFromProperties
in class JNDIBaseStorable
populateProperties
public void populateProperties(java.util.Properties props)
- Description copied from class:
JNDIBaseStorable
- Initialize the instance from properties stored in JNDI
- Specified by:
populateProperties
in class JNDIBaseStorable
isPattern
public boolean isPattern()
Copyright © 2005-2011. All Rights Reserved.