#include "mst_processor_impl.hpp"


Public Member Functions | |
| FairMstProcessor (std::shared_ptr< iroha::network::MstTransport > transport, std::shared_ptr< MstStorage > storage, std::shared_ptr< PropagationStrategy > strategy, std::shared_ptr< MstTimeProvider > time_provider, logger::LoggerPtr log) | |
| ~FairMstProcessor () | |
| auto | propagateBatchImpl (const DataType &batch) -> decltype(propagateBatch(batch)) override |
| auto | onStateUpdateImpl () const -> decltype(onStateUpdate()) override |
| auto | onPreparedBatchesImpl () const -> decltype(onPreparedBatches()) override |
| auto | onExpiredBatchesImpl () const -> decltype(onExpiredBatches()) override |
| bool | batchInStorageImpl (const DataType &batch) const override |
| void | onNewState (shared_model::interface::types::PublicKeyHexStringView from, MstState &&new_state) override |
Public Member Functions inherited from iroha::MstProcessor | |
| void | propagateBatch (const DataType &batch) |
| bool | batchInStorage (const DataType &batch) const |
| rxcpp::observable< std::shared_ptr< MstState > > | onStateUpdate () const |
| rxcpp::observable< DataType > | onPreparedBatches () const |
| rxcpp::observable< DataType > | onExpiredBatches () const |
| virtual | ~MstProcessor ()=default |
Public Member Functions inherited from iroha::network::MstTransportNotification | |
| virtual | ~MstTransportNotification ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from iroha::MstProcessor | |
| MstProcessor (logger::LoggerPtr log) | |
Protected Attributes inherited from iroha::MstProcessor | |
| logger::LoggerPtr | log_ |
Effective implementation of MstProcessor, that implements gossip propagation of own state
| iroha::FairMstProcessor::FairMstProcessor | ( | std::shared_ptr< iroha::network::MstTransport > | transport, |
| std::shared_ptr< MstStorage > | storage, | ||
| std::shared_ptr< PropagationStrategy > | strategy, | ||
| std::shared_ptr< MstTimeProvider > | time_provider, | ||
| logger::LoggerPtr | log | ||
| ) |
| transport | - connection to other peers in network |
| storage | - repository for storing states |
| strategy | - propagation mechanism for sharing state with others |
| time_provider | - repository of current time |
| iroha::FairMstProcessor::~FairMstProcessor | ( | ) |
|
overridevirtual |
Implements iroha::MstProcessor.
|
overridevirtual |
Implements iroha::MstProcessor.
|
overridevirtual |
Handler method for updating state, when new data received
| from | - key of the peer emitted the state |
| new_state | - state propagated from peer |
Implements iroha::network::MstTransportNotification.
|
overridevirtual |
Implements iroha::MstProcessor.
|
overridevirtual |
Implements iroha::MstProcessor.
|
overridevirtual |
Implements iroha::MstProcessor.