rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ripple::LedgerReplayMsgHandler Class Referencefinal

#include <LedgerReplayMsgHandler.h>

Collaboration diagram for ripple::LedgerReplayMsgHandler:
Collaboration graph
[legend]

Public Member Functions

 LedgerReplayMsgHandler (Application &app, LedgerReplayer &replayer)
 
 ~LedgerReplayMsgHandler ()=default
 
protocol::TMProofPathResponse processProofPathRequest (std::shared_ptr< protocol::TMProofPathRequest > const &msg)
 Process TMProofPathRequest and return TMProofPathResponse.
 
bool processProofPathResponse (std::shared_ptr< protocol::TMProofPathResponse > const &msg)
 Process TMProofPathResponse.
 
protocol::TMReplayDeltaResponse processReplayDeltaRequest (std::shared_ptr< protocol::TMReplayDeltaRequest > const &msg)
 Process TMReplayDeltaRequest and return TMReplayDeltaResponse.
 
bool processReplayDeltaResponse (std::shared_ptr< protocol::TMReplayDeltaResponse > const &msg)
 Process TMReplayDeltaResponse.
 

Private Attributes

Applicationapp_
 
LedgerReplayerreplayer_
 
beast::Journal journal_
 

Detailed Description

Definition at line 30 of file LedgerReplayMsgHandler.h.

Constructor & Destructor Documentation

◆ LedgerReplayMsgHandler()

ripple::LedgerReplayMsgHandler::LedgerReplayMsgHandler ( Application app,
LedgerReplayer replayer 
)

Definition at line 30 of file LedgerReplayMsgHandler.cpp.

◆ ~LedgerReplayMsgHandler()

ripple::LedgerReplayMsgHandler::~LedgerReplayMsgHandler ( )
default

Member Function Documentation

◆ processProofPathRequest()

protocol::TMProofPathResponse ripple::LedgerReplayMsgHandler::processProofPathRequest ( std::shared_ptr< protocol::TMProofPathRequest > const &  msg)

Process TMProofPathRequest and return TMProofPathResponse.

Note
check has_error() and error() of the response for error

Definition at line 40 of file LedgerReplayMsgHandler.cpp.

◆ processProofPathResponse()

bool ripple::LedgerReplayMsgHandler::processProofPathResponse ( std::shared_ptr< protocol::TMProofPathResponse > const &  msg)

Process TMProofPathResponse.

Returns
false if the response message has bad format or bad data; true otherwise

Definition at line 107 of file LedgerReplayMsgHandler.cpp.

◆ processReplayDeltaRequest()

protocol::TMReplayDeltaResponse ripple::LedgerReplayMsgHandler::processReplayDeltaRequest ( std::shared_ptr< protocol::TMReplayDeltaRequest > const &  msg)

Process TMReplayDeltaRequest and return TMReplayDeltaResponse.

Note
check has_error() and error() of the response for error

Definition at line 180 of file LedgerReplayMsgHandler.cpp.

◆ processReplayDeltaResponse()

bool ripple::LedgerReplayMsgHandler::processReplayDeltaResponse ( std::shared_ptr< protocol::TMReplayDeltaResponse > const &  msg)

Process TMReplayDeltaResponse.

Returns
false if the response message has bad format or bad data; true otherwise

Definition at line 222 of file LedgerReplayMsgHandler.cpp.

Member Data Documentation

◆ app_

Application& ripple::LedgerReplayMsgHandler::app_
private

Definition at line 71 of file LedgerReplayMsgHandler.h.

◆ replayer_

LedgerReplayer& ripple::LedgerReplayMsgHandler::replayer_
private

Definition at line 72 of file LedgerReplayMsgHandler.h.

◆ journal_

beast::Journal ripple::LedgerReplayMsgHandler::journal_
private

Definition at line 73 of file LedgerReplayMsgHandler.h.