HTTPCacheInterruptHandler Class Reference

#include <HTTPCacheInterruptHandler.h>

Inheritance diagram for HTTPCacheInterruptHandler:

Inheritance graph
[legend]
Collaboration diagram for HTTPCacheInterruptHandler:

Collaboration graph
[legend]
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 54 of file HTTPCacheInterruptHandler.h.


Constructor & Destructor Documentation

HTTPCacheInterruptHandler::HTTPCacheInterruptHandler (  )  [inline]

Definition at line 60 of file HTTPCacheInterruptHandler.h.

virtual HTTPCacheInterruptHandler::~HTTPCacheInterruptHandler (  )  [inline, virtual]

Definition at line 64 of file HTTPCacheInterruptHandler.h.


Member Function Documentation

virtual void 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:
signum We know it is SIGINT; included here as a check and only when NDEBUG is not defined.
Returns:
Never returns.

Implements EventHandler.

Definition at line 74 of file HTTPCacheInterruptHandler.h.

References HTTPCache::d_open_files, and DBG.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 12:58:00 2007 for libdap++ by  doxygen 1.4.7