rippled
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
ripple::test::csf::LedgerCollector Struct Reference

Tracks the accepted -> validated evolution of ledgers. More...

Collaboration diagram for ripple::test::csf::LedgerCollector:
Collaboration graph
[legend]

Classes

struct  Tracker
 

Public Types

using Hist = Histogram< SimTime::duration >
 

Public Member Functions

template<class E >
void on (PeerID, SimTime, E const &e)
 
void on (PeerID who, SimTime when, AcceptLedger const &e)
 
void on (PeerID who, SimTime when, FullyValidateLedger const &e)
 
std::size_t unvalidated () const
 
template<class T >
void report (SimDuration simDuration, T &log, bool printBreakline=false)
 
template<class T , class Tag >
void csv (SimDuration simDuration, T &log, Tag const &tag, bool printHeaders=false)
 

Public Attributes

std::size_t accepted {0}
 
std::size_t fullyValidated {0}
 
hash_map< Ledger::ID, Trackerledgers_
 
Hist acceptToFullyValid
 
Hist acceptToAccept
 
Hist fullyValidToFullyValid
 

Detailed Description

Tracks the accepted -> validated evolution of ledgers.

This collector tracks ledgers through the network by monitoring the first* time the ledger is accepted or fully validated by ANY node.

Definition at line 449 of file collectors.h.

Member Typedef Documentation

◆ Hist

Definition at line 466 of file collectors.h.

Member Function Documentation

◆ on() [1/3]

template<class E >
void ripple::test::csf::LedgerCollector::on ( PeerID  ,
SimTime  ,
E const &  e 
)

Definition at line 474 of file collectors.h.

◆ on() [2/3]

void ripple::test::csf::LedgerCollector::on ( PeerID  who,
SimTime  when,
AcceptLedger const &  e 
)

Definition at line 479 of file collectors.h.

◆ on() [3/3]

void ripple::test::csf::LedgerCollector::on ( PeerID  who,
SimTime  when,
FullyValidateLedger const &  e 
)

Definition at line 498 of file collectors.h.

◆ unvalidated()

std::size_t ripple::test::csf::LedgerCollector::unvalidated ( ) const

Definition at line 528 of file collectors.h.

◆ report()

template<class T >
void ripple::test::csf::LedgerCollector::report ( SimDuration  simDuration,
T &  log,
bool  printBreakline = false 
)

Definition at line 538 of file collectors.h.

◆ csv()

template<class T , class Tag >
void ripple::test::csf::LedgerCollector::csv ( SimDuration  simDuration,
T &  log,
Tag const &  tag,
bool  printHeaders = false 
)

Definition at line 602 of file collectors.h.

Member Data Documentation

◆ accepted

std::size_t ripple::test::csf::LedgerCollector::accepted {0}

Definition at line 451 of file collectors.h.

◆ fullyValidated

std::size_t ripple::test::csf::LedgerCollector::fullyValidated {0}

Definition at line 452 of file collectors.h.

◆ ledgers_

hash_map<Ledger::ID, Tracker> ripple::test::csf::LedgerCollector::ledgers_

Definition at line 464 of file collectors.h.

◆ acceptToFullyValid

Hist ripple::test::csf::LedgerCollector::acceptToFullyValid

Definition at line 467 of file collectors.h.

◆ acceptToAccept

Hist ripple::test::csf::LedgerCollector::acceptToAccept

Definition at line 468 of file collectors.h.

◆ fullyValidToFullyValid

Hist ripple::test::csf::LedgerCollector::fullyValidToFullyValid

Definition at line 469 of file collectors.h.