ldas-tools-diskcacheAPI 2.7.7
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
anonymous_namespace{HotDirectory.cc}::daemon Class Reference

Process the collection of hot directories. More...

Inheritance diagram for anonymous_namespace{HotDirectory.cc}::daemon:
Inheritance graph
[legend]
Collaboration diagram for anonymous_namespace{HotDirectory.cc}::daemon:
Collaboration graph
[legend]

Classes

struct  info
 Storage class of state information. More...
 
class  no_next
 

Public Types

typedef HotDirectory::shared_dir_info_type shared_dir_info_type
 Storage type for directory information. More...
 
typedef HotDirectory::weak_dir_info_type weak_dir_info_type
 Storage type for directory information. More...
 
typedef HotDirectory::shared_dir_info_type::element_type dir_info_type
 

Public Member Functions

 daemon ()
 Default constructor. More...
 
virtual ~daemon ()
 
virtual void operator() ()
 Update each of entries in the collection of hot directories. More...
 

Static Public Member Functions

static void ForEach (HotDirectory::UnaryFunction &Func)
 Iterate over each hot directory. More...
 
static void Start ()
 Start the daemon thread. More...
 
static void Stop ()
 

Static Private Member Functions

static weak_dir_info_type next (weak_dir_info_type DirInfoRef, directory_set_type *&DirectorySet)
 Get the next hot directory to scan. More...
 

Private Attributes

bool finished
 

Detailed Description

Process the collection of hot directories.

This maintains the thread that is responsible for scanning directories that are being updated later than the user specified lower bound time.

Member Typedef Documentation

◆ dir_info_type

typedef HotDirectory::shared_dir_info_type::element_type anonymous_namespace{HotDirectory.cc}::daemon::dir_info_type

◆ shared_dir_info_type

typedef HotDirectory::shared_dir_info_type anonymous_namespace{HotDirectory.cc}::daemon::shared_dir_info_type

Storage type for directory information.

Storage of the directory information allowing for reference counting so as to protect the memory being referenced to stay within scope till all consumers have completed their use of of the data.

◆ weak_dir_info_type

typedef HotDirectory::weak_dir_info_type anonymous_namespace{HotDirectory.cc}::daemon::weak_dir_info_type

Storage type for directory information.

Storage of the directory information in a way that allows for the directory information to be removed from the system.

Constructor & Destructor Documentation

◆ daemon()

anonymous_namespace{HotDirectory.cc}::daemon::daemon ( )

Default constructor.

◆ ~daemon()

anonymous_namespace{HotDirectory.cc}::daemon::~daemon ( )
virtual

Member Function Documentation

◆ ForEach()

void anonymous_namespace{HotDirectory.cc}::daemon::ForEach ( HotDirectory::UnaryFunction &  Func)
static

Iterate over each hot directory.

Parameters
[in]FuncFunction to execute.

◆ next()

static weak_dir_info_type anonymous_namespace{HotDirectory.cc}::daemon::next ( weak_dir_info_type  DirInfoRef,
directory_set_type *&  DirectorySet 
)
staticprivate

Get the next hot directory to scan.

Parameters
[in]DirInfoRef
[in]ExcludeDirs
Returns
The reference that represents

◆ operator()()

virtual void anonymous_namespace{HotDirectory.cc}::daemon::operator() ( )
virtual

Update each of entries in the collection of hot directories.

◆ Start()

static void anonymous_namespace{HotDirectory.cc}::daemon::Start ( )
static

Start the daemon thread.

◆ Stop()

static void anonymous_namespace{HotDirectory.cc}::daemon::Stop ( )
static

Member Data Documentation

◆ finished

bool anonymous_namespace{HotDirectory.cc}::daemon::finished
private

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