CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace config {
struct NodeConfiguration; }
29 namespace extensions {
class ServiceLocator; }
33 namespace catapult {
namespace extensions {
36 consumers::HashCheckOptions
CreateHashCheckOptions(
const utils::TimeSpan& cacheDuration,
const config::NodeConfiguration& nodeConfig);
42 void AddDispatcherCounters(ServiceLocator& locator,
const std::string& dispatcherName,
const std::string& counterPrefix);
uint32_t ShortLivedCacheMaxSize
Maximum size of a short lived cache.
Definition: NodeConfiguration.h:76
void AddDispatcherCounters(ServiceLocator &locator, const std::string &dispatcherName, const std::string &counterPrefix)
Adds dispatcher counters with prefix counterPrefix to locator for a dispatcher named dispatcherName.
Definition: DispatcherUtils.cpp:43
thread::Task CreateBatchTransactionTask(TransactionBatchRangeDispatcher &dispatcher, const std::string &name)
Creates a task with name that dispatches all transactions batched in dispatcher.
Definition: DispatcherUtils.cpp:54
consumer< const model::Transaction &, const Hash256 &, validators::ValidationResult > FailedTransactionSink
Indicates a transaction with the specified hash failed validation.
Definition: ChainFunctions.h:33
Dispatcher for disruptor consumers.
Definition: ConsumerDispatcher.h:35
Node configuration settings.
Definition: NodeConfiguration.h:33
Represents a time duration.
Definition: TimeSpan.h:30
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
consumers::HashCheckOptions CreateHashCheckOptions(const utils::TimeSpan &cacheDuration, const config::NodeConfiguration &nodeConfig)
Creates hash check options based on cacheDuration and nodeConfig.
Definition: DispatcherUtils.cpp:30
Batches entity ranges for processing by a ConsumerDispatcher.
Definition: BatchRangeDispatcher.h:33
Task CreateNamedTask(const std::string &name, const TaskCallback &callback)
Creates an unscheduled task with name and callback.
Definition: Task.cpp:52
chain::FailedTransactionSink SubscriberToSink(subscribers::TransactionStatusSubscriber &subscriber)
Converts subscriber to a sink.
Definition: DispatcherUtils.cpp:37
future< T > make_ready_future(T &&value)
Produces a future that is ready immediately and holds the given value.
Definition: Future.h:126
constexpr uint64_t millis() const
Returns the number of milliseconds.
Definition: TimeSpan.h:91
void dispatch()
Dispatches all queued elements to the underlying dispatcher.
Definition: BatchRangeDispatcher.h:69
virtual void notifyStatus(const model::Transaction &transaction, const Hash256 &hash, uint32_t status)=0
Indicates transaction with hash completed with status.
utils::TimeSpan ShortLivedCachePruneInterval
Time between short lived cache pruning.
Definition: NodeConfiguration.h:73
Definition: AddressExtractionExtension.cpp:28
Options for configuring the hash check consumer.
Definition: HashCheckOptions.h:27
void registerServiceCounter(const std::string &serviceName, const std::string &counterName, TSupplier supplier)
Adds a service-dependent counter with counterName for service serviceName given supplier.
Definition: ServiceLocator.h:97
A task that can be dispatched to the scheduler.
Definition: Task.h:45
Transaction status subscriber.
Definition: TransactionStatusSubscriber.h:30
A service locator for local node services.
Definition: ServiceLocator.h:33