org.apache.activemq.command
Class ActiveMQDestination

java.lang.Object
  extended by org.apache.activemq.jndi.JNDIBaseStorable
      extended by 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

Field Summary
static char COMPOSITE_SEPERATOR
           
protected  ActiveMQDestination[] compositeDestinations
           
protected  java.lang.String[] destinationPaths
           
protected  int hashValue
           
protected  boolean isPattern
           
protected  java.util.Map<java.lang.String,java.lang.String> options
           
static java.lang.String PATH_SEPERATOR
           
protected  java.lang.String physicalName
           
static java.lang.String QUEUE_QUALIFIED_PREFIX
           
static byte QUEUE_TYPE
           
static java.lang.String TEMP_DESTINATION_NAME_PREFIX
           
static byte TEMP_MASK
           
static java.lang.String TEMP_QUEUE_QUALIFED_PREFIX
           
static byte TEMP_QUEUE_TYPE
           
static java.lang.String TEMP_TOPIC_QUALIFED_PREFIX
           
static byte TEMP_TOPIC_TYPE
           
static java.lang.String TOPIC_QUALIFIED_PREFIX
           
static byte TOPIC_TYPE
           
 
Constructor Summary
  ActiveMQDestination()
           
  ActiveMQDestination(ActiveMQDestination[] composites)
           
protected ActiveMQDestination(java.lang.String name)
           
 
Method Summary
 void buildFromProperties(java.util.Properties properties)
          Set the properties that will represent the instance in JNDI
static int compare(ActiveMQDestination destination, ActiveMQDestination destination2)
           
 int compareTo(java.lang.Object that)
           
 ActiveMQDestination createDestination(java.lang.String name)
           
static ActiveMQDestination createDestination(java.lang.String name, byte defaultType)
           
 boolean equals(java.lang.Object o)
           
 ActiveMQDestination[] getCompositeDestinations()
           
 java.lang.String[] getDestinationPaths()
           
abstract  byte getDestinationType()
           
 java.lang.String getDestinationTypeAsString()
           
 java.util.Map<java.lang.String,java.lang.String> getOptions()
           
 java.lang.String getPhysicalName()
           
 java.lang.String getQualifiedName()
           
protected abstract  java.lang.String getQualifiedPrefix()
           
 int hashCode()
           
 boolean isComposite()
           
 boolean isMarshallAware()
           
 boolean isPattern()
           
 boolean isQueue()
           
 boolean isTemporary()
           
 boolean isTopic()
           
 void populateProperties(java.util.Properties props)
          Initialize the instance from properties stored in JNDI
 void readExternal(java.io.ObjectInput in)
           
 void setCompositeDestinations(ActiveMQDestination[] destinations)
           
 void setPhysicalName(java.lang.String physicalName)
           
 java.lang.String toString()
           
static ActiveMQDestination transform(javax.jms.Destination dest)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.apache.activemq.jndi.JNDIBaseStorable
getProperties, getReference, setProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.activemq.command.DataStructure
getDataStructureType
 

Field Detail

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
Constructor Detail

ActiveMQDestination

public ActiveMQDestination()

ActiveMQDestination

protected ActiveMQDestination(java.lang.String name)

ActiveMQDestination

public ActiveMQDestination(ActiveMQDestination[] composites)
Method Detail

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 FuseSource, Corp.. All Rights Reserved.