libdap++
Updated for version 3.8.2
|
#include <HTTPCacheInterruptHandler.h>
Public Member Functions | |
virtual void | handle_signal (int signum) |
HTTPCacheInterruptHandler () | |
virtual | ~HTTPCacheInterruptHandler () |
Handle SIGINT for HTTPCache. When the cache is in use and the process is sent SIGINT, we must make sure that the cache is left in a consistent state. This includes removing the lock file, updating the index file and making sure no partially written data or meta data files exist.
libdap::HTTPCacheInterruptHandler::HTTPCacheInterruptHandler | ( | ) | [inline] |
Definition at line 63 of file HTTPCacheInterruptHandler.h.
virtual libdap::HTTPCacheInterruptHandler::~HTTPCacheInterruptHandler | ( | ) | [inline, virtual] |
Definition at line 67 of file HTTPCacheInterruptHandler.h.
virtual void libdap::HTTPCacheInterruptHandler::handle_signal | ( | int | signum | ) | [inline, virtual] |
Handle SIGINT. This handler first deletes any files opened but not added to the cache index files and then calls HTTPCache::delete_instance().
signum | We know it is SIGINT; included here as a check and only when NDEBUG is not defined. |
Implements libdap::EventHandler.
Definition at line 77 of file HTTPCacheInterruptHandler.h.
References DBG.