18#ifndef _ACTIVEMQ_COMMANDS_ACTIVEMQDESTINATION_H_
19#define _ACTIVEMQ_COMMANDS_ACTIVEMQDESTINATION_H_
74 const static unsigned char ID_ACTIVEMQDESTINATION = 0;
106 return this->hashCode;
116 return this->physicalName;
136 this->advisory = advisory;
150 this->exclusive = exclusive;
164 this->ordered = ordered;
171 return orderedTarget;
178 this->orderedTarget = orderedTarget;
230 return physicalName.find_first_of(COMPOSITE_SEPARATOR) != std::string::npos;
244 return physicalName.find_first_of(DestinationFilter::ANY_CHILD) != std::string::npos||
245 physicalName.find_first_of(DestinationFilter::ANY_DESCENDENT) != std::string::npos;
273 return ActiveMQDestination::createDestination(getDestinationType(), name);
293 return TEMP_PREFIX + clientId + TEMP_POSTFIX;
#define AMQCPP_API
Definition: Config.h:30
Definition: ActiveMQDestination.h:39
virtual bool operator==(const ActiveMQDestination &value) const
bool ordered
Definition: ActiveMQDestination.h:63
virtual bool isComposite() const
Returns true if this destination represents a collection of destinations; allowing a set of destinati...
Definition: ActiveMQDestination.h:229
virtual void setPhysicalName(const std::string &physicalName)
Set this destination's physical name.
static const std::string DEFAULT_ORDERED_TARGET
The default target for ordered destinations.
Definition: ActiveMQDestination.h:50
virtual std::string toString() const
Returns a string containing the information for this DataStructure such as its type and value of its ...
virtual unsigned char getDataStructureType() const
Get the DataStructure Type as defined in CommandTypes.h.
bool advisory
Definition: ActiveMQDestination.h:64
virtual bool equals(const DataStructure *value) const
Compares the DataStructure passed in to this one, and returns if they are equivalent.
static std::string createTemporaryName(const std::string &clientId)
Create a temporary name from the clientId.
Definition: ActiveMQDestination.h:292
util::ActiveMQProperties options
Definition: ActiveMQDestination.h:69
virtual std::string getOrderedTarget() const
Definition: ActiveMQDestination.h:170
ActiveMQDestination(const std::string &physicalName)
static const std::string COMPOSITE_SEPARATOR
Definition: ActiveMQDestination.h:54
const activemq::util::ActiveMQProperties & getOptions() const
Definition: ActiveMQDestination.h:251
virtual bool operator<(const ActiveMQDestination &value) const
virtual const cms::Destination * getCMSDestination() const
Definition: ActiveMQDestination.h:259
std::string orderedTarget
Definition: ActiveMQDestination.h:66
virtual bool isQueue() const
Returns true if a Queue Destination.
Definition: ActiveMQDestination.h:217
virtual ~ActiveMQDestination()
virtual int compareTo(const ActiveMQDestination &value) const
bool exclusive
Definition: ActiveMQDestination.h:62
decaf::util::ArrayList< Pointer< ActiveMQDestination > > getCompositeDestinations() const
Returns an ArrayList containing all the ActiveMQDestinations that comprise this Composite destination...
virtual void setAdvisory(bool advisory)
Definition: ActiveMQDestination.h:135
static const std::string TEMP_QUEUE_QUALIFED_PREFIX
Definition: ActiveMQDestination.h:58
virtual std::string getPhysicalName() const
Fetch this destination's physical name.
Definition: ActiveMQDestination.h:115
decaf::util::ArrayList< Pointer< ActiveMQDestination > > compositeDestinations
Definition: ActiveMQDestination.h:65
static const std::string TEMP_DESTINATION_NAME_PREFIX
Definition: ActiveMQDestination.h:76
virtual bool isAdvisory() const
Definition: ActiveMQDestination.h:128
std::string getDestinationTypeAsString() const
Returns the type of Destination that this object represents as a string, the available string values ...
virtual bool isTopic() const
Returns true if a Topic Destination.
Definition: ActiveMQDestination.h:208
virtual bool isTemporary() const
Returns true if a temporary Destination.
Definition: ActiveMQDestination.h:199
static const std::string TOPIC_QUALIFIED_PREFIX
Definition: ActiveMQDestination.h:57
std::string physicalName
Definition: ActiveMQDestination.h:68
static const std::string QUEUE_QUALIFIED_PREFIX
Definition: ActiveMQDestination.h:56
static Pointer< ActiveMQDestination > createDestination(int type, const std::string &name)
Creates a Destination given the String Name to use and a Type.
static std::string getClientId(const ActiveMQDestination *destination)
From a temporary destination find the clientId of the Connection that created it.
virtual bool isWildcard() const
Definition: ActiveMQDestination.h:243
virtual bool isOrdered() const
Definition: ActiveMQDestination.h:156
virtual void setExclusive(bool exclusive)
Definition: ActiveMQDestination.h:149
int hashCode
Definition: ActiveMQDestination.h:70
virtual bool equals(const ActiveMQDestination &value) const
decaf::lang::PointerComparator< ActiveMQDestination > COMPARATOR
Definition: ActiveMQDestination.h:78
static const std::string TEMP_POSTFIX
Definition: ActiveMQDestination.h:53
virtual cms::Destination::DestinationType getDestinationType() const =0
Returns the Type of Destination that this object represents.
static const std::string TEMP_PREFIX
Definition: ActiveMQDestination.h:52
virtual bool isExclusive() const
Definition: ActiveMQDestination.h:142
virtual void copyDataStructure(const DataStructure *src)
Copy the contents of the passed object into this objects members, overwriting any existing data.
static const std::string TEMP_TOPIC_QUALIFED_PREFIX
Definition: ActiveMQDestination.h:59
virtual void setOrderedTarget(const std::string &orderedTarget)
Definition: ActiveMQDestination.h:177
virtual void setOrdered(bool ordered)
Definition: ActiveMQDestination.h:163
int getHashCode() const
Definition: ActiveMQDestination.h:105
Pointer< ActiveMQDestination > createDestination(const std::string &name) const
Create a new Destination that's of the same type as this one but with the given destination name.
Definition: ActiveMQDestination.h:272
Definition: BaseDataStructure.h:33
Definition: DataStructure.h:27
Implementation of the CMSProperties interface that delegates to a decaf::util::Properties object.
Definition: ActiveMQProperties.h:37
A Destination object encapsulates a provider-specific address.
Definition: Destination.h:39
DestinationType
Definition: Destination.h:42
@ TEMPORARY_TOPIC
Definition: Destination.h:45
@ TOPIC
Definition: Destination.h:43
@ TEMPORARY_QUEUE
Definition: Destination.h:46
This interface imposes a total ordering on the objects of each class that implements it.
Definition: Comparable.h:33
This implementation of Comparator is designed to allows objects in a Collection to be sorted or teste...
Definition: Pointer.h:366
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53
Definition: ArrayList.h:39
#define NULL
Definition: Config.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: CachedConsumer.h:24
Definition: ActiveMQDestination.h:42
static const std::string ANY_CHILD
Definition: ActiveMQDestination.h:43
static const std::string ANY_DESCENDENT
Definition: ActiveMQDestination.h:44