libdap  Updated for version 3.20.6
libdap4 is an implementation of OPeNDAP's DAP protocol.
libdap::HTTPCacheInterruptHandler Class Reference

#include <HTTPCacheInterruptHandler.h>

Inheritance diagram for libdap::HTTPCacheInterruptHandler:
Inheritance graph

Public Member Functions

virtual void handle_signal (int signum)
 

Detailed Description

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.

See also
EventHandler
SignalHandler
HTTPCache
Author
James Gallagher jgall.nosp@m.aghe.nosp@m.r@ope.nosp@m.ndap.nosp@m..org

Definition at line 57 of file HTTPCacheInterruptHandler.h.

Member Function Documentation

◆ handle_signal()

virtual void libdap::HTTPCacheInterruptHandler::handle_signal ( int  signum)
inlinevirtual

Handle SIGINT. This handler first deletes any files opened but not added to the cache index files and then calls HTTPCache::delete_instance().

Parameters
signumWe know it is SIGINT; included here as a check and only when NDEBUG is not defined.
Returns
Never returns.

Implements libdap::EventHandler.

Definition at line 77 of file HTTPCacheInterruptHandler.h.


The documentation for this class was generated from the following file: