OmniSciDB
a5dc49c757
|
#include <RefreshTimeCalculator.h>
Static Public Member Functions | |
static int64_t | getNextRefreshTime (const std::map< std::string, std::string, std::less<>> &foreign_table_options) |
static int64_t | getCurrentTime () |
static void | setMockCurrentTime (int64_t mock_current_time) |
static void | resetMockCurrentTime () |
Static Private Attributes | |
static std::atomic< bool > | should_use_mock_current_time_ {false} |
static std::atomic< int64_t > | mock_current_time_ {0} |
Definition at line 25 of file RefreshTimeCalculator.h.
|
static |
Definition at line 76 of file RefreshTimeCalculator.cpp.
References CHECK_GT, mock_current_time_, and should_use_mock_current_time_.
Referenced by Catalog_Namespace::Catalog::getAllForeignTablesForRefresh(), getNextRefreshTime(), Catalog_Namespace::anonymous_namespace{Catalog.cpp}::set_common_log_system_table_options(), and Catalog_Namespace::Catalog::updateForeignTableRefreshTimes().
|
static |
Definition at line 51 of file RefreshTimeCalculator.cpp.
References CHECK, foreign_storage::anonymous_namespace{RefreshTimeCalculator.cpp}::get_interval_duration(), getCurrentTime(), foreign_storage::ForeignTable::NULL_REFRESH_TIME, foreign_storage::ForeignTable::REFRESH_INTERVAL_KEY, and foreign_storage::ForeignTable::REFRESH_START_DATE_TIME_KEY.
Referenced by Catalog_Namespace::anonymous_namespace{Catalog.cpp}::get_next_refresh_time().
|
static |
Definition at line 92 of file RefreshTimeCalculator.cpp.
References mock_current_time_, and should_use_mock_current_time_.
|
static |
Definition at line 87 of file RefreshTimeCalculator.cpp.
References mock_current_time_, and should_use_mock_current_time_.
|
inlinestaticprivate |
Definition at line 37 of file RefreshTimeCalculator.h.
Referenced by getCurrentTime(), resetMockCurrentTime(), and setMockCurrentTime().
|
inlinestaticprivate |
Definition at line 36 of file RefreshTimeCalculator.h.
Referenced by getCurrentTime(), resetMockCurrentTime(), and setMockCurrentTime().