rippled
Public Member Functions | Private Attributes | List of all members
ripple::LedgerReplayMsgHandler Class Referencefinal
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. More...
 
bool processProofPathResponse (std::shared_ptr< protocol::TMProofPathResponse > const &msg)
 Process TMProofPathResponse. More...
 
protocol::TMReplayDeltaResponse processReplayDeltaRequest (std::shared_ptr< protocol::TMReplayDeltaRequest > const &msg)
 Process TMReplayDeltaRequest and return TMReplayDeltaResponse. More...
 
bool processReplayDeltaResponse (std::shared_ptr< protocol::TMReplayDeltaResponse > const &msg)
 Process TMReplayDeltaResponse. More...
 

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 28 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 38 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 105 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 178 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 220 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.