CatapultServer  v0.5.0.1 (Elephant)
catapult::ionet::NodeInteractionsContainer Class Reference

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< NodeInteractionsBucketm_buckets
 

Detailed Description

Node interactions container.

Member Function Documentation

◆ addInteraction()

void catapult::ionet::NodeInteractionsContainer::addInteraction ( Timestamp  timestamp,
const consumer< NodeInteractionsBucket & > &  consumer 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BucketDuration()

utils::TimeSpan catapult::ionet::NodeInteractionsContainer::BucketDuration ( )
static

Maximum duration of an interaction bucket.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ incrementFailures()

void catapult::ionet::NodeInteractionsContainer::incrementFailures ( Timestamp  timestamp)

Increments failed interactions at timestamp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ incrementSuccesses()

void catapult::ionet::NodeInteractionsContainer::incrementSuccesses ( Timestamp  timestamp)

Increments successful interactions at timestamp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InteractionDuration()

utils::TimeSpan catapult::ionet::NodeInteractionsContainer::InteractionDuration ( )
static

Maximum duration of an interaction.

Here is the call graph for this function:

◆ interactions()

NodeInteractions catapult::ionet::NodeInteractionsContainer::interactions ( Timestamp  timestamp) const

Gets the node interactions at timestamp..

Here is the caller graph for this function:

◆ pruneBuckets()

void catapult::ionet::NodeInteractionsContainer::pruneBuckets ( Timestamp  timestamp)

Prunes buckets at timestamp.

Here is the caller graph for this function:

Member Data Documentation

◆ m_buckets

std::list<NodeInteractionsBucket> catapult::ionet::NodeInteractionsContainer::m_buckets
private

The documentation for this class was generated from the following files: