activemq-cpp-3.9.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. More... | |
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. More... | |
virtual void | copyDataStructure (const DataStructure *src) |
Copy the contents of the passed object into this objects members, overwriting any existing data. More... | |
virtual std::string | toString () const |
Returns a string containing the information for this DataStructure such as its type and value of its elements. More... | |
virtual bool | equals (const DataStructure *value) const |
Compares the DataStructure passed in to this one, and returns if they are equivalent. More... | |
virtual bool | isMarshalAware () const |
Determine if the class implementing this interface is really wanting to be told about marshaling. More... | |
virtual decaf::lang::Pointer < commands::Command > | visit (activemq::state::CommandVisitor *visitor) |
Allows a Visitor to visit this command and return a response to the command based on the command type being visited. More... | |
int | getVersion () const |
Get the current Wireformat Version. More... | |
void | setVersion (int version) |
Set the current Wireformat Version. More... | |
long long | getMaxInactivityDuration () const |
Returns the currently configured Max Inactivity duration. More... | |
void | setMaxInactivityDuration (long long maxInactivityDuration) |
Sets the Max inactivity duration value. More... | |
long long | getMaxInactivityDurationInitalDelay () const |
Returns the currently configured Max Inactivity Intial Delay duration. More... | |
void | setMaxInactivityDurationInitalDelay (long long maxInactivityDurationInitalDelay) |
Sets the Max inactivity initial delay duration value. More... | |
bool | isStackTraceEnabled () const |
Checks if the stackTraceEnabled flag is on. More... | |
void | setStackTraceEnabled (bool stackTraceEnabled) |
Sets if the stackTraceEnabled flag is on. More... | |
bool | isTcpNoDelayEnabled () const |
Checks if the tcpNoDelayEnabled flag is on. More... | |
void | setTcpNoDelayEnabled (bool tcpNoDelayEnabled) |
Sets if the tcpNoDelayEnabled flag is on. More... | |
bool | isCacheEnabled () const |
Checks if the cacheEnabled flag is on. More... | |
void | setCacheEnabled (bool cacheEnabled) |
Sets if the cacheEnabled flag is on. More... | |
int | getCacheSize () const |
Gets the Cache Size setting. More... | |
void | setCacheSize (int value) |
Sets the Cache Size setting. More... | |
bool | isTightEncodingEnabled () const |
Checks if the tightEncodingEnabled flag is on. More... | |
void | setTightEncodingEnabled (bool tightEncodingEnabled) |
Sets if the tightEncodingEnabled flag is on. More... | |
bool | isSizePrefixDisabled () const |
Checks if the sizePrefixDisabled flag is on. More... | |
void | setSizePrefixDisabled (bool sizePrefixDisabled) |
Sets if the sizePrefixDisabled flag is on. More... | |
const std::vector< unsigned char > & | getMagic () const |
Get the Magic field. More... | |
void | setMagic (const std::vector< unsigned char > &magic) |
Sets the value of the magic field. More... | |
const std::vector< unsigned char > & | getMarshalledProperties () const |
Get the marshalledProperties field. More... | |
void | setMarshalledProperties (const std::vector< unsigned char > &marshalledProperties) |
Sets the value of the marshalledProperties field. More... | |
virtual const util::PrimitiveMap & | getProperties () const |
Gets the Properties for this Command. More... | |
virtual util::PrimitiveMap & | getProperties () |
Gets the Properties for this Command. More... | |
virtual void | setProperties (const util::PrimitiveMap &map) |
Sets the Properties for this Command. More... | |
bool | isValid () const |
Determines if we think this is a Valid WireFormatInfo command. More... | |
virtual bool | isWireFormatInfo () const |
virtual void | beforeMarshal (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
virtual void | afterUnmarshal (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
Public Member Functions inherited from activemq::commands::BaseCommand | |
BaseCommand () | |
virtual | ~BaseCommand () |
virtual void | setCommandId (int id) |
Sets the Command Id of this Message. More... | |
virtual int | getCommandId () const |
Gets the Command Id of this Message. More... | |
virtual void | setResponseRequired (const bool required) |
Set if this Message requires a Response. More... | |
virtual bool | isResponseRequired () const |
Is a Response required for this Command. More... | |
virtual bool | isBrokerInfo () const |
virtual bool | isControlCommand () const |
virtual bool | isConnectionControl () const |
virtual bool | isConnectionError () const |
virtual bool | isConnectionInfo () const |
virtual bool | isConsumerInfo () const |
virtual bool | isConsumerControl () const |
virtual bool | isDestinationInfo () const |
virtual bool | isFlushCommand () const |
virtual bool | isMessage () const |
virtual bool | isMessageAck () const |
virtual bool | isMessagePull () const |
virtual bool | isKeepAliveInfo () const |
virtual bool | isMessageDispatch () const |
virtual bool | isMessageDispatchNotification () const |
virtual bool | isProducerAck () const |
virtual bool | isProducerInfo () const |
virtual bool | isResponse () const |
virtual bool | isRemoveInfo () const |
virtual bool | isRemoveSubscriptionInfo () const |
virtual bool | isReplayCommand () const |
virtual bool | isSessionInfo () const |
virtual bool | isShutdownInfo () const |
virtual bool | isTransactionInfo () const |
Public Member Functions inherited from activemq::commands::Command | |
virtual | ~Command () |
Public Member Functions inherited from activemq::commands::BaseDataStructure | |
virtual | ~BaseDataStructure () |
virtual void | afterMarshal (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
virtual void | beforeUnmarshal (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
virtual void | setMarshaledForm (wireformat::WireFormat *wireFormat AMQCPP_UNUSED, const std::vector< char > &data AMQCPP_UNUSED) |
virtual std::vector< unsigned char > | getMarshaledForm (wireformat::WireFormat *wireFormat AMQCPP_UNUSED) |
virtual void | copyDataStructure (const DataStructure *src AMQCPP_UNUSED) |
virtual bool | equals (const DataStructure *value AMQCPP_UNUSED) const |
Public Member Functions inherited from activemq::commands::DataStructure | |
virtual | ~DataStructure () |
Public Member Functions inherited from activemq::wireformat::MarshalAware | |
virtual | ~MarshalAware () |
virtual void | beforeMarshal (WireFormat *wireFormat)=0 |
Called before marshaling is started to prepare the object to be marshaled. More... | |
virtual void | afterMarshal (WireFormat *wireFormat)=0 |
Called after marshaling is started to cleanup the object being marshaled. More... | |
virtual void | beforeUnmarshal (WireFormat *wireFormat)=0 |
Called before unmarshaling is started to prepare the object to be unmarshaled. More... | |
virtual void | afterUnmarshal (WireFormat *wireFormat)=0 |
Called after unmarshaling is started to cleanup the object being unmarshaled. More... | |
virtual void | setMarshaledForm (WireFormat *wireFormat, const std::vector< char > &data)=0 |
Called to set the data to this object that will contain the objects marshaled form. More... | |
virtual std::vector< unsigned char > | getMarshaledForm (WireFormat *wireFormat)=0 |
Called to get the data to this object that will contain the objects marshaled form. More... | |
Static Public Attributes | |
static const unsigned char | ID_WIREFORMATINFO = 1 |
activemq::commands::WireFormatInfo::WireFormatInfo | ( | ) |
|
virtual |
|
virtual |
Reimplemented from activemq::commands::BaseDataStructure.
|
virtual |
Reimplemented from activemq::commands::BaseDataStructure.
|
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 |
Copy the contents of the passed object into this objects members, overwriting any existing data.
Reimplemented from activemq::commands::BaseCommand.
|
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 |
Get the DataStructure Type as defined in CommandTypes.h.
Implements activemq::commands::DataStructure.
|
inline |
Get the Magic field.
|
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.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Get the current Wireformat Version.
bool activemq::commands::WireFormatInfo::isCacheEnabled | ( | ) | const |
Checks if the cacheEnabled flag is on.
|
inlinevirtual |
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.
|
inlinevirtual |
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. |
|
inline |
Sets the value of the magic field.
magic | - const std::vector<char> |
|
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. |
|
inlinevirtual |
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 |
|
inline |
Set the current Wireformat Version.
version | - int that identifies the version |
|
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 |
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.
|
static |