SNode.C
|
#include <MariaDBConnection.h>
Public Member Functions | |
MariaDBConnection (MariaDBClient *mariaDBClient, const MariaDBConnectionDetails &connectionDetails) | |
MariaDBConnection (const MariaDBConnection &)=delete | |
~MariaDBConnection () override | |
MariaDBConnection & | operator= (const MariaDBConnection &)=delete |
MariaDBCommandSequence & | execute_async (MariaDBCommandSequence &&commandSequence) |
void | execute_sync (MariaDBCommand *mariaDBCommand) |
void | commandStart (const utils::Timeval ¤tTime) |
void | commandContinue (int status) |
void | commandCompleted () |
void | unmanaged () |
Protected Member Functions | |
void | checkStatus (int status) |
void | readEvent () override |
void | writeEvent () override |
void | outOfBandEvent () override |
void | readTimeout () override |
void | writeTimeout () override |
void | outOfBandTimeout () override |
void | unobservedEvent () override |
Private Attributes | |
MariaDBClient * | mariaDBClient |
MYSQL * | mysql |
std::deque< MariaDBCommandSequence > | commandSequenceQueue |
MariaDBCommand * | currentCommand = nullptr |
bool | connected = false |
MariaDBCommandStartEvent | commandStartEvent |
Additional Inherited Members | |
Private Member Functions inherited from core::eventreceiver::ReadEventReceiver | |
ReadEventReceiver (const std::string &name, const utils::Timeval &timeout) | |
Private Member Functions inherited from core::DescriptorEventReceiver | |
DescriptorEventReceiver (const std::string &name, DescriptorEventPublisher &descriptorEventPublisher, const utils::Timeval &timeout=TIMEOUT::DISABLE) | |
int | getRegisteredFd () const |
bool | isEnabled () const |
bool | isSuspended () const |
void | setTimeout (const utils::Timeval &timeout) |
utils::Timeval | getTimeout (const utils::Timeval ¤tTime) const |
void | checkTimeout (const utils::Timeval ¤tTime) |
bool | enable (int fd) |
void | disable () |
void | suspend () |
void | resume () |
Private Member Functions inherited from core::EventReceiver | |
EventReceiver (const std::string &name) | |
EventReceiver (EventReceiver &)=delete | |
EventReceiver (EventReceiver &&)=delete | |
EventReceiver & | operator= (EventReceiver &)=delete |
EventReceiver & | operator= (EventReceiver &&)=delete |
virtual void | destruct () |
void | span () |
void | relax () |
const std::string & | getName () const |
virtual | ~EventReceiver ()=default |
Private Member Functions inherited from core::eventreceiver::WriteEventReceiver | |
WriteEventReceiver (const std::string &name, const utils::Timeval &timeout) | |
Private Member Functions inherited from core::eventreceiver::ExceptionalConditionEventReceiver | |
ExceptionalConditionEventReceiver (const std::string &name, const utils::Timeval &timeout=60) | |
Static Private Member Functions inherited from core::EventReceiver | |
static void | atNextTick (const std::function< void(void)> &callBack) |
Definition at line 64 of file MariaDBConnection.h.
|
explicit |
Definition at line 40 of file MariaDBConnection.cpp.
Referenced by database::mariadb::MariaDBClient::execute_async(), and database::mariadb::MariaDBClient::execute_sync().
|
delete |
|
override |
Definition at line 86 of file MariaDBConnection.cpp.
|
protected |
Definition at line 173 of file MariaDBConnection.cpp.
void database::mariadb::MariaDBConnection::commandCompleted | ( | ) |
Definition at line 157 of file MariaDBConnection.cpp.
void database::mariadb::MariaDBConnection::commandContinue | ( | int | status | ) |
Definition at line 147 of file MariaDBConnection.cpp.
void database::mariadb::MariaDBConnection::commandStart | ( | const utils::Timeval & | currentTime | ) |
Definition at line 128 of file MariaDBConnection.cpp.
MariaDBCommandSequence & database::mariadb::MariaDBConnection::execute_async | ( | MariaDBCommandSequence && | commandSequence | ) |
Definition at line 105 of file MariaDBConnection.cpp.
Referenced by database::mariadb::MariaDBClient::execute_async().
void database::mariadb::MariaDBConnection::execute_sync | ( | MariaDBCommand * | mariaDBCommand | ) |
Definition at line 115 of file MariaDBConnection.cpp.
Referenced by database::mariadb::MariaDBClient::execute_sync().
|
delete |
|
overrideprotectedvirtual |
Implements core::eventreceiver::ExceptionalConditionEventReceiver.
Definition at line 235 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Reimplemented from core::eventreceiver::ExceptionalConditionEventReceiver.
Definition at line 247 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Implements core::eventreceiver::ReadEventReceiver.
Definition at line 227 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Reimplemented from core::eventreceiver::ReadEventReceiver.
Definition at line 239 of file MariaDBConnection.cpp.
void database::mariadb::MariaDBConnection::unmanaged | ( | ) |
Definition at line 169 of file MariaDBConnection.cpp.
Referenced by database::mariadb::MariaDBClient::~MariaDBClient().
|
overrideprotectedvirtual |
Implements core::Observer.
Definition at line 251 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Implements core::eventreceiver::WriteEventReceiver.
Definition at line 231 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Reimplemented from core::eventreceiver::WriteEventReceiver.
Definition at line 243 of file MariaDBConnection.cpp.
|
private |
Definition at line 102 of file MariaDBConnection.h.
|
private |
Definition at line 107 of file MariaDBConnection.h.
|
private |
Definition at line 105 of file MariaDBConnection.h.
|
private |
Definition at line 104 of file MariaDBConnection.h.
|
private |
Definition at line 99 of file MariaDBConnection.h.
|
private |
Definition at line 100 of file MariaDBConnection.h.