activemq-cpp-3.4.0
|
#include <src/main/activemq/commands/WireFormatInfo.h>
Public Member Functions | |
WireFormatInfo () | |
virtual | ~WireFormatInfo () |
virtual unsigned char | getDataStructureType () const |
Get the DataStructure Type as defined in CommandTypes.h. | |
virtual DataStructure * | cloneDataStructure () const |
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one. | |
virtual void | copyDataStructure (const DataStructure *src) |
Copy the contents of the passed object into this objects members, overwriting any existing data. | |
virtual std::string | toString () const |
Returns a string containing the information for this DataStructure such as its type and value of its elements. | |
virtual bool | equals (const DataStructure *value) const |
Compares the DataStructure passed in to this one, and returns if they are equivalent. | |
virtual bool | isMarshalAware () const |
Determine if the class implementing this interface is really wanting to be told about marshaling. | |
virtual decaf::lang::Pointer < commands::Command > | visit (activemq::state::CommandVisitor *visitor) throw ( exceptions::ActiveMQException ) |
Allows a Visitor to visit this command and return a response to the command based on the command type being visited. | |
int | getVersion () const |
Get the current Wireformat Version. | |
void | setVersion (int version) |
Set the current Wireformat Version. | |
long long | getMaxInactivityDuration () const |
Returns the currently configured Max Inactivity duration. | |
void | setMaxInactivityDuration (long long maxInactivityDuration) |
Sets the Max inactivity duration value. | |
long long | getMaxInactivityDurationInitalDelay () const |
Returns the currently configured Max Inactivity Intial Delay duration. | |
void | setMaxInactivityDurationInitalDelay (long long maxInactivityDurationInitalDelay) |
Sets the Max inactivity initial delay duration value. | |
bool | isStackTraceEnabled () const |
Checks if the stackTraceEnabled flag is on. | |
void | setStackTraceEnabled (bool stackTraceEnabled) |
Sets if the stackTraceEnabled flag is on. | |
bool | isTcpNoDelayEnabled () const |
Checks if the tcpNoDelayEnabled flag is on. | |
void | setTcpNoDelayEnabled (bool tcpNoDelayEnabled) |
Sets if the tcpNoDelayEnabled flag is on. | |
bool | isCacheEnabled () const |
Checks if the cacheEnabled flag is on. | |
void | setCacheEnabled (bool cacheEnabled) |
Sets if the cacheEnabled flag is on. | |
int | getCacheSize () const |
Gets the Cache Size setting. | |
void | setCacheSize (int value) |
Sets the Cache Size setting. | |
bool | isTightEncodingEnabled () const |
Checks if the tightEncodingEnabled flag is on. | |
void | setTightEncodingEnabled (bool tightEncodingEnabled) |
Sets if the tightEncodingEnabled flag is on. | |
bool | isSizePrefixDisabled () const |
Checks if the sizePrefixDisabled flag is on. | |
void | setSizePrefixDisabled (bool sizePrefixDisabled) |
Sets if the sizePrefixDisabled flag is on. | |
const std::vector< unsigned char > & | getMagic () const |
Get the Magic field. | |
void | setMagic (const std::vector< unsigned char > &magic) |
Sets the value of the magic field. | |
const std::vector< unsigned char > & | getMarshalledProperties () const |
Get the marshalledProperties field. | |
void | setMarshalledProperties (const std::vector< unsigned char > &marshalledProperties) |
Sets the value of the marshalledProperties field. | |
virtual const util::PrimitiveMap & | getProperties () const |
Gets the Properties for this Command. | |
virtual util::PrimitiveMap & | getProperties () |
Gets the Properties for this Command. | |
virtual void | setProperties (const util::PrimitiveMap &map) |
Sets the Properties for this Command. | |
bool | isValid () const |
Determines if we think this is a Valid WireFormatInfo command. | |
virtual bool | isWireFormatInfo () const |
virtual void | beforeMarshal (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
virtual void | afterUnmarshal (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
Static Public Attributes | |
static const unsigned char | ID_WIREFORMATINFO = 1 |
activemq::commands::WireFormatInfo::WireFormatInfo | ( | ) |
virtual activemq::commands::WireFormatInfo::~WireFormatInfo | ( | ) | [virtual] |
virtual void activemq::commands::WireFormatInfo::afterUnmarshal | ( | wireformat::WireFormat *wireFormat | AMQCPP_UNUSED | ) | [virtual] |
Reimplemented from activemq::commands::BaseDataStructure.
virtual void activemq::commands::WireFormatInfo::beforeMarshal | ( | wireformat::WireFormat *wireFormat | AMQCPP_UNUSED | ) | [virtual] |
Reimplemented from activemq::commands::BaseDataStructure.
virtual DataStructure* activemq::commands::WireFormatInfo::cloneDataStructure | ( | ) | const [virtual] |
Clone this obbject and return a new instance that the caller now owns, this will be an exact copy of this one.
Implements activemq::commands::DataStructure.
virtual void activemq::commands::WireFormatInfo::copyDataStructure | ( | const DataStructure * | src | ) | [virtual] |
Copy the contents of the passed object into this objects members, overwriting any existing data.
Reimplemented from activemq::commands::BaseCommand.
virtual bool activemq::commands::WireFormatInfo::equals | ( | const DataStructure * | value | ) | const [virtual] |
Compares the DataStructure passed in to this one, and returns if they are equivalent.
Equivalent here means that they are of the same type, and that each element of the objects are the same.
Reimplemented from activemq::commands::BaseCommand.
int activemq::commands::WireFormatInfo::getCacheSize | ( | ) | const |
Gets the Cache Size setting.
virtual unsigned char activemq::commands::WireFormatInfo::getDataStructureType | ( | ) | const [virtual] |
Get the DataStructure Type as defined in CommandTypes.h.
Implements activemq::commands::DataStructure.
const std::vector<unsigned char>& activemq::commands::WireFormatInfo::getMagic | ( | ) | const [inline] |
Get the Magic field.
const std::vector<unsigned char>& activemq::commands::WireFormatInfo::getMarshalledProperties | ( | ) | const [inline] |
Get the marshalledProperties field.
long long activemq::commands::WireFormatInfo::getMaxInactivityDuration | ( | ) | const |
Returns the currently configured Max Inactivity duration.
long long activemq::commands::WireFormatInfo::getMaxInactivityDurationInitalDelay | ( | ) | const |
Returns the currently configured Max Inactivity Intial Delay duration.
virtual util::PrimitiveMap& activemq::commands::WireFormatInfo::getProperties | ( | ) | [inline, virtual] |
virtual const util::PrimitiveMap& activemq::commands::WireFormatInfo::getProperties | ( | ) | const [inline, virtual] |
int activemq::commands::WireFormatInfo::getVersion | ( | ) | const [inline] |
Get the current Wireformat Version.
bool activemq::commands::WireFormatInfo::isCacheEnabled | ( | ) | const |
Checks if the cacheEnabled flag is on.
virtual bool activemq::commands::WireFormatInfo::isMarshalAware | ( | ) | const [inline, virtual] |
Determine if the class implementing this interface is really wanting to be told about marshaling.
Normally if you didn't want to be marshal aware you just wouldn't implement this interface but since this is C++ and we don't have true interfaces we need a flat inheritance hierarchy, so we always implement this.
Reimplemented from activemq::commands::BaseDataStructure.
bool activemq::commands::WireFormatInfo::isSizePrefixDisabled | ( | ) | const |
Checks if the sizePrefixDisabled flag is on.
bool activemq::commands::WireFormatInfo::isStackTraceEnabled | ( | ) | const |
Checks if the stackTraceEnabled flag is on.
bool activemq::commands::WireFormatInfo::isTcpNoDelayEnabled | ( | ) | const |
Checks if the tcpNoDelayEnabled flag is on.
bool activemq::commands::WireFormatInfo::isTightEncodingEnabled | ( | ) | const |
Checks if the tightEncodingEnabled flag is on.
bool activemq::commands::WireFormatInfo::isValid | ( | ) | const |
Determines if we think this is a Valid WireFormatInfo command.
virtual bool activemq::commands::WireFormatInfo::isWireFormatInfo | ( | ) | const [inline, virtual] |
Reimplemented from activemq::commands::BaseCommand.
void activemq::commands::WireFormatInfo::setCacheEnabled | ( | bool | cacheEnabled | ) |
Sets if the cacheEnabled flag is on.
cacheEnabled | - true to turn flag is on |
void activemq::commands::WireFormatInfo::setCacheSize | ( | int | value | ) |
Sets the Cache Size setting.
value | - value to set to the cache size. |
void activemq::commands::WireFormatInfo::setMagic | ( | const std::vector< unsigned char > & | magic | ) | [inline] |
Sets the value of the magic field.
magic | - const std::vector<char> |
void activemq::commands::WireFormatInfo::setMarshalledProperties | ( | const std::vector< unsigned char > & | marshalledProperties | ) | [inline] |
Sets the value of the marshalledProperties field.
marshalledProperties | The Byte Array vector that contains the marshaled form of the Message properties, this is the data sent over the wire. |
void activemq::commands::WireFormatInfo::setMaxInactivityDuration | ( | long long | maxInactivityDuration | ) |
Sets the Max inactivity duration value.
maxInactivityDuration | - max time a client can be inactive. |
void activemq::commands::WireFormatInfo::setMaxInactivityDurationInitalDelay | ( | long long | maxInactivityDurationInitalDelay | ) |
Sets the Max inactivity initial delay duration value.
maxInactivityDurationInitalDelay | - time before the inactivity delay is checked. |
virtual void activemq::commands::WireFormatInfo::setProperties | ( | const util::PrimitiveMap & | map | ) | [inline, virtual] |
Sets the Properties for this Command.
map | - PrimtiveMap to copy |
void activemq::commands::WireFormatInfo::setSizePrefixDisabled | ( | bool | sizePrefixDisabled | ) |
Sets if the sizePrefixDisabled flag is on.
sizePrefixDisabled | - true to turn flag is on |
void activemq::commands::WireFormatInfo::setStackTraceEnabled | ( | bool | stackTraceEnabled | ) |
Sets if the stackTraceEnabled flag is on.
stackTraceEnabled | - ture to turn flag is on |
void activemq::commands::WireFormatInfo::setTcpNoDelayEnabled | ( | bool | tcpNoDelayEnabled | ) |
Sets if the tcpNoDelayEnabled flag is on.
tcpNoDelayEnabled | - ture to turn flag is on |
void activemq::commands::WireFormatInfo::setTightEncodingEnabled | ( | bool | tightEncodingEnabled | ) |
Sets if the tightEncodingEnabled flag is on.
tightEncodingEnabled | - true to turn flag is on |
void activemq::commands::WireFormatInfo::setVersion | ( | int | version | ) | [inline] |
Set the current Wireformat Version.
version | - int that identifies the version |
virtual std::string activemq::commands::WireFormatInfo::toString | ( | ) | const [virtual] |
Returns a string containing the information for this DataStructure such as its type and value of its elements.
Reimplemented from activemq::commands::BaseCommand.
virtual decaf::lang::Pointer<commands::Command> activemq::commands::WireFormatInfo::visit | ( | activemq::state::CommandVisitor * | visitor | ) | throw ( exceptions::ActiveMQException ) [virtual] |
Allows a Visitor to visit this command and return a response to the command based on the command type being visited.
The command will call the proper processXXX method in the visitor.
Implements activemq::commands::Command.
const unsigned char activemq::commands::WireFormatInfo::ID_WIREFORMATINFO = 1 [static] |