6 #ifndef TORII_COMMAND_SERVICE_IMPL_HPP 7 #define TORII_COMMAND_SERVICE_IMPL_HPP 11 #include <rxcpp/rx-lite.hpp> 31 std::shared_ptr<shared_model::interface::TransactionResponse>,
45 std::shared_ptr<iroha::torii::TransactionProcessor> tx_processor,
46 std::shared_ptr<iroha::ametsuchi::Storage> storage,
47 std::shared_ptr<iroha::torii::StatusBus> status_bus,
48 std::shared_ptr<shared_model::interface::TxStatusFactory>
50 std::shared_ptr<iroha::torii::CommandServiceImpl::CacheType> cache,
51 std::shared_ptr<iroha::ametsuchi::TxPresenceCache> tx_presence_cache,
64 std::shared_ptr<shared_model::interface::TransactionBatch> batch)
67 std::shared_ptr<shared_model::interface::TransactionResponse>
getStatus(
68 const shared_model::crypto::Hash &request)
override;
70 std::shared_ptr<shared_model::interface::TransactionResponse>>
80 inline void handleEvents(rxcpp::composite_subscription &subscription,
81 rxcpp::schedulers::run_loop &run_loop);
89 const std::string &who,
90 std::shared_ptr<shared_model::interface::TransactionResponse>
99 std::shared_ptr<shared_model::interface::TransactionBatch> batch);
101 std::shared_ptr<iroha::torii::TransactionProcessor> tx_processor_;
102 std::shared_ptr<iroha::ametsuchi::Storage> storage_;
103 std::shared_ptr<iroha::torii::StatusBus> status_bus_;
104 std::shared_ptr<CacheType> cache_;
105 std::shared_ptr<shared_model::interface::TxStatusFactory> status_factory_;
106 std::shared_ptr<iroha::ametsuchi::TxPresenceCache> tx_presence_cache_;
108 rxcpp::composite_subscription status_subscription_;
116 #endif // TORII_COMMAND_SERVICE_IMPL_HPP void handleTransactionBatch(std::shared_ptr< shared_model::interface::TransactionBatch > batch) override
Definition: command_service_impl.cpp:61
Definition: command_client.hpp:16
CommandServiceImpl & operator=(const CommandServiceImpl &)=delete
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
CommandServiceImpl(std::shared_ptr< iroha::torii::TransactionProcessor > tx_processor, std::shared_ptr< iroha::ametsuchi::Storage > storage, std::shared_ptr< iroha::torii::StatusBus > status_bus, std::shared_ptr< shared_model::interface::TxStatusFactory > status_factory, std::shared_ptr< iroha::torii::CommandServiceImpl::CacheType > cache, std::shared_ptr< iroha::ametsuchi::TxPresenceCache > tx_presence_cache, logger::LoggerPtr log)
Definition: command_service_impl.cpp:22
Definition: block_query.hpp:15
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
rxcpp::observable< std::shared_ptr< shared_model::interface::TransactionResponse > > getStatusStream(const shared_model::crypto::Hash &hash) override
Definition: command_service_impl.cpp:142
Definition: command_service.hpp:26
~CommandServiceImpl() override
Definition: command_service_impl.cpp:57
Definition: command_service_impl.hpp:26
std::shared_ptr< shared_model::interface::TransactionResponse > getStatus(const shared_model::crypto::Hash &request) override
Definition: command_service_impl.cpp:67