hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::torii::CommandService Class Referenceabstract

#include "command_service.hpp"

Inheritance diagram for iroha::torii::CommandService:
Inheritance graph
Collaboration diagram for iroha::torii::CommandService:
Collaboration graph

Public Member Functions

virtual ~CommandService ()=default
 
virtual void handleTransactionBatch (std::shared_ptr< shared_model::interface::TransactionBatch > batch)=0
 
virtual std::shared_ptr< shared_model::interface::TransactionResponsegetStatus (const shared_model::crypto::Hash &request)=0
 
virtual rxcpp::observable< std::shared_ptr< shared_model::interface::TransactionResponse > > getStatusStream (const shared_model::crypto::Hash &hash)=0
 

Constructor & Destructor Documentation

virtual iroha::torii::CommandService::~CommandService ( )
virtualdefault

Member Function Documentation

virtual std::shared_ptr<shared_model::interface::TransactionResponse> iroha::torii::CommandService::getStatus ( const shared_model::crypto::Hash request)
pure virtual

Request to retrieve a status of any particular transaction

Parameters
request- TxStatusRequest object which identifies transaction uniquely
Returns
response which contains a current state of requested transaction

Implemented in iroha::torii::CommandServiceImpl.

virtual rxcpp::observable< std::shared_ptr<shared_model::interface::TransactionResponse> > iroha::torii::CommandService::getStatusStream ( const shared_model::crypto::Hash hash)
pure virtual

Streaming call which will repeatedly send all statuses of requested transaction from its status at the moment of receiving this request to the some final transaction status (which cannot change anymore)

Parameters
request-TxStatusRequest object which identifies transaction uniquely
Returns
observable with transaction statuses

Implemented in iroha::torii::CommandServiceImpl.

virtual void iroha::torii::CommandService::handleTransactionBatch ( std::shared_ptr< shared_model::interface::TransactionBatch batch)
pure virtual

Actual implementation of sync Torii in CommandService

Parameters
batch- transactions we've received

Implemented in iroha::torii::CommandServiceImpl.


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