InfiniSQL
v0.1.2-alpha
Massive Scale Transaction Processing
|
Actor which communicates with clients and executes transactions. Coordinates of activities between several other actors. More...
#include "gch.h"
#include "Operation.h"
#include "Table.h"
#include "Schema.h"
#include "Larxer.h"
#include "Transaction.h"
#include "Applier.h"
Go to the source code of this file.
Classes | |
struct | idl |
orphan More... | |
struct | responseData |
for storing network responses held up by EAGAIN on raw interface More... | |
struct | authInfo |
authentication information, uniquely identifying a user More... | |
class | TransactionAgent |
execute Transaction Agent actor More... | |
Typedefs | |
typedef vector< idl > | cmds |
typedef boost::unordered_map < std::string, procedures_s > | domainProceduresMap |
typedef boost::unordered_map < int, responseData > | sendLaterMap |
typedef std::map< int, authInfo > | socketAuthInfo |
typedef boost::unordered_map < int64_t, class Operation * > | operationMap |
typedef ApiInterface *(* | spclasscreate )(class TransactionAgent *, class ApiInterface *, void *) |
typedef void(* | spclassdestroy )(ApiInterface *) |
Enumerations | |
enum | transactionpayload_e { NOPAYLOAD = 0, SUBTRANSACTIONCMDPAYLOAD, COMMITROLLBACKPAYLOAD } |
type of MessageTransaction variant. likely an orphan More... | |
enum | idlcmd_e { IDLNOCMD = 0, IDLROWLOCK, IDLINDEXLOCK, IDLINSERTROW, IDLINDEX, IDLDELETEUNIQUEINDEX, IDLINSERTNONUNIQUEINDEX, IDLINSERTNULLINDEX, IDLDELETENONUNIQUEINDEX, IDLDELETENULLINDEX, IDLREPLACEINDEX, IDLROLLBACKROW, IDLROLLBACKINDEX } |
likely an orphan More... | |
Functions | |
msgpack::sbuffer * | makeSbuf (msgpack::sbuffer *) |
msgpack::sbuffer * | makeSbuf (vector< string > *) |
msgpack::sbuffer * | makeSbuf (std::map< string, string > *) |
template<typename T > | |
void | replyTa (T servent, topic_e result, void *msg) |
orphan More... | |
void * | transactionAgent (void *identity) |
launch Transaction Agent actor More... | |
Actor which communicates with clients and executes transactions. Coordinates of activities between several other actors.
Definition in file TransactionAgent.h.
Definition at line 94 of file TransactionAgent.h.
typedef boost::unordered_map<std::string, procedures_s> domainProceduresMap |
Definition at line 99 of file TransactionAgent.h.
typedef boost::unordered_map<int64_t, class Operation *> operationMap |
Definition at line 129 of file TransactionAgent.h.
typedef boost::unordered_map<int, responseData> sendLaterMap |
Definition at line 123 of file TransactionAgent.h.
typedef std::map<int, authInfo> socketAuthInfo |
Definition at line 128 of file TransactionAgent.h.
typedef ApiInterface*(* spclasscreate)(class TransactionAgent *, class ApiInterface *, void *) |
Definition at line 506 of file TransactionAgent.h.
typedef void(* spclassdestroy)(ApiInterface *) |
Definition at line 508 of file TransactionAgent.h.
enum idlcmd_e |
likely an orphan
Definition at line 55 of file TransactionAgent.h.
enum transactionpayload_e |
type of MessageTransaction variant. likely an orphan
Enumerator | |
---|---|
NOPAYLOAD | |
SUBTRANSACTIONCMDPAYLOAD | |
COMMITROLLBACKPAYLOAD |
Definition at line 44 of file TransactionAgent.h.
msgpack::sbuffer* makeSbuf | ( | msgpack::sbuffer * | ) |
Definition at line 1344 of file TransactionAgent.cc.
Referenced by TransactionAgent::sendResponse().
msgpack::sbuffer* makeSbuf | ( | vector< string > * | ) |
Definition at line 1349 of file TransactionAgent.cc.
msgpack::sbuffer* makeSbuf | ( | std::map< string, string > * | ) |
Definition at line 1356 of file TransactionAgent.cc.
void replyTa | ( | T | servent, |
topic_e | result, | ||
void * | msg | ||
) |
orphan
servent | |
result | |
msg |
Definition at line 518 of file TransactionAgent.h.
References MessageUserSchema::userschema_s::domainid, Message::messageStruct, MessageUserSchema::userschema_s::operationid, PAYLOADUSERSCHEMA, MessageUserSchema::userschema_s::status, Message::message_s::topic, MessageUserSchema::userschema_s::userid, and MessageUserSchema::userschemaStruct.
void* transactionAgent | ( | void * | identity) |
launch Transaction Agent actor
identity | how to identify actor instance |
Definition at line 633 of file TransactionAgent.cc.