Package org.apache.activemq.command
Class ActiveMQDestination
- java.lang.Object
-
- org.apache.activemq.jndi.JNDIBaseStorable
-
- 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
Fields Modifier and Type Field Description static char
COMPOSITE_SEPERATOR
protected ActiveMQDestination[]
compositeDestinations
protected String[]
destinationPaths
protected int
hashValue
static String
IS_DLQ
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
Constructors Modifier Constructor Description ActiveMQDestination()
protected
ActiveMQDestination(String name)
ActiveMQDestination(ActiveMQDestination[] composites)
-
Method Summary
-
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
-
IS_DLQ
public static final String IS_DLQ
- 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
-
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 interfaceComparable<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()
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classJNDIBaseStorable
- Throws:
IOException
- See Also:
Externalizable.writeExternal(java.io.ObjectOutput)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classJNDIBaseStorable
- Throws:
IOException
ClassNotFoundException
- See Also:
Externalizable.readExternal(java.io.ObjectInput)
-
getDestinationTypeAsString
public String getDestinationTypeAsString()
-
isMarshallAware
public boolean isMarshallAware()
- Specified by:
isMarshallAware
in interfaceDataStructure
-
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 classJNDIBaseStorable
-
populateProperties
public void populateProperties(Properties props)
Description copied from class:JNDIBaseStorable
Initialize the instance from properties stored in JNDI- Specified by:
populateProperties
in classJNDIBaseStorable
-
isPattern
public boolean isPattern()
-
isDLQ
public boolean isDLQ()
-
setDLQ
public void setDLQ(boolean val)
-
getUnresolvableDestinationTransformer
public static UnresolvedDestinationTransformer getUnresolvableDestinationTransformer()
-
setUnresolvableDestinationTransformer
public static void setUnresolvableDestinationTransformer(UnresolvedDestinationTransformer unresolvableDestinationTransformer)
-
-