Fawkes API
Fawkes Development Version
|
21 #include "lookup_thread.h"
23 #include "lookup_estimator.h"
31 : Thread(
"ExecutionTimeEstimatorLookupEstimatorThread", Thread::OPMODE_WAITFORWAKEUP)
void register_provider(std::shared_ptr< ExecutionTimeEstimator > provider, int priority=0)
Add an execution time provider.
MongoDBConnCreator * mongodb_connmgr
Connection manager to retrieve more client connections from if necessary.
void unregister_provider(std::shared_ptr< ExecutionTimeEstimator > provider)
Remove an execution time estimate provider.
ExecutionTimeEstimatorManager * execution_time_estimator_manager_
The ExecutionTimeEstimatorManager that is used to manage the estimators.
void finalize()
Unregister the estimator.
void init()
Register the estimator.
Logger * logger
This is the Logger member used to access the logger.
Configuration * config
This is the Configuration member used to access the configuration.
ExecutionTimeEstimatorLookupEstimatorThread()
Constructor.
virtual int get_int_or_default(const char *path, const int &default_val)
Get value from configuration which is of type int, or the given default if the path does not exist.