InfiniSQL  v0.1.2-alpha
Massive Scale Transaction Processing
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MessageAckApply Class Reference

Message variant for acknowledging Applier activities. More...

#include <Message.h>

Inheritance diagram for MessageAckApply:
Collaboration diagram for MessageAckApply:

Classes

struct  ackapply_s
 MessageAckApply POD (serializable by memcpy) data members. More...
 

Public Member Functions

 MessageAckApply ()
 
 MessageAckApply (int64_t subtransactionidarg, int64_t applieridarg, int64_t partitionidarg, int statusarg)
 Message variant for acknowledging Applier activities. More...
 
virtual ~MessageAckApply ()
 
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 Member Functions inherited from Message
 Message ()
 
virtual ~Message ()
 
size_t size ()
 get Message size More...
 
std::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...
 
string * sermsg ()
 return serialized Message variant string More...
 
void setEnvelope (const Topology::addressStruct &source, const Topology::addressStruct &dest, class Message &msg)
 put addresses in Message variant envelope More...
 

Public Attributes

ackapply_s ackapplyStruct
 
- Public Attributes inherited from Message
__int128 nextmsg
 
message_s messageStruct
 

Additional Inherited Members

- Static Public Member Functions inherited from Message
static class Messagedes (string *serstr)
 deserialize entire message More...
 

Detailed Description

Message variant for acknowledging Applier activities.

Returns

Definition at line 785 of file Message.h.

Constructor & Destructor Documentation

MessageAckApply::MessageAckApply ( )

Definition at line 733 of file Message.cc.

734 {
735 }
MessageAckApply::MessageAckApply ( int64_t  subtransactionidarg,
int64_t  applieridarg,
int64_t  partitionidarg,
int  statusarg 
)

Message variant for acknowledging Applier activities.

Parameters
subtransactionidargsubtransactionid
applieridargapplierid
partitionidargpartitionid
statusargstatus
Returns

Definition at line 737 of file Message.cc.

739  :
740  ackapplyStruct ({subtransactionidarg, applieridarg, partitionidarg,
741  statusarg})
MessageAckApply::~MessageAckApply ( )
virtual

Definition at line 747 of file Message.cc.

748 {
749 }

Member Function Documentation

void MessageAckApply::clear ( )

clear contents of this

Definition at line 780 of file Message.cc.

References ackapplyStruct, and Message::clear().

781 {
782  Message::clear();
783  ackapplyStruct={};
784 }

Here is the call graph for this function:

void MessageAckApply::package ( class SerializedMessage serobj)

serialize this

Parameters
serobjSerializedMessage

Definition at line 768 of file Message.cc.

References ackapplyStruct, Message::package(), and SerializedMessage::ser().

Referenced by ser().

769 {
770  Message::package(serobj);
771  serobj.ser(ackapplyStruct);
772 }

Here is the call graph for this function:

Here is the caller graph for this function:

string * MessageAckApply::ser ( )

create string with serialized message

Returns
serialized message string

Definition at line 756 of file Message.cc.

References SerializedMessage::data, SerializedMessage::getpayloadtype(), logfile, package(), and SerializedMessage::pos.

757 {
758  class SerializedMessage serobj(size());
759  package(serobj);
760  if (serobj.data->size() != serobj.pos)
761  {
762  fprintf(logfile, "%s %i ser %i size %lu pos %lu\n", __FILE__, __LINE__,
763  serobj.getpayloadtype(), serobj.data->size(), serobj.pos);
764  }
765  return serobj.data;
766 }

Here is the call graph for this function:

size_t MessageAckApply::size ( )

get Message size

Returns
size in bytes

Definition at line 751 of file Message.cc.

References ackapplyStruct, SerializedMessage::sersize(), and Message::size().

752 {
754 }

Here is the call graph for this function:

void MessageAckApply::unpack ( SerializedMessage serobj)

deserialize into this

Parameters
serobjSerializedMessage

Definition at line 774 of file Message.cc.

References ackapplyStruct, SerializedMessage::des(), and Message::unpack().

Referenced by Message::des().

775 {
776  Message::unpack(serobj);
777  serobj.des(ackapplyStruct);
778 }

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

ackapply_s MessageAckApply::ackapplyStruct

The documentation for this class was generated from the following files: