|
xrpld
|
#include <Logic.h>


Classes | |
| struct | Stats |
Public Member Functions | |
| Logic (beast::insight::Collector::ptr const &collector, clock_type &clock, beast::Journal journal) | |
| ~Logic () | |
| Consumer | newInboundEndpoint (beast::IP::Endpoint const &address) |
| Consumer | newOutboundEndpoint (beast::IP::Endpoint const &address) |
| Consumer | newUnlimitedEndpoint (beast::IP::Endpoint const &address) |
| Create endpoint that should not have resource limits applied. | |
| json::Value | getJson () |
| json::Value | getJson (int threshold) |
| Returns a json::ValueType::Object. | |
| Gossip | exportConsumers () |
| void | importConsumers (std::string const &origin, Gossip const &gossip) |
| void | periodicActivity () |
| void | erase (Table::iterator iter) |
| void | acquire (Entry &entry) |
| void | release (Entry &entry) |
| Disposition | charge (Entry &entry, Charge const &fee, std::string context={}) |
| bool | warn (Entry &entry) |
| bool | disconnect (Entry &entry) |
| int | balance (Entry &entry) |
| void | onWrite (beast::PropertyStream::Map &map) |
Static Public Member Functions | |
| static Disposition | disposition (int balance) |
| static void | writeList (clock_type::time_point const now, beast::PropertyStream::Set &items, EntryIntrusiveList &list) |
Private Types | |
| using | clock_type = Stopwatch |
| using | Imports = hash_map<std::string, Import> |
| using | Table = hash_map<Key, Entry, Key::Hasher, Key::KeyEqual> |
| using | EntryIntrusiveList = beast::List<Entry> |
Definition at line 20 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 23 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 24 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 25 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 26 of file include/xrpl/resource/detail/Logic.h.
| xrpl::Resource::Logic::Logic | ( | beast::insight::Collector::ptr const & | collector, |
| clock_type & | clock, | ||
| beast::Journal | journal ) |
Definition at line 70 of file include/xrpl/resource/detail/Logic.h.
| xrpl::Resource::Logic::~Logic | ( | ) |
Definition at line 78 of file include/xrpl/resource/detail/Logic.h.
| Consumer xrpl::Resource::Logic::newInboundEndpoint | ( | beast::IP::Endpoint const & | address | ) |
Definition at line 90 of file include/xrpl/resource/detail/Logic.h.
| Consumer xrpl::Resource::Logic::newOutboundEndpoint | ( | beast::IP::Endpoint const & | address | ) |
Definition at line 120 of file include/xrpl/resource/detail/Logic.h.
| Consumer xrpl::Resource::Logic::newUnlimitedEndpoint | ( | beast::IP::Endpoint const & | address | ) |
Create endpoint that should not have resource limits applied.
Other restrictions, such as permission to perform certain RPC calls, may be enabled.
Definition at line 153 of file include/xrpl/resource/detail/Logic.h.
| json::Value xrpl::Resource::Logic::getJson | ( | ) |
Definition at line 181 of file include/xrpl/resource/detail/Logic.h.
| json::Value xrpl::Resource::Logic::getJson | ( | int | threshold | ) |
Returns a json::ValueType::Object.
Definition at line 188 of file include/xrpl/resource/detail/Logic.h.
| Gossip xrpl::Resource::Logic::exportConsumers | ( | ) |
Definition at line 233 of file include/xrpl/resource/detail/Logic.h.
| void xrpl::Resource::Logic::importConsumers | ( | std::string const & | origin, |
| Gossip const & | gossip ) |
Definition at line 259 of file include/xrpl/resource/detail/Logic.h.
| void xrpl::Resource::Logic::periodicActivity | ( | ) |
Definition at line 318 of file include/xrpl/resource/detail/Logic.h.
|
static |
Definition at line 364 of file include/xrpl/resource/detail/Logic.h.
| void xrpl::Resource::Logic::erase | ( | Table::iterator | iter | ) |
Definition at line 376 of file include/xrpl/resource/detail/Logic.h.
| void xrpl::Resource::Logic::acquire | ( | Entry & | entry | ) |
Definition at line 386 of file include/xrpl/resource/detail/Logic.h.
| void xrpl::Resource::Logic::release | ( | Entry & | entry | ) |
Definition at line 393 of file include/xrpl/resource/detail/Logic.h.
| Disposition xrpl::Resource::Logic::charge | ( | Entry & | entry, |
| Charge const & | fee, | ||
| std::string | context = {} ) |
Definition at line 425 of file include/xrpl/resource/detail/Logic.h.
| bool xrpl::Resource::Logic::warn | ( | Entry & | entry | ) |
Definition at line 454 of file include/xrpl/resource/detail/Logic.h.
| bool xrpl::Resource::Logic::disconnect | ( | Entry & | entry | ) |
Definition at line 477 of file include/xrpl/resource/detail/Logic.h.
| int xrpl::Resource::Logic::balance | ( | Entry & | entry | ) |
Definition at line 502 of file include/xrpl/resource/detail/Logic.h.
|
static |
Definition at line 511 of file include/xrpl/resource/detail/Logic.h.
| void xrpl::Resource::Logic::onWrite | ( | beast::PropertyStream::Map & | map | ) |
Definition at line 529 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 40 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 41 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 42 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 44 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 47 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 54 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 57 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 60 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 63 of file include/xrpl/resource/detail/Logic.h.
|
private |
Definition at line 66 of file include/xrpl/resource/detail/Logic.h.