OmniSciDB
a5dc49c757
|
#include <ForeignTableRefreshScheduler.h>
Static Public Member Functions | |
static void | start (std::atomic< bool > &is_program_running) |
static void | stop () |
static void | setWaitDuration (int64_t duration_in_seconds) |
static bool | isRunning () |
static bool | hasRefreshedTable () |
static void | resetHasRefreshedTable () |
Static Private Attributes | |
static std::atomic< bool > | is_scheduler_running_ {false} |
static std::chrono::seconds | thread_wait_duration_ {60} |
static std::thread | scheduler_thread_ |
static std::atomic< bool > | has_refreshed_table_ {false} |
static std::mutex | wait_mutex_ |
static std::condition_variable | wait_condition_ |
Definition at line 26 of file ForeignTableRefreshScheduler.h.
|
static |
Definition at line 90 of file ForeignTableRefreshScheduler.cpp.
References has_refreshed_table_.
|
static |
Definition at line 86 of file ForeignTableRefreshScheduler.cpp.
References is_scheduler_running_.
|
static |
Definition at line 94 of file ForeignTableRefreshScheduler.cpp.
References has_refreshed_table_.
|
static |
Definition at line 82 of file ForeignTableRefreshScheduler.cpp.
References thread_wait_duration_.
|
static |
Definition at line 27 of file ForeignTableRefreshScheduler.cpp.
References logger::ERROR, has_refreshed_table_, Catalog_Namespace::SysCatalog::instance(), is_scheduler_running_, LOG, foreign_storage::refresh_foreign_table(), scheduler_thread_, run_benchmark_import::tables, thread_wait_duration_, wait_condition_, and wait_mutex_.
Referenced by startHeavyDBServer().
|
static |
Definition at line 74 of file ForeignTableRefreshScheduler.cpp.
References is_scheduler_running_, scheduler_thread_, and wait_condition_.
Referenced by startHeavyDBServer().
|
staticprivate |
Definition at line 41 of file ForeignTableRefreshScheduler.h.
Referenced by hasRefreshedTable(), resetHasRefreshedTable(), and start().
|
staticprivate |
Definition at line 38 of file ForeignTableRefreshScheduler.h.
Referenced by isRunning(), start(), and stop().
|
staticprivate |
Definition at line 40 of file ForeignTableRefreshScheduler.h.
|
staticprivate |
Definition at line 39 of file ForeignTableRefreshScheduler.h.
Referenced by setWaitDuration(), and start().
|
staticprivate |
Definition at line 43 of file ForeignTableRefreshScheduler.h.
|
staticprivate |
Definition at line 42 of file ForeignTableRefreshScheduler.h.
Referenced by start().