rippled
|
Public Member Functions | |
ShardFamily ()=delete | |
ShardFamily (ShardFamily const &)=delete | |
ShardFamily (ShardFamily &&)=delete | |
ShardFamily & | operator= (ShardFamily const &)=delete |
ShardFamily & | operator= (ShardFamily &&)=delete |
ShardFamily (Application &app, CollectorManager &cm) | |
NodeStore::Database & | db () override |
NodeStore::Database const & | db () const override |
beast::Journal const & | journal () override |
bool | isShardBacked () const override |
std::shared_ptr< FullBelowCache > | getFullBelowCache (std::uint32_t ledgerSeq) override |
Return a pointer to the Family Full Below Cache. More... | |
int | getFullBelowCacheSize () |
Return the number of entries in the cache. More... | |
std::shared_ptr< TreeNodeCache > | getTreeNodeCache (std::uint32_t ledgerSeq) override |
Return a pointer to the Family Tree Node Cache. More... | |
std::pair< int, int > | getTreeNodeCacheSize () |
Return a pair where the first item is the number of items cached and the second item is the number of entries in the cached. More... | |
void | sweep () override |
void | reset () override |
void | missingNodeAcquireBySeq (std::uint32_t seq, uint256 const &nodeHash) override |
Acquire ledger that has a missing node by ledger sequence. More... | |
void | missingNodeAcquireByHash (uint256 const &hash, std::uint32_t seq) override |
Acquire ledger that has a missing node by ledger hash. More... | |
Private Member Functions | |
void | acquire (uint256 const &hash, std::uint32_t seq) |
Private Attributes | |
Application & | app_ |
NodeStore::Database & | db_ |
CollectorManager & | cm_ |
const beast::Journal | j_ |
std::unordered_map< std::uint32_t, std::shared_ptr< FullBelowCache > > | fbCache_ |
std::mutex | fbCacheMutex_ |
std::unordered_map< std::uint32_t, std::shared_ptr< TreeNodeCache > > | tnCache_ |
std::mutex | tnCacheMutex_ |
const int | tnTargetSize_ |
const std::chrono::seconds | tnTargetAge_ |
LedgerIndex | maxSeq_ {0} |
std::mutex | maxSeqMutex_ |
Definition at line 30 of file ShardFamily.h.
|
delete |
|
delete |
|
delete |
ripple::ShardFamily::ShardFamily | ( | Application & | app, |
CollectorManager & | cm | ||
) |
Definition at line 37 of file ShardFamily.cpp.
|
delete |
|
delete |
|
overridevirtual |
Implements ripple::Family.
Definition at line 46 of file ShardFamily.h.
|
overridevirtual |
Implements ripple::Family.
Definition at line 52 of file ShardFamily.h.
|
overridevirtual |
Implements ripple::Family.
Definition at line 58 of file ShardFamily.h.
|
overridevirtual |
Implements ripple::Family.
Definition at line 64 of file ShardFamily.h.
|
overridevirtual |
Return a pointer to the Family Full Below Cache.
ledgerSeq | ledger sequence determines a corresponding shard cache |
Implements ripple::Family.
Definition at line 48 of file ShardFamily.cpp.
int ripple::ShardFamily::getFullBelowCacheSize | ( | ) |
Return the number of entries in the cache.
Definition at line 67 of file ShardFamily.cpp.
|
overridevirtual |
Return a pointer to the Family Tree Node Cache.
ledgerSeq | ledger sequence determines a corresponding shard cache |
Implements ripple::Family.
Definition at line 77 of file ShardFamily.cpp.
std::pair< int, int > ripple::ShardFamily::getTreeNodeCacheSize | ( | ) |
Return a pair where the first item is the number of items cached and the second item is the number of entries in the cached.
Definition at line 95 of file ShardFamily.cpp.
|
overridevirtual |
Implements ripple::Family.
Definition at line 109 of file ShardFamily.cpp.
|
overridevirtual |
Implements ripple::Family.
Definition at line 139 of file ShardFamily.cpp.
|
overridevirtual |
Acquire ledger that has a missing node by ledger sequence.
Throw if in reporting mode.
refNum | Sequence of ledger to acquire. |
nodeHash | Hash of missing node to report in throw. |
Implements ripple::Family.
Definition at line 156 of file ShardFamily.cpp.
|
overridevirtual |
Acquire ledger that has a missing node by ledger hash.
refHash | Hash of ledger to acquire. |
refNum | Ledger sequence with missing node. |
Implements ripple::Family.
Definition at line 96 of file ShardFamily.h.
|
private |
Definition at line 187 of file ShardFamily.cpp.
|
private |
Definition at line 102 of file ShardFamily.h.
|
private |
Definition at line 103 of file ShardFamily.h.
|
private |
Definition at line 104 of file ShardFamily.h.
|
private |
Definition at line 105 of file ShardFamily.h.
|
private |
Definition at line 107 of file ShardFamily.h.
|
private |
Definition at line 108 of file ShardFamily.h.
|
private |
Definition at line 110 of file ShardFamily.h.
|
private |
Definition at line 111 of file ShardFamily.h.
|
private |
Definition at line 112 of file ShardFamily.h.
|
private |
Definition at line 113 of file ShardFamily.h.
|
private |
Definition at line 116 of file ShardFamily.h.
|
private |
Definition at line 117 of file ShardFamily.h.