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:
Externalizable, Serializable, Comparable<Object>, Destination, Referenceable, DataStructure, JNDIStorableInterface
Direct Known Subclasses:
ActiveMQQueue, ActiveMQTempDestination, ActiveMQTopic, AnyDestination

public abstract class ActiveMQDestination
extends JNDIBaseStorable
implements DataStructure, Destination, Externalizable, Comparable<Object>

See Also:
Serialized Form

Field Summary
static char COMPOSITE_SEPERATOR
           
protected  ActiveMQDestination[] compositeDestinations
           
protected  String[] destinationPaths
           
protected  int hashValue
           
protected  boolean isPattern
           
protected  Map<String,String> options
           
static String PATH_SEPERATOR
           
protected  String physicalName
           
static String QUEUE_QUALIFIED_PREFIX
           
static byte QUEUE_TYPE
           
static String TEMP_DESTINATION_NAME_PREFIX
           
static byte TEMP_MASK
           
static String TEMP_QUEUE_QUALIFED_PREFIX
           
static byte TEMP_QUEUE_TYPE
           
static String TEMP_TOPIC_QUALIFED_PREFIX
           
static byte TEMP_TOPIC_TYPE
           
static String TOPIC_QUALIFIED_PREFIX
           
static byte TOPIC_TYPE
           
protected static UnresolvedDestinationTransformer unresolvableDestinationTransformer
           
 
Constructor Summary
  ActiveMQDestination()
           
  ActiveMQDestination(ActiveMQDestination[] composites)
           
protected ActiveMQDestination(String name)
           
 
Method Summary
 void buildFromProperties(Properties properties)
          Set the properties that will represent the instance in JNDI
static int compare(ActiveMQDestination destination, ActiveMQDestination destination2)
           
 int compareTo(Object that)
           
 ActiveMQDestination createDestination(String name)
           
static ActiveMQDestination createDestination(String name, byte defaultType)
           
 boolean equals(Object o)
           
 ActiveMQDestination[] getCompositeDestinations()
           
 String[] getDestinationPaths()
           
abstract  byte getDestinationType()
           
 String getDestinationTypeAsString()
           
 Map<String,String> getOptions()
           
 String getPhysicalName()
           
 String getQualifiedName()
           
protected abstract  String getQualifiedPrefix()
           
static UnresolvedDestinationTransformer getUnresolvableDestinationTransformer()
           
 int hashCode()
           
 boolean isComposite()
           
 boolean isMarshallAware()
           
 boolean isPattern()
           
 boolean isQueue()
           
 boolean isTemporary()
           
 boolean isTopic()
           
 void populateProperties(Properties props)
          Initialize the instance from properties stored in JNDI
 void readExternal(ObjectInput in)
           
 void setCompositeDestinations(ActiveMQDestination[] destinations)
           
 void setPhysicalName(String physicalName)
           
static void setUnresolvableDestinationTransformer(UnresolvedDestinationTransformer unresolvableDestinationTransformer)
           
 String toString()
           
static ActiveMQDestination transform(Destination dest)
           
 void writeExternal(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 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 String QUEUE_QUALIFIED_PREFIX
See Also:
Constant Field Values

TOPIC_QUALIFIED_PREFIX

public static final String TOPIC_QUALIFIED_PREFIX
See Also:
Constant Field Values

TEMP_QUEUE_QUALIFED_PREFIX

public static final String TEMP_QUEUE_QUALIFED_PREFIX
See Also:
Constant Field Values

TEMP_TOPIC_QUALIFED_PREFIX

public static final String TEMP_TOPIC_QUALIFED_PREFIX
See Also:
Constant Field Values

TEMP_DESTINATION_NAME_PREFIX

public static final String TEMP_DESTINATION_NAME_PREFIX
See Also:
Constant Field Values

physicalName

protected String physicalName

compositeDestinations

protected transient ActiveMQDestination[] compositeDestinations

destinationPaths

protected transient String[] destinationPaths

isPattern

protected transient boolean isPattern

hashValue

protected transient int hashValue

options

protected Map<String,String> options

unresolvableDestinationTransformer

protected static UnresolvedDestinationTransformer unresolvableDestinationTransformer
Constructor Detail

ActiveMQDestination

public ActiveMQDestination()

ActiveMQDestination

protected ActiveMQDestination(String name)

ActiveMQDestination

public ActiveMQDestination(ActiveMQDestination[] composites)
Method Detail

createDestination

public static ActiveMQDestination createDestination(String name,
                                                    byte defaultType)

transform

public static ActiveMQDestination transform(Destination dest)
                                     throws JMSException
Throws:
JMSException

compare

public static int compare(ActiveMQDestination destination,
                          ActiveMQDestination destination2)

compareTo

public int compareTo(Object that)
Specified by:
compareTo in interface Comparable<Object>

isComposite

public boolean isComposite()

getCompositeDestinations

public ActiveMQDestination[] getCompositeDestinations()

setCompositeDestinations

public void setCompositeDestinations(ActiveMQDestination[] destinations)

getQualifiedName

public String getQualifiedName()

getQualifiedPrefix

protected abstract String getQualifiedPrefix()

getPhysicalName

public String getPhysicalName()

setPhysicalName

public void setPhysicalName(String physicalName)

createDestination

public ActiveMQDestination createDestination(String name)

getDestinationPaths

public String[] getDestinationPaths()

getDestinationType

public abstract byte getDestinationType()

isQueue

public boolean isQueue()

isTopic

public boolean isTopic()

isTemporary

public boolean isTemporary()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class JNDIBaseStorable
Throws:
IOException
See Also:
Externalizable.writeExternal(java.io.ObjectOutput)

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class JNDIBaseStorable
Throws:
IOException
ClassNotFoundException
See Also:
Externalizable.readExternal(java.io.ObjectInput)

getDestinationTypeAsString

public String getDestinationTypeAsString()

getOptions

public Map<String,String> getOptions()

isMarshallAware

public boolean isMarshallAware()
Specified by:
isMarshallAware in interface DataStructure

buildFromProperties

public void buildFromProperties(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(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()

getUnresolvableDestinationTransformer

public static UnresolvedDestinationTransformer getUnresolvableDestinationTransformer()

setUnresolvableDestinationTransformer

public static void setUnresolvableDestinationTransformer(UnresolvedDestinationTransformer unresolvableDestinationTransformer)


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.