rippled
Classes | Public Member Functions | Private Attributes | List of all members
ripple::NodeStore::ShardInfo Class Reference
Collaboration diagram for ripple::NodeStore::ShardInfo:
Collaboration graph
[legend]

Classes

class  Incomplete
 

Public Member Functions

NetClock::time_point const & msgTimestamp () const
 
void setMsgTimestamp (NetClock::time_point const &timestamp)
 
std::string finalizedToString () const
 
bool setFinalizedFromString (std::string const &str)
 
RangeSet< std::uint32_t > const & finalized () const
 
std::string incompleteToString () const
 
std::map< std::uint32_t, Incomplete > const & incomplete () const
 
bool update (std::uint32_t shardIndex, ShardState state, std::uint32_t percentProgress)
 
protocol::TMPeerShardInfoV2 makeMessage (Application &app)
 

Private Attributes

RangeSet< std::uint32_tfinalized_
 
std::map< std::uint32_t, Incompleteincomplete_
 
NetClock::time_point msgTimestamp_
 

Detailed Description

Definition at line 32 of file ShardInfo.h.

Member Function Documentation

◆ msgTimestamp()

NetClock::time_point const& ripple::NodeStore::ShardInfo::msgTimestamp ( ) const

Definition at line 63 of file ShardInfo.h.

◆ setMsgTimestamp()

void ripple::NodeStore::ShardInfo::setMsgTimestamp ( NetClock::time_point const &  timestamp)

Definition at line 69 of file ShardInfo.h.

◆ finalizedToString()

std::string ripple::NodeStore::ShardInfo::finalizedToString ( ) const

Definition at line 30 of file ShardInfo.cpp.

◆ setFinalizedFromString()

bool ripple::NodeStore::ShardInfo::setFinalizedFromString ( std::string const &  str)

Definition at line 78 of file ShardInfo.h.

◆ finalized()

RangeSet<std::uint32_t> const& ripple::NodeStore::ShardInfo::finalized ( ) const

Definition at line 84 of file ShardInfo.h.

◆ incompleteToString()

std::string ripple::NodeStore::ShardInfo::incompleteToString ( ) const

Definition at line 38 of file ShardInfo.cpp.

◆ incomplete()

std::map<std::uint32_t, Incomplete> const& ripple::NodeStore::ShardInfo::incomplete ( ) const

Definition at line 93 of file ShardInfo.h.

◆ update()

bool ripple::NodeStore::ShardInfo::update ( std::uint32_t  shardIndex,
ShardState  state,
std::uint32_t  percentProgress 
)

Definition at line 55 of file ShardInfo.cpp.

◆ makeMessage()

protocol::TMPeerShardInfoV2 ripple::NodeStore::ShardInfo::makeMessage ( Application app)

Definition at line 74 of file ShardInfo.cpp.

Member Data Documentation

◆ finalized_

RangeSet<std::uint32_t> ripple::NodeStore::ShardInfo::finalized_
private

Definition at line 110 of file ShardInfo.h.

◆ incomplete_

std::map<std::uint32_t, Incomplete> ripple::NodeStore::ShardInfo::incomplete_
private

Definition at line 113 of file ShardInfo.h.

◆ msgTimestamp_

NetClock::time_point ripple::NodeStore::ShardInfo::msgTimestamp_
private

Definition at line 116 of file ShardInfo.h.