CatapultServer
v0.5.0.1 (Elephant)
|
Node interactions container. More...
Classes | |
struct | NodeInteractionsBucket |
Public Member Functions | |
NodeInteractions | interactions (Timestamp timestamp) const |
Gets the node interactions at timestamp.. More... | |
void | incrementSuccesses (Timestamp timestamp) |
Increments successful interactions at timestamp. More... | |
void | incrementFailures (Timestamp timestamp) |
Increments failed interactions at timestamp. More... | |
void | pruneBuckets (Timestamp timestamp) |
Prunes buckets at timestamp. More... | |
Static Public Member Functions | |
static utils::TimeSpan | BucketDuration () |
Maximum duration of an interaction bucket. More... | |
static utils::TimeSpan | InteractionDuration () |
Maximum duration of an interaction. More... | |
Private Member Functions | |
void | addInteraction (Timestamp timestamp, const consumer< NodeInteractionsBucket & > &consumer) |
Private Attributes | |
std::list< NodeInteractionsBucket > | m_buckets |
Node interactions container.
|
private |
|
static |
Maximum duration of an interaction bucket.
void catapult::ionet::NodeInteractionsContainer::incrementFailures | ( | Timestamp | timestamp | ) |
Increments failed interactions at timestamp.
void catapult::ionet::NodeInteractionsContainer::incrementSuccesses | ( | Timestamp | timestamp | ) |
Increments successful interactions at timestamp.
|
static |
Maximum duration of an interaction.
NodeInteractions catapult::ionet::NodeInteractionsContainer::interactions | ( | Timestamp | timestamp | ) | const |
Gets the node interactions at timestamp..
void catapult::ionet::NodeInteractionsContainer::pruneBuckets | ( | Timestamp | timestamp | ) |
Prunes buckets at timestamp.
|
private |