Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
|
#include <configuration.hpp>
Public Member Functions | |
bool | setHistoryLength (unsigned int history_length) throw () |
bool | setRecomputationPeriod (unsigned int length_of_recomputation_period) throw () |
bool | setRetrainingLength (unsigned int retraining_length) throw () |
bool | setAlgorithmMaximalIdleTime (unsigned int max_idle_time) throw () |
bool | setMaximalReadyQueueLength (unsigned int max_ready_queue_length_of_processing_devices) throw () |
bool | setOutlinerThreshold (double threshold) throw () |
unsigned int | getTrainingLength () const throw () |
unsigned int | getHistoryLength () const throw () |
unsigned int | getRecomputationPeriod () const throw () |
unsigned int | getRetrainingLength () const throw () |
unsigned int | getAlgorithmMaximalIdleTime () const throw () |
unsigned int | getRelativeErrorWindowSize () const throw () |
unsigned int | getMaximalSlowdownOfNonOptimalAlgorithm () const throw () |
returns maximal slowdown in percent | |
unsigned int | getMaximalReadyQueueLength () const throw () |
double | getOutlinerThreshold () const throw () |
bool | printAlgorithmStatistics () const throw () |
bool | isQueryChoppingEnabled () const throw () |
bool | setQueryChoppingEnabled (bool value) throw () |
OptimizationCriterion | getDefaultOptimizationCriterion () const throw () |
bool | setDefaultOptimizationCriterion (unsigned int value) throw () |
Static Public Member Functions | |
static Runtime_Configuration & | instance () throw () |
Private Member Functions | |
Runtime_Configuration () | |
Runtime_Configuration (const Runtime_Configuration &) | |
Runtime_Configuration & | operator= (const Runtime_Configuration &) |
Private Attributes | |
unsigned int | length_of_initial_training_phase_ |
unsigned int | length_of_history_ |
unsigned int | period_for_periodic_recomputation_ |
unsigned int | maximal_time_where_algorithm_was_not_choosen_ |
unsigned int | maximal_retraining_length_ |
unsigned int | window_size_for_windowed_average_relative_estimation_error_ |
unsigned int | maximal_slowdown_of_non_optimal_algorithm_in_percent_ |
unsigned int | ready_queue_length_of_processing_devices_ |
bool | print_algorithm_statistics_report_ |
bool | enableQueryChopping_ |
unsigned int | defaultOptimizationCriterion_ |
Definition at line 24 of file configuration.hpp.
hype::core::Runtime_Configuration::Runtime_Configuration | ( | ) | [private] |
Definition at line 37 of file runtime_configuration.cpp.
References defaultOptimizationCriterion_, length_of_history_, length_of_initial_training_phase_, hype::core::map_environment_variable_name_to_option_name(), maximal_retraining_length_, maximal_slowdown_of_non_optimal_algorithm_in_percent_, maximal_time_where_algorithm_was_not_choosen_, period_for_periodic_recomputation_, quiet, and ready_queue_length_of_processing_devices_.
hype::core::Runtime_Configuration::Runtime_Configuration | ( | const Runtime_Configuration & | ) | [private] |
unsigned int hype::core::Runtime_Configuration::getAlgorithmMaximalIdleTime | ( | ) | const throw () |
Definition at line 206 of file runtime_configuration.cpp.
References maximal_time_where_algorithm_was_not_choosen_.
Referenced by hype::core::Throughput::getOptimalAlgorithm_internal().
OptimizationCriterion hype::core::Runtime_Configuration::getDefaultOptimizationCriterion | ( | ) | const throw () |
Definition at line 238 of file runtime_configuration.cpp.
References defaultOptimizationCriterion_.
unsigned int hype::core::Runtime_Configuration::getHistoryLength | ( | ) | const throw () |
Definition at line 194 of file runtime_configuration.cpp.
References length_of_history_.
Referenced by main(), and hype::queryprocessing::Operation_Benchmark< Type >::run().
unsigned int hype::core::Runtime_Configuration::getMaximalReadyQueueLength | ( | ) | const throw () |
Definition at line 218 of file runtime_configuration.cpp.
References ready_queue_length_of_processing_devices_.
Referenced by hype::queryprocessing::ProcessingDevice::addOperator(), main(), and hype::queryprocessing::Operation_Benchmark< Type >::run().
unsigned int hype::core::Runtime_Configuration::getMaximalSlowdownOfNonOptimalAlgorithm | ( | ) | const throw () |
Definition at line 214 of file runtime_configuration.cpp.
References maximal_slowdown_of_non_optimal_algorithm_in_percent_.
Referenced by hype::core::Throughput::getOptimalAlgorithm_internal(), main(), and hype::queryprocessing::Operation_Benchmark< Type >::run().
double hype::core::Runtime_Configuration::getOutlinerThreshold | ( | ) | const throw () |
Definition at line 222 of file runtime_configuration.cpp.
Referenced by main(), and hype::queryprocessing::Operation_Benchmark< Type >::run().
unsigned int hype::core::Runtime_Configuration::getRecomputationPeriod | ( | ) | const throw () |
Definition at line 198 of file runtime_configuration.cpp.
References period_for_periodic_recomputation_.
Referenced by hype::core::PeriodicRecomputation::internal_recompute(), main(), and hype::queryprocessing::Operation_Benchmark< Type >::run().
unsigned int hype::core::Runtime_Configuration::getRelativeErrorWindowSize | ( | ) | const throw () |
Definition at line 210 of file runtime_configuration.cpp.
References window_size_for_windowed_average_relative_estimation_error_.
Referenced by hype::core::PlotScriptGenerator::createWindowedAverageRelativeErrorScript(), and hype::core::AlgorithmStatistics::writeToDisc().
unsigned int hype::core::Runtime_Configuration::getRetrainingLength | ( | ) | const throw () |
Definition at line 202 of file runtime_configuration.cpp.
References maximal_retraining_length_.
Referenced by hype::core::Algorithm::addMeasurementPair().
unsigned int hype::core::Runtime_Configuration::getTrainingLength | ( | ) | const throw () |
Definition at line 190 of file runtime_configuration.cpp.
References length_of_initial_training_phase_.
Referenced by hype::core::Report::getRelativeEstimationError(), main(), hype::queryprocessing::Operation_Benchmark< Type >::run(), and hype::core::AlgorithmStatistics::writeToDisc().
Runtime_Configuration & hype::core::Runtime_Configuration::instance | ( | ) | throw () [static] |
Definition at line 155 of file runtime_configuration.cpp.
Referenced by hype::core::Algorithm::addMeasurementPair(), hype::queryprocessing::ProcessingDevice::addOperator(), hype::core::PlotScriptGenerator::createWindowedAverageRelativeErrorScript(), hype::core::Throughput::getOptimalAlgorithm_internal(), hype::queryprocessing::N_AryOperator< OperatorInputType, OperatorOutputType >::getRecursiveExecutionTimeInNanoseconds(), hype::queryprocessing::BinaryOperator< OperatorInputTypeLeftChild, OperatorInputTypeRightChild, OperatorOutputType >::getRecursiveExecutionTimeInNanoseconds(), hype::core::Report::getRelativeEstimationError(), hype::core::PeriodicRecomputation::internal_recompute(), main(), hype::queryprocessing::UnaryOperator< OperatorInputType, OperatorOutputType >::run(), hype::queryprocessing::N_AryOperator< OperatorInputType, OperatorOutputType >::run(), hype::queryprocessing::BinaryOperator< OperatorInputTypeLeftChild, OperatorInputTypeRightChild, OperatorOutputType >::run(), hype::queryprocessing::Operation_Benchmark< Type >::run(), hype::core::AlgorithmStatistics::writeToDisc(), and hype::core::Algorithm::~Algorithm().
bool hype::core::Runtime_Configuration::isQueryChoppingEnabled | ( | ) | const throw () |
Definition at line 230 of file runtime_configuration.cpp.
References enableQueryChopping_.
Runtime_Configuration& hype::core::Runtime_Configuration::operator= | ( | const Runtime_Configuration & | ) | [private] |
bool hype::core::Runtime_Configuration::printAlgorithmStatistics | ( | ) | const throw () |
Definition at line 226 of file runtime_configuration.cpp.
References print_algorithm_statistics_report_.
bool hype::core::Runtime_Configuration::setAlgorithmMaximalIdleTime | ( | unsigned int | max_idle_time | ) | throw () |
Definition at line 175 of file runtime_configuration.cpp.
bool hype::core::Runtime_Configuration::setDefaultOptimizationCriterion | ( | unsigned int | value | ) | throw () |
Definition at line 242 of file runtime_configuration.cpp.
bool hype::core::Runtime_Configuration::setHistoryLength | ( | unsigned int | history_length | ) | throw () |
Definition at line 160 of file runtime_configuration.cpp.
bool hype::core::Runtime_Configuration::setMaximalReadyQueueLength | ( | unsigned int | max_ready_queue_length_of_processing_devices | ) | throw () |
Definition at line 180 of file runtime_configuration.cpp.
bool hype::core::Runtime_Configuration::setOutlinerThreshold | ( | double | threshold | ) | throw () |
Definition at line 185 of file runtime_configuration.cpp.
bool hype::core::Runtime_Configuration::setQueryChoppingEnabled | ( | bool | value | ) | throw () |
Definition at line 234 of file runtime_configuration.cpp.
bool hype::core::Runtime_Configuration::setRecomputationPeriod | ( | unsigned int | length_of_recomputation_period | ) | throw () |
Definition at line 165 of file runtime_configuration.cpp.
bool hype::core::Runtime_Configuration::setRetrainingLength | ( | unsigned int | retraining_length | ) | throw () |
Definition at line 170 of file runtime_configuration.cpp.
unsigned int hype::core::Runtime_Configuration::defaultOptimizationCriterion_ [private] |
Definition at line 84 of file configuration.hpp.
Referenced by getDefaultOptimizationCriterion(), and Runtime_Configuration().
bool hype::core::Runtime_Configuration::enableQueryChopping_ [private] |
Definition at line 83 of file configuration.hpp.
Referenced by isQueryChoppingEnabled().
unsigned int hype::core::Runtime_Configuration::length_of_history_ [private] |
Definition at line 75 of file configuration.hpp.
Referenced by getHistoryLength(), and Runtime_Configuration().
unsigned int hype::core::Runtime_Configuration::length_of_initial_training_phase_ [private] |
Definition at line 74 of file configuration.hpp.
Referenced by getTrainingLength(), and Runtime_Configuration().
unsigned int hype::core::Runtime_Configuration::maximal_retraining_length_ [private] |
Definition at line 78 of file configuration.hpp.
Referenced by getRetrainingLength(), and Runtime_Configuration().
unsigned int hype::core::Runtime_Configuration::maximal_slowdown_of_non_optimal_algorithm_in_percent_ [private] |
Definition at line 80 of file configuration.hpp.
Referenced by getMaximalSlowdownOfNonOptimalAlgorithm(), and Runtime_Configuration().
unsigned int hype::core::Runtime_Configuration::maximal_time_where_algorithm_was_not_choosen_ [private] |
Definition at line 77 of file configuration.hpp.
Referenced by getAlgorithmMaximalIdleTime(), and Runtime_Configuration().
unsigned int hype::core::Runtime_Configuration::period_for_periodic_recomputation_ [private] |
Definition at line 76 of file configuration.hpp.
Referenced by getRecomputationPeriod(), and Runtime_Configuration().
Definition at line 82 of file configuration.hpp.
Referenced by printAlgorithmStatistics().
unsigned int hype::core::Runtime_Configuration::ready_queue_length_of_processing_devices_ [private] |
Definition at line 81 of file configuration.hpp.
Referenced by getMaximalReadyQueueLength(), and Runtime_Configuration().
unsigned int hype::core::Runtime_Configuration::window_size_for_windowed_average_relative_estimation_error_ [private] |
Definition at line 79 of file configuration.hpp.
Referenced by getRelativeErrorWindowSize().