InfiniSQL
v0.1.2-alpha
Massive Scale Transaction Processing
|
Message variant for synchronous replication. More...
#include <Message.h>
Classes | |
struct | dispatch_s |
MessageDispatch POD (serializable by memcpy) data members. More... | |
struct | record_s |
Public Member Functions | |
MessageDispatch () | |
virtual | ~MessageDispatch () |
size_t | size () |
get Message size More... | |
string * | ser () |
create string with serialized message More... | |
void | package (class SerializedMessage &serobj) |
serialize this More... | |
void | unpack (SerializedMessage &serobj) |
deserialize into this More... | |
void | clear () |
clear contents of this More... | |
Public Attributes | |
dispatch_s | dispatchStruct |
boost::unordered_map< int64_t, int64_t > | pidsids |
boost::unordered_map< int64_t, std::vector< record_s > > | records |
Additional Inherited Members |
MessageDispatch::MessageDispatch | ( | ) |
Definition at line 545 of file Message.cc.
References Message::messageStruct, PAYLOADDISPATCH, Message::message_s::payloadtype, Message::message_s::topic, and TOPIC_DISPATCH.
|
virtual |
Definition at line 551 of file Message.cc.
void MessageDispatch::clear | ( | ) |
clear contents of this
Definition at line 590 of file Message.cc.
References Message::clear(), dispatchStruct, pidsids, and records.
void MessageDispatch::package | ( | class SerializedMessage & | serobj) |
serialize this
serobj | SerializedMessage |
Definition at line 574 of file Message.cc.
References dispatchStruct, Message::package(), pidsids, records, and SerializedMessage::ser().
Referenced by ser().
string * MessageDispatch::ser | ( | ) |
create string with serialized message
Definition at line 562 of file Message.cc.
References SerializedMessage::data, SerializedMessage::getpayloadtype(), logfile, package(), and SerializedMessage::pos.
size_t MessageDispatch::size | ( | ) |
get Message size
Definition at line 555 of file Message.cc.
References dispatchStruct, pidsids, records, SerializedMessage::sersize(), and Message::size().
void MessageDispatch::unpack | ( | SerializedMessage & | serobj) |
deserialize into this
serobj | SerializedMessage |
Definition at line 582 of file Message.cc.
References SerializedMessage::des(), dispatchStruct, pidsids, records, and Message::unpack().
Referenced by Message::des().
dispatch_s MessageDispatch::dispatchStruct |
Definition at line 608 of file Message.h.
Referenced by clear(), TransactionAgent::handledispatch(), Transaction::makeMessageDispatch(), package(), size(), and unpack().
boost::unordered_map<int64_t, int64_t> MessageDispatch::pidsids |
boost::unordered_map< int64_t, std::vector<record_s> > MessageDispatch::records |