1 #ifndef __FAILBACKPOLLERSERVICE_HPP__ 2 #define __FAILBACKPOLLERSERVICE_HPP__ 24 std::string primaryUrl;
26 std::atomic<bool> is_running;
27 std::mutex service_mutex;
28 std::unique_ptr<std::thread> scheduler;
34 void reset_cluster_pointers();
39 primaryUrl(db.getPrimaryURL()),
40 pollingInterval(pollingInterval),
FailbackPollerService(const gpudb::GPUdb &db, long pollingInterval)
static constexpr int DEFAULT_POLLING_INTERVAL
static constexpr int DEFAULT_START_DELAY
virtual ~FailbackPollerService()
FailbackPollerService & operator=(const FailbackPollerService &)=delete
void start()
Starts the poller service.
bool isRunning()
Checks whether the poller is running and returns true or false.
void stop()
Stops the poller service.