libdap++ Updated for version 3.8.2

libdap::HTTPCacheInterruptHandler Class Reference

#include <HTTPCacheInterruptHandler.h>

Inheritance diagram for libdap::HTTPCacheInterruptHandler:
Collaboration diagram for libdap::HTTPCacheInterruptHandler:

List of all members.

Public Member Functions

virtual void handle_signal (int signum)
 HTTPCacheInterruptHandler ()
virtual ~HTTPCacheInterruptHandler ()

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 <jgallagher@opendap.org>

Definition at line 57 of file HTTPCacheInterruptHandler.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().

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.

References DBG.


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