CatapultServer  v0.5.0.1 (Elephant)
SchedulerService.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace sync { struct TasksConfiguration; } }
25 
26 namespace catapult { namespace sync {
27 
30  DECLARE_SERVICE_REGISTRAR(Scheduler)(const TasksConfiguration& config);
31 }}
catapult::sync::TasksConfiguration
Tasks configuration settings.
Definition: TasksConfiguration.h:90
SchedulerService.h
ServiceRegistrar.h
catapult::extensions::ServiceRegistrarPhase::Post_Tasks
Requires all tasks to be registered.
ServiceLocator.h
catapult::thread::CreateUniformDelayGenerator
DelayGenerator CreateUniformDelayGenerator(const utils::TimeSpan &delay)
Creates a uniform delay generator that always returns delay.
Definition: Task.cpp:26
catapult::sync::Scheduler
DECLARE_SERVICE_REGISTRAR() Scheduler(const TasksConfiguration &config)
Definition: SchedulerService.cpp:86
TasksConfiguration.h
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
Scheduler.h
CATAPULT_THROW_INVALID_ARGUMENT_1
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
MultiServicePool.h
m_config
TasksConfiguration m_config
Definition: SchedulerService.cpp:82
catapult::sync::TasksConfiguration::TaskType::Uniform
A task that is scheduled with constant intervals.
catapult::thread::CreateIncreasingDelayGenerator
DelayGenerator CreateIncreasingDelayGenerator(const utils::TimeSpan &minDelay, uint32_t numPhaseOneRounds, const utils::TimeSpan &maxDelay, uint32_t numTransitionRounds)
Definition: Task.cpp:30
catapult
Definition: AddressExtractionExtension.cpp:28
DECLARE_SERVICE_REGISTRAR
#define DECLARE_SERVICE_REGISTRAR(NAME)
Declares a service registrar entry point with NAME.
Definition: ServiceRegistrar.h:61
catapult::thread::CreateScheduler
std::shared_ptr< Scheduler > CreateScheduler(const std::shared_ptr< IoThreadPool > &pPool)
Creates a scheduler around the specified thread pool (pPool).
Definition: Scheduler.cpp:213
ServiceState.h