#include <QuorumBuilderAct.h>
Inheritance diagram for CODEX_Server::QuorumBuilderAct:


Public Methods | |
| QuorumBuilderAct (CODEX_Events::DeadPileType &deadPile, CODEX_Events::QType &eventQueue) | |
| The constructor builds the activity and generates a QuorumBuilderEvent. | |
| virtual | ~QuorumBuilderAct () |
| Virtual destructor. | |
| bool | handler (QuorumBuilderEvent &event) |
| Handle a QuorumBuilderEvent. | |
| bool | handler (QuorumBuilderExpectNonceEvent &event) |
| Handle a QuorumBuilderExpectNonceEvent. | |
It generates and handles its own event, which acts as a trigger and contains no actual data, aside from enough state to prevent deadlock. Every time the handler is called, it will check for missing servers in the quorum system's list and attempt to contact them. An additional event controls the authentication protocol stages.
Definition at line 39 of file QuorumBuilderAct.h.
|
|
|
Handle a QuorumBuilderEvent. This event is just a trigger for the handler to try to make any outstanding connections to other servers in the quorum system.
Definition at line 51 of file QuorumBuilderAct.cc. References CODEX_Server::ServerState::haveQuorumServer(), CODEX_Server::ServerState::hostName(), CODEX_Server::ServerState::hostNum(), CODEX_Server::QuorumBuilderEvent::lastAttempt(), CODEX_Events::Activity::sendEvent(), CODEX_Server::ServerState::serverOutSocketBuilder(), CODEX_Server::ServerState::serverPort(), and CODEX_Server::QuorumBuilderEvent::setLastAttempt(). Referenced by CODEX_Server::QuorumBuilderExpectNonceEvent::handle(), and CODEX_Server::QuorumBuilderEvent::handle(). |
1.2.18