|
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 86 of file MariaDBConnection.h.
|
explicit |
Definition at line 62 of file MariaDBConnection.cpp.
Referenced by database::mariadb::MariaDBClient::execute_async(), and database::mariadb::MariaDBClient::execute_sync().
|
delete |
|
override |
Definition at line 108 of file MariaDBConnection.cpp.
|
protected |
Definition at line 195 of file MariaDBConnection.cpp.
| void database::mariadb::MariaDBConnection::commandCompleted | ( | ) |
Definition at line 179 of file MariaDBConnection.cpp.
| void database::mariadb::MariaDBConnection::commandContinue | ( | int | status | ) |
Definition at line 169 of file MariaDBConnection.cpp.
| void database::mariadb::MariaDBConnection::commandStart | ( | const utils::Timeval & | currentTime | ) |
Definition at line 150 of file MariaDBConnection.cpp.
| MariaDBCommandSequence & database::mariadb::MariaDBConnection::execute_async | ( | MariaDBCommandSequence && | commandSequence | ) |
Definition at line 127 of file MariaDBConnection.cpp.
Referenced by database::mariadb::MariaDBClient::execute_async().
| void database::mariadb::MariaDBConnection::execute_sync | ( | MariaDBCommand * | mariaDBCommand | ) |
Definition at line 137 of file MariaDBConnection.cpp.
Referenced by database::mariadb::MariaDBClient::execute_sync().
|
delete |
|
overrideprotectedvirtual |
Implements core::eventreceiver::ExceptionalConditionEventReceiver.
Definition at line 257 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Reimplemented from core::eventreceiver::ExceptionalConditionEventReceiver.
Definition at line 269 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Implements core::eventreceiver::ReadEventReceiver.
Definition at line 249 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Reimplemented from core::eventreceiver::ReadEventReceiver.
Definition at line 261 of file MariaDBConnection.cpp.
| void database::mariadb::MariaDBConnection::unmanaged | ( | ) |
Definition at line 191 of file MariaDBConnection.cpp.
Referenced by database::mariadb::MariaDBClient::~MariaDBClient().
|
overrideprotectedvirtual |
Implements core::Observer.
Definition at line 273 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Implements core::eventreceiver::WriteEventReceiver.
Definition at line 253 of file MariaDBConnection.cpp.
|
overrideprotectedvirtual |
Reimplemented from core::eventreceiver::WriteEventReceiver.
Definition at line 265 of file MariaDBConnection.cpp.
|
private |
Definition at line 124 of file MariaDBConnection.h.
|
private |
Definition at line 129 of file MariaDBConnection.h.
|
private |
Definition at line 127 of file MariaDBConnection.h.
|
private |
Definition at line 126 of file MariaDBConnection.h.
|
private |
Definition at line 121 of file MariaDBConnection.h.
|
private |
Definition at line 122 of file MariaDBConnection.h.