ldas-tools-diskcacheAPI  2.7.1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
diskCache::MetaCommand::Daemon Class Reference

Daemon mode. More...

#include <MetaCommands.hh>

Inheritance diagram for diskCache::MetaCommand::Daemon:
Inheritance graph
[legend]
Collaboration diagram for diskCache::MetaCommand::Daemon:
Collaboration graph
[legend]

Classes

class  Config_
 

Public Types

typedef LDASTools::AL::SignalHandler::signal_type signal_type
 
typedef LDASTools::AL::SignalHandler::signal_type signal_type
 
typedef LDASTools::AL::SignalHandler::signal_type signal_type
 

Public Member Functions

 Daemon (CommandLineOptions &Args, const ClientServerInterface::ServerInfo &Server, const std::string &DefaultConfigurationFilename=std::string(""), const bool Seedable=true)
 Constructor. More...
 
 ~Daemon ()
 Destructor. More...
 
void ResetOnSignal (bool Value)
 Register signal handler. More...
 
virtual void SignalCallback (signal_type Signal)
 
void operator() ()
 
 Daemon (CommandLineOptions &Args, const ClientServerInterface::ServerInfo &Server, const std::string &DefaultConfigurationFilename=std::string(""), const bool Seedable=true)
 Constructor. More...
 
 ~Daemon ()
 Destructor. More...
 
void ResetOnSignal (bool Value)
 Register signal handler. More...
 
virtual void SignalCallback (signal_type Signal)
 
void operator() ()
 
 Daemon (CommandLineOptions &Args, const ClientServerInterface::ServerInfo &Server, const std::string &DefaultConfigurationFilename=std::string(""), const bool Seedable=true)
 Constructor. More...
 
 ~Daemon ()
 Destructor. More...
 
void ResetOnSignal (bool Value)
 Register signal handler. More...
 
virtual void SignalCallback (signal_type Signal)
 
void operator() ()
 

Static Public Member Functions

static const OptionSetOptions ()
 
static const OptionSetOptions ()
 
static const OptionSetOptions ()
 

Static Public Attributes

static const char * VAR_NAME_CONCURRENCY = "CONCURRENCY"
 
static const char * VAR_NAME_DIRECTORY_TIMEOUT = "DIRECTORY_TIMEOUT"
 
static const char * VAR_NAME_EXCLUDED_PATTERNS = "EXCLUDED_PATTERN"
 
static const char * VAR_NAME_HOT_DIRECTORY_AGE
 
static const char * VAR_NAME_HOT_DIRECTORY_SCAN_INTERVAL
 
static const char * VAR_NAME_RWLOCK_INTERVAL = "RWLOCK_INTERVAL_MS"
 
static const char * VAR_NAME_RWLOCK_TIMEOUT = "RWLOCK_TIMEOUT_MS"
 
static const char * VAR_NAME_STAT_TIMEOUT = "STAT_TIMEOUT"
 

Private Types

enum  {
  OPT_CONCURRENCY , OPT_CONFIGURATION_FILE , OPT_DIRECTORY_TIMEOUT , OPT_EXCLUDED_DIRECTORIES ,
  OPT_EXCLUDED_PATTERNS , OPT_EXTENSIONS , OPT_HOT_DIRECTORY_AGE , OPT_HOT_DIRECTORY_SCAN_INTERVAL ,
  OPT_RWLOCK_INTERVAL , OPT_RWLOCK_TIMEOUT , OPT_SCAN_INTERVAL , OPT_STAT_TIMEOUT ,
  OPT_MOUNT_POINTS , OPT_OUTPUT_ASCII , OPT_OUTPUT_BINARY , OPT_VERSION_ASCII ,
  OPT_VERSION_BINARY
}
 
enum  {
  VAR_CONCURRENCY = 0x00001 , VAR_CONFIGURATION_FILE = 0x00002 , VAR_EXCLUDED_DIRECTORIES = 0x00004 , VAR_EXTENSIONS = 0x00008 ,
  VAR_MOUNT_POINTS = 0x00010 , VAR_OUTPUT_ASCII = 0x00020 , VAR_OUTPUT_BINARY = 0x00040 , VAR_VERSION_ASCII = 0x00080 ,
  VAR_VERSION_BINARY = 0x00100 , VAR_SCAN_INTERVAL = 0x00200 , VAR_STAT_TIMEOUT = 0x00400 , VAR_CACHE_WRITE_DELAY = 0x00800 ,
  VAR_RWLOCK_INTERVAL = 0x01000 , VAR_RWLOCK_TIMEOUT = 0x02000 , VAR_EXCLUDED_PATTERNS = 0x04000 , VAR_HOT_DIRECTORY_AGE = 0x08000 ,
  VAR_HOT_DIRECTORY_SCAN_INTERVAL = 0x10000 , VAR_DIRECTORY_TIMEOUT = 0x20000
}
 
enum  {
  OPT_CONCURRENCY , OPT_CONFIGURATION_FILE , OPT_DIRECTORY_TIMEOUT , OPT_EXCLUDED_DIRECTORIES ,
  OPT_EXCLUDED_PATTERNS , OPT_EXTENSIONS , OPT_HOT_DIRECTORY_AGE , OPT_HOT_DIRECTORY_SCAN_INTERVAL ,
  OPT_RWLOCK_INTERVAL , OPT_RWLOCK_TIMEOUT , OPT_SCAN_INTERVAL , OPT_STAT_TIMEOUT ,
  OPT_MOUNT_POINTS , OPT_OUTPUT_ASCII , OPT_OUTPUT_BINARY , OPT_VERSION_ASCII ,
  OPT_VERSION_BINARY
}
 
enum  {
  VAR_CONCURRENCY = 0x00001 , VAR_CONFIGURATION_FILE = 0x00002 , VAR_EXCLUDED_DIRECTORIES = 0x00004 , VAR_EXTENSIONS = 0x00008 ,
  VAR_MOUNT_POINTS = 0x00010 , VAR_OUTPUT_ASCII = 0x00020 , VAR_OUTPUT_BINARY = 0x00040 , VAR_VERSION_ASCII = 0x00080 ,
  VAR_VERSION_BINARY = 0x00100 , VAR_SCAN_INTERVAL = 0x00200 , VAR_STAT_TIMEOUT = 0x00400 , VAR_CACHE_WRITE_DELAY = 0x00800 ,
  VAR_RWLOCK_INTERVAL = 0x01000 , VAR_RWLOCK_TIMEOUT = 0x02000 , VAR_EXCLUDED_PATTERNS = 0x04000 , VAR_HOT_DIRECTORY_AGE = 0x08000 ,
  VAR_HOT_DIRECTORY_SCAN_INTERVAL = 0x10000 , VAR_DIRECTORY_TIMEOUT = 0x20000
}
 
enum  {
  OPT_CONCURRENCY , OPT_CONFIGURATION_FILE , OPT_DIRECTORY_TIMEOUT , OPT_EXCLUDED_DIRECTORIES ,
  OPT_EXCLUDED_PATTERNS , OPT_EXTENSIONS , OPT_HOT_DIRECTORY_AGE , OPT_HOT_DIRECTORY_SCAN_INTERVAL ,
  OPT_RWLOCK_INTERVAL , OPT_RWLOCK_TIMEOUT , OPT_SCAN_INTERVAL , OPT_STAT_TIMEOUT ,
  OPT_MOUNT_POINTS , OPT_OUTPUT_ASCII , OPT_OUTPUT_BINARY , OPT_VERSION_ASCII ,
  OPT_VERSION_BINARY
}
 
enum  {
  VAR_CONCURRENCY = 0x00001 , VAR_CONFIGURATION_FILE = 0x00002 , VAR_EXCLUDED_DIRECTORIES = 0x00004 , VAR_EXTENSIONS = 0x00008 ,
  VAR_MOUNT_POINTS = 0x00010 , VAR_OUTPUT_ASCII = 0x00020 , VAR_OUTPUT_BINARY = 0x00040 , VAR_VERSION_ASCII = 0x00080 ,
  VAR_VERSION_BINARY = 0x00100 , VAR_SCAN_INTERVAL = 0x00200 , VAR_STAT_TIMEOUT = 0x00400 , VAR_CACHE_WRITE_DELAY = 0x00800 ,
  VAR_RWLOCK_INTERVAL = 0x01000 , VAR_RWLOCK_TIMEOUT = 0x02000 , VAR_EXCLUDED_PATTERNS = 0x04000 , VAR_HOT_DIRECTORY_AGE = 0x08000 ,
  VAR_HOT_DIRECTORY_SCAN_INTERVAL = 0x10000 , VAR_DIRECTORY_TIMEOUT = 0x20000
}
 
typedef diskCache::Cache::SDGTx::file_extension_container_type extensions_type
 
typedef MountPointManagerSingleton::mount_point_name_container_type mount_points_type
 
typedef diskCache::Cache::SDGTx::file_extension_container_type extensions_type
 
typedef MountPointManagerSingleton::mount_point_name_container_type mount_points_type
 
typedef diskCache::Cache::SDGTx::file_extension_container_type extensions_type
 
typedef MountPointManagerSingleton::mount_point_name_container_type mount_points_type
 

Private Member Functions

void action ()
 Handle client side requests. More...
 
void do_client_request ()
 
bool process_cmd (CommandLineOptions &Options)
 
bool read_command (char *Buffer, size_t BufferSize)
 
void cache_write_delay (const std::string &Delay)
 
void push_excluded_directory (const std::string &Directory)
 
void push_excluded_pattern (const std::string &Pattern)
 
void push_extension (const std::string &Extension)
 
void push_mount_point (const std::string &Extension)
 
void reset_excluded_patterns ()
 
void set_concurrency (const std::string &Value)
 
void set_output_ascii (const std::string &Value)
 
void set_output_binary (const std::string &Value)
 
void set_output_binary_version (const std::string &Value)
 
void set_server_port (const std::string &Value)
 
void set_scan_interval (const std::string &Value)
 Establish the scanning interval. More...
 
void set_stat_timeout (const std::string &Value)
 Establish the stat timeout value. More...
 
void setup_variables (int Mask=~0)
 setup the daemon with configuration values More...
 
void reset ()
 Reset the daemon. More...
 
void action ()
 Handle client side requests. More...
 
void do_client_request ()
 
bool process_cmd (CommandLineOptions &Options)
 
bool read_command (char *Buffer, size_t BufferSize)
 
void cache_write_delay (const std::string &Delay)
 
void push_excluded_directory (const std::string &Directory)
 
void push_excluded_pattern (const std::string &Pattern)
 
void push_extension (const std::string &Extension)
 
void push_mount_point (const std::string &Extension)
 
void reset_excluded_patterns ()
 
void set_concurrency (const std::string &Value)
 
void set_output_ascii (const std::string &Value)
 
void set_output_binary (const std::string &Value)
 
void set_output_binary_version (const std::string &Value)
 
void set_server_port (const std::string &Value)
 
void set_scan_interval (const std::string &Value)
 Establish the scanning interval. More...
 
void set_stat_timeout (const std::string &Value)
 Establish the stat timeout value. More...
 
void setup_variables (int Mask=~0)
 setup the daemon with configuration values More...
 
void reset ()
 Reset the daemon. More...
 
void action ()
 Handle client side requests. More...
 
void do_client_request ()
 
bool process_cmd (CommandLineOptions &Options)
 
bool read_command (char *Buffer, size_t BufferSize)
 
void cache_write_delay (const std::string &Delay)
 
void push_excluded_directory (const std::string &Directory)
 
void push_excluded_pattern (const std::string &Pattern)
 
void push_extension (const std::string &Extension)
 
void push_mount_point (const std::string &Extension)
 
void reset_excluded_patterns ()
 
void set_concurrency (const std::string &Value)
 
void set_output_ascii (const std::string &Value)
 
void set_output_binary (const std::string &Value)
 
void set_output_binary_version (const std::string &Value)
 
void set_server_port (const std::string &Value)
 
void set_scan_interval (const std::string &Value)
 Establish the scanning interval. More...
 
void set_stat_timeout (const std::string &Value)
 Establish the stat timeout value. More...
 
void setup_variables (int Mask=~0)
 setup the daemon with configuration values More...
 
void reset ()
 Reset the daemon. More...
 

Static Private Member Functions

static OptionSetinit_options ()
 
static OptionSetinit_options ()
 
static OptionSetinit_options ()
 

Private Attributes

CommandLineOptions m_args
 
INT_4U cache_write_delay_
 
INT_4U m_concurrency
 
extensions_type m_extensions
 
mount_points_type m_mount_points
 
std::string configuration_filename
 
std::list< std::string > excluded_directories
 
std::list< std::string > excluded_patterns
 
std::string output_ascii
 
std::string output_binary
 
scan_interval_type scan_interval
 
stat_timeout_type stat_timeout
 
server_type server
 
version_type version_binary
 
server_responce_type client
 
bool finished
 
bool reset_requested
 
const ClientServerInterface::ServerInfoserver_info
 

Static Private Attributes

static const int HOT_VARIABLES
 
static bool daemon_mode
 
static OptionSetm_options
 

Friends

class Config_
 

Detailed Description

Daemon mode.

Member Typedef Documentation

◆ extensions_type [1/3]

◆ extensions_type [2/3]

◆ extensions_type [3/3]

◆ mount_points_type [1/3]

◆ mount_points_type [2/3]

◆ mount_points_type [3/3]

◆ signal_type [1/3]

typedef LDASTools::AL::SignalHandler::signal_type diskCache::MetaCommand::Daemon::signal_type

◆ signal_type [2/3]

typedef LDASTools::AL::SignalHandler::signal_type diskCache::MetaCommand::Daemon::signal_type

◆ signal_type [3/3]

typedef LDASTools::AL::SignalHandler::signal_type diskCache::MetaCommand::Daemon::signal_type

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
OPT_CONCURRENCY 
OPT_CONFIGURATION_FILE 
OPT_DIRECTORY_TIMEOUT 
OPT_EXCLUDED_DIRECTORIES 
OPT_EXCLUDED_PATTERNS 
OPT_EXTENSIONS 
OPT_HOT_DIRECTORY_AGE 
OPT_HOT_DIRECTORY_SCAN_INTERVAL 
OPT_RWLOCK_INTERVAL 
OPT_RWLOCK_TIMEOUT 
OPT_SCAN_INTERVAL 
OPT_STAT_TIMEOUT 
OPT_MOUNT_POINTS 
OPT_OUTPUT_ASCII 
OPT_OUTPUT_BINARY 
OPT_VERSION_ASCII 
OPT_VERSION_BINARY 

◆ anonymous enum

anonymous enum
private
Enumerator
VAR_CONCURRENCY 
VAR_CONFIGURATION_FILE 
VAR_EXCLUDED_DIRECTORIES 
VAR_EXTENSIONS 
VAR_MOUNT_POINTS 
VAR_OUTPUT_ASCII 
VAR_OUTPUT_BINARY 
VAR_VERSION_ASCII 
VAR_VERSION_BINARY 
VAR_SCAN_INTERVAL 
VAR_STAT_TIMEOUT 
VAR_CACHE_WRITE_DELAY 
VAR_RWLOCK_INTERVAL 

Number of millisecond interval.

VAR_RWLOCK_TIMEOUT 

Number of millisecond timeout.

VAR_EXCLUDED_PATTERNS 

File name patterns to be excluded.

VAR_HOT_DIRECTORY_AGE 

Number of seconds for which a directory is considered hot.

VAR_HOT_DIRECTORY_SCAN_INTERVAL 

Number of seconds between scans of hot directory list.

VAR_DIRECTORY_TIMEOUT 

Number of seconds to wait for directory operations to complete

◆ anonymous enum

anonymous enum
private
Enumerator
OPT_CONCURRENCY 
OPT_CONFIGURATION_FILE 
OPT_DIRECTORY_TIMEOUT 
OPT_EXCLUDED_DIRECTORIES 
OPT_EXCLUDED_PATTERNS 
OPT_EXTENSIONS 
OPT_HOT_DIRECTORY_AGE 
OPT_HOT_DIRECTORY_SCAN_INTERVAL 
OPT_RWLOCK_INTERVAL 
OPT_RWLOCK_TIMEOUT 
OPT_SCAN_INTERVAL 
OPT_STAT_TIMEOUT 
OPT_MOUNT_POINTS 
OPT_OUTPUT_ASCII 
OPT_OUTPUT_BINARY 
OPT_VERSION_ASCII 
OPT_VERSION_BINARY 

◆ anonymous enum

anonymous enum
private
Enumerator
VAR_CONCURRENCY 
VAR_CONFIGURATION_FILE 
VAR_EXCLUDED_DIRECTORIES 
VAR_EXTENSIONS 
VAR_MOUNT_POINTS 
VAR_OUTPUT_ASCII 
VAR_OUTPUT_BINARY 
VAR_VERSION_ASCII 
VAR_VERSION_BINARY 
VAR_SCAN_INTERVAL 
VAR_STAT_TIMEOUT 
VAR_CACHE_WRITE_DELAY 
VAR_RWLOCK_INTERVAL 

Number of millisecond interval.

VAR_RWLOCK_TIMEOUT 

Number of millisecond timeout.

VAR_EXCLUDED_PATTERNS 

File name patterns to be excluded.

VAR_HOT_DIRECTORY_AGE 

Number of seconds for which a directory is considered hot.

VAR_HOT_DIRECTORY_SCAN_INTERVAL 

Number of seconds between scans of hot directory list.

VAR_DIRECTORY_TIMEOUT 

Number of seconds to wait for directory operations to complete

◆ anonymous enum

anonymous enum
private
Enumerator
OPT_CONCURRENCY 
OPT_CONFIGURATION_FILE 
OPT_DIRECTORY_TIMEOUT 
OPT_EXCLUDED_DIRECTORIES 
OPT_EXCLUDED_PATTERNS 
OPT_EXTENSIONS 
OPT_HOT_DIRECTORY_AGE 
OPT_HOT_DIRECTORY_SCAN_INTERVAL 
OPT_RWLOCK_INTERVAL 
OPT_RWLOCK_TIMEOUT 
OPT_SCAN_INTERVAL 
OPT_STAT_TIMEOUT 
OPT_MOUNT_POINTS 
OPT_OUTPUT_ASCII 
OPT_OUTPUT_BINARY 
OPT_VERSION_ASCII 
OPT_VERSION_BINARY 

◆ anonymous enum

anonymous enum
private
Enumerator
VAR_CONCURRENCY 
VAR_CONFIGURATION_FILE 
VAR_EXCLUDED_DIRECTORIES 
VAR_EXTENSIONS 
VAR_MOUNT_POINTS 
VAR_OUTPUT_ASCII 
VAR_OUTPUT_BINARY 
VAR_VERSION_ASCII 
VAR_VERSION_BINARY 
VAR_SCAN_INTERVAL 
VAR_STAT_TIMEOUT 
VAR_CACHE_WRITE_DELAY 
VAR_RWLOCK_INTERVAL 

Number of millisecond interval.

VAR_RWLOCK_TIMEOUT 

Number of millisecond timeout.

VAR_EXCLUDED_PATTERNS 

File name patterns to be excluded.

VAR_HOT_DIRECTORY_AGE 

Number of seconds for which a directory is considered hot.

VAR_HOT_DIRECTORY_SCAN_INTERVAL 

Number of seconds between scans of hot directory list.

VAR_DIRECTORY_TIMEOUT 

Number of seconds to wait for directory operations to complete

Constructor & Destructor Documentation

◆ Daemon() [1/3]

diskCache::MetaCommand::Daemon::Daemon ( CommandLineOptions Args,
const ClientServerInterface::ServerInfo Server,
const std::string &  DefaultConfigurationFilename = std::string( "" ),
const bool  Seedable = true 
)

Constructor.

Contruct a new instance of Daemon.

Parameters
[in]ArgsCommand line options to configure command.
[in]ServerInformation describing the server connection.
[in]DefaultConfigurationFilenameSpecify the default configuration filename.

◆ ~Daemon() [1/3]

diskCache::MetaCommand::Daemon::~Daemon ( )

Destructor.

Return resource back to the system.

◆ Daemon() [2/3]

diskCache::MetaCommand::Daemon::Daemon ( CommandLineOptions Args,
const ClientServerInterface::ServerInfo Server,
const std::string &  DefaultConfigurationFilename = std::string(""),
const bool  Seedable = true 
)

Constructor.

Parameters
[in]ArgsCommand line options to configure command.
[in]ServerInformation describing the server connection.
[in]DefaultConfigurationFilenameSpecify the default configuration filename.

◆ ~Daemon() [2/3]

diskCache::MetaCommand::Daemon::~Daemon ( )

Destructor.

◆ Daemon() [3/3]

diskCache::MetaCommand::Daemon::Daemon ( CommandLineOptions Args,
const ClientServerInterface::ServerInfo Server,
const std::string &  DefaultConfigurationFilename = std::string(""),
const bool  Seedable = true 
)

Constructor.

Parameters
[in]ArgsCommand line options to configure command.
[in]ServerInformation describing the server connection.
[in]DefaultConfigurationFilenameSpecify the default configuration filename.

◆ ~Daemon() [3/3]

diskCache::MetaCommand::Daemon::~Daemon ( )

Destructor.

Member Function Documentation

◆ action() [1/3]

void diskCache::MetaCommand::Daemon::action ( )
private

Handle client side requests.

◆ action() [2/3]

void diskCache::MetaCommand::Daemon::action ( )
private

Handle client side requests.

◆ action() [3/3]

void diskCache::MetaCommand::Daemon::action ( )
private

Handle client side requests.

◆ cache_write_delay() [1/3]

void diskCache::MetaCommand::Daemon::cache_write_delay ( const std::string &  Delay)
inlineprivate

◆ cache_write_delay() [2/3]

void diskCache::MetaCommand::Daemon::cache_write_delay ( const std::string &  Delay)
private

◆ cache_write_delay() [3/3]

void diskCache::MetaCommand::Daemon::cache_write_delay ( const std::string &  Delay)
private

◆ do_client_request() [1/3]

void diskCache::MetaCommand::Daemon::do_client_request ( )
private

◆ do_client_request() [2/3]

void diskCache::MetaCommand::Daemon::do_client_request ( )
private

◆ do_client_request() [3/3]

void diskCache::MetaCommand::Daemon::do_client_request ( )
private

◆ init_options() [1/3]

OptionSet & diskCache::MetaCommand::Daemon::init_options ( )
staticprivate

◆ init_options() [2/3]

static OptionSet& diskCache::MetaCommand::Daemon::init_options ( )
staticprivate

◆ init_options() [3/3]

static OptionSet& diskCache::MetaCommand::Daemon::init_options ( )
staticprivate

◆ operator()() [1/3]

void diskCache::MetaCommand::Daemon::operator() ( )

◆ operator()() [2/3]

void diskCache::MetaCommand::Daemon::operator() ( )

◆ operator()() [3/3]

void diskCache::MetaCommand::Daemon::operator() ( )

◆ Options() [1/3]

const OptionSet & diskCache::MetaCommand::Daemon::Options ( )
static

◆ Options() [2/3]

static const OptionSet& diskCache::MetaCommand::Daemon::Options ( )
static

◆ Options() [3/3]

static const OptionSet& diskCache::MetaCommand::Daemon::Options ( )
static

◆ process_cmd() [1/3]

bool diskCache::MetaCommand::Daemon::process_cmd ( CommandLineOptions Options)
private

◆ process_cmd() [2/3]

bool diskCache::MetaCommand::Daemon::process_cmd ( CommandLineOptions Options)
private

◆ process_cmd() [3/3]

bool diskCache::MetaCommand::Daemon::process_cmd ( CommandLineOptions Options)
private

◆ push_excluded_directory() [1/3]

void diskCache::MetaCommand::Daemon::push_excluded_directory ( const std::string &  Directory)
inlineprivate

◆ push_excluded_directory() [2/3]

void diskCache::MetaCommand::Daemon::push_excluded_directory ( const std::string &  Directory)
private

◆ push_excluded_directory() [3/3]

void diskCache::MetaCommand::Daemon::push_excluded_directory ( const std::string &  Directory)
private

◆ push_excluded_pattern() [1/3]

void diskCache::MetaCommand::Daemon::push_excluded_pattern ( const std::string &  Pattern)
inlineprivate

◆ push_excluded_pattern() [2/3]

void diskCache::MetaCommand::Daemon::push_excluded_pattern ( const std::string &  Pattern)
private

◆ push_excluded_pattern() [3/3]

void diskCache::MetaCommand::Daemon::push_excluded_pattern ( const std::string &  Pattern)
private

◆ push_extension() [1/3]

void diskCache::MetaCommand::Daemon::push_extension ( const std::string &  Extension)
inlineprivate

◆ push_extension() [2/3]

void diskCache::MetaCommand::Daemon::push_extension ( const std::string &  Extension)
private

◆ push_extension() [3/3]

void diskCache::MetaCommand::Daemon::push_extension ( const std::string &  Extension)
private

◆ push_mount_point() [1/3]

void diskCache::MetaCommand::Daemon::push_mount_point ( const std::string &  Extension)
inlineprivate

◆ push_mount_point() [2/3]

void diskCache::MetaCommand::Daemon::push_mount_point ( const std::string &  Extension)
private

◆ push_mount_point() [3/3]

void diskCache::MetaCommand::Daemon::push_mount_point ( const std::string &  Extension)
private

◆ read_command() [1/3]

bool diskCache::MetaCommand::Daemon::read_command ( char *  Buffer,
size_t  BufferSize 
)
private

◆ read_command() [2/3]

bool diskCache::MetaCommand::Daemon::read_command ( char *  Buffer,
size_t  BufferSize 
)
private

◆ read_command() [3/3]

bool diskCache::MetaCommand::Daemon::read_command ( char *  Buffer,
size_t  BufferSize 
)
private

◆ reset() [1/3]

void diskCache::MetaCommand::Daemon::reset ( )
private

Reset the daemon.

Resetting of the daemon process forces the rereading of vital configuration information without having to restart the process.

◆ reset() [2/3]

void diskCache::MetaCommand::Daemon::reset ( )
private

Reset the daemon.

◆ reset() [3/3]

void diskCache::MetaCommand::Daemon::reset ( )
private

Reset the daemon.

◆ reset_excluded_patterns() [1/3]

void diskCache::MetaCommand::Daemon::reset_excluded_patterns ( )
inlineprivate

◆ reset_excluded_patterns() [2/3]

void diskCache::MetaCommand::Daemon::reset_excluded_patterns ( )
private

◆ reset_excluded_patterns() [3/3]

void diskCache::MetaCommand::Daemon::reset_excluded_patterns ( )
private

◆ ResetOnSignal() [1/3]

void diskCache::MetaCommand::Daemon::ResetOnSignal ( bool  Value)

Register signal handler.

◆ ResetOnSignal() [2/3]

void diskCache::MetaCommand::Daemon::ResetOnSignal ( bool  Value)

Register signal handler.

◆ ResetOnSignal() [3/3]

void diskCache::MetaCommand::Daemon::ResetOnSignal ( bool  Value)

Register signal handler.

◆ set_concurrency() [1/3]

void diskCache::MetaCommand::Daemon::set_concurrency ( const std::string &  Value)
inlineprivate

◆ set_concurrency() [2/3]

void diskCache::MetaCommand::Daemon::set_concurrency ( const std::string &  Value)
private

◆ set_concurrency() [3/3]

void diskCache::MetaCommand::Daemon::set_concurrency ( const std::string &  Value)
private

◆ set_output_ascii() [1/3]

void diskCache::MetaCommand::Daemon::set_output_ascii ( const std::string &  Value)
inlineprivate

◆ set_output_ascii() [2/3]

void diskCache::MetaCommand::Daemon::set_output_ascii ( const std::string &  Value)
private

◆ set_output_ascii() [3/3]

void diskCache::MetaCommand::Daemon::set_output_ascii ( const std::string &  Value)
private

◆ set_output_binary() [1/3]

void diskCache::MetaCommand::Daemon::set_output_binary ( const std::string &  Value)
inlineprivate

◆ set_output_binary() [2/3]

void diskCache::MetaCommand::Daemon::set_output_binary ( const std::string &  Value)
private

◆ set_output_binary() [3/3]

void diskCache::MetaCommand::Daemon::set_output_binary ( const std::string &  Value)
private

◆ set_output_binary_version() [1/3]

void diskCache::MetaCommand::Daemon::set_output_binary_version ( const std::string &  Value)
inlineprivate

◆ set_output_binary_version() [2/3]

void diskCache::MetaCommand::Daemon::set_output_binary_version ( const std::string &  Value)
private

◆ set_output_binary_version() [3/3]

void diskCache::MetaCommand::Daemon::set_output_binary_version ( const std::string &  Value)
private

◆ set_scan_interval() [1/3]

void diskCache::MetaCommand::Daemon::set_scan_interval ( const std::string &  Value)
inlineprivate

Establish the scanning interval.

Parameters
[in]ValueThe string representation of the number of milliseconds to pause between scans of the mount point lists.

◆ set_scan_interval() [2/3]

void diskCache::MetaCommand::Daemon::set_scan_interval ( const std::string &  Value)
private

Establish the scanning interval.

Parameters
[in]ValueThe string representation of the number of milliseconds to pause between scans of the mount point lists.

◆ set_scan_interval() [3/3]

void diskCache::MetaCommand::Daemon::set_scan_interval ( const std::string &  Value)
private

Establish the scanning interval.

Parameters
[in]ValueThe string representation of the number of milliseconds to pause between scans of the mount point lists.

◆ set_server_port() [1/3]

void diskCache::MetaCommand::Daemon::set_server_port ( const std::string &  Value)
inlineprivate

◆ set_server_port() [2/3]

void diskCache::MetaCommand::Daemon::set_server_port ( const std::string &  Value)
private

◆ set_server_port() [3/3]

void diskCache::MetaCommand::Daemon::set_server_port ( const std::string &  Value)
private

◆ set_stat_timeout() [1/3]

void diskCache::MetaCommand::Daemon::set_stat_timeout ( const std::string &  Value)
inlineprivate

Establish the stat timeout value.

Parameters
[in]ValueThe string representation of the number of seconds to wait for the system stat call to return.

◆ set_stat_timeout() [2/3]

void diskCache::MetaCommand::Daemon::set_stat_timeout ( const std::string &  Value)
private

Establish the stat timeout value.

Parameters
[in]ValueThe string representation of the number of seconds to wait for the system stat call to return.

◆ set_stat_timeout() [3/3]

void diskCache::MetaCommand::Daemon::set_stat_timeout ( const std::string &  Value)
private

Establish the stat timeout value.

Parameters
[in]ValueThe string representation of the number of seconds to wait for the system stat call to return.

◆ setup_variables() [1/3]

void diskCache::MetaCommand::Daemon::setup_variables ( int  Mask = ~0)
private

setup the daemon with configuration values

Parameters
[in]MaskRestrict the variable set using mask composed of ORing together the various VAR_ types.

Setup the variables according to the requested configuration. Some of the variables can be reset by modifying the configuration file and then signaling the daemon process.

◆ setup_variables() [2/3]

void diskCache::MetaCommand::Daemon::setup_variables ( int  Mask = ~0)
private

setup the daemon with configuration values

Parameters
[in]MaskRestrict the variable set using mask composed of ORing together the various VAR_ types.

◆ setup_variables() [3/3]

void diskCache::MetaCommand::Daemon::setup_variables ( int  Mask = ~0)
private

setup the daemon with configuration values

Parameters
[in]MaskRestrict the variable set using mask composed of ORing together the various VAR_ types.

◆ SignalCallback() [1/3]

void diskCache::MetaCommand::Daemon::SignalCallback ( signal_type  Signal)
virtual

◆ SignalCallback() [2/3]

virtual void diskCache::MetaCommand::Daemon::SignalCallback ( signal_type  Signal)
virtual

◆ SignalCallback() [3/3]

virtual void diskCache::MetaCommand::Daemon::SignalCallback ( signal_type  Signal)
virtual

Friends And Related Function Documentation

◆ Config_

Config_
friend

Member Data Documentation

◆ cache_write_delay_

INT_4U diskCache::MetaCommand::Daemon::cache_write_delay_
private

◆ client

server_responce_type diskCache::MetaCommand::Daemon::client
private
Todo:
This needs to be made thread safe by having a separate one for each thread.
Todo:
This needs to be made thread safe by having a separate one for each thread.
Todo:
This needs to be made thread safe by having a separate one for each thread.

◆ configuration_filename

std::string diskCache::MetaCommand::Daemon::configuration_filename
private

◆ daemon_mode

static bool diskCache::MetaCommand::Daemon::daemon_mode
staticprivate

◆ excluded_directories

std::list< std::string > diskCache::MetaCommand::Daemon::excluded_directories
private

◆ excluded_patterns

std::list< std::string > diskCache::MetaCommand::Daemon::excluded_patterns
private

◆ finished

bool diskCache::MetaCommand::Daemon::finished
private

◆ HOT_VARIABLES

static const int diskCache::MetaCommand::Daemon::HOT_VARIABLES
staticprivate
Initial value:
@ VAR_HOT_DIRECTORY_SCAN_INTERVAL
Number of seconds between scans of hot directory list.
Definition: MetaCommands.hh:494
@ VAR_HOT_DIRECTORY_AGE
Number of seconds for which a directory is considered hot.
Definition: MetaCommands.hh:492
@ VAR_EXCLUDED_PATTERNS
File name patterns to be excluded.
Definition: MetaCommands.hh:490
@ VAR_EXCLUDED_DIRECTORIES
Definition: MetaCommands.hh:475
@ VAR_SCAN_INTERVAL
Definition: MetaCommands.hh:482
@ VAR_MOUNT_POINTS
Definition: MetaCommands.hh:477
@ VAR_RWLOCK_TIMEOUT
Number of millisecond timeout.
Definition: MetaCommands.hh:488
@ VAR_CONCURRENCY
Definition: MetaCommands.hh:473
@ VAR_EXTENSIONS
Definition: MetaCommands.hh:476
@ VAR_STAT_TIMEOUT
Definition: MetaCommands.hh:483
@ VAR_RWLOCK_INTERVAL
Number of millisecond interval.
Definition: MetaCommands.hh:486
@ VAR_CACHE_WRITE_DELAY
Definition: MetaCommands.hh:484

◆ m_args

CommandLineOptions diskCache::MetaCommand::Daemon::m_args
private

◆ m_concurrency

INT_4U diskCache::MetaCommand::Daemon::m_concurrency
private

◆ m_extensions

extensions_type diskCache::MetaCommand::Daemon::m_extensions
private

◆ m_mount_points

mount_points_type diskCache::MetaCommand::Daemon::m_mount_points
private

◆ m_options

static OptionSet & diskCache::MetaCommand::Daemon::m_options
staticprivate

◆ output_ascii

std::string diskCache::MetaCommand::Daemon::output_ascii
private

◆ output_binary

std::string diskCache::MetaCommand::Daemon::output_binary
private

◆ reset_requested

bool diskCache::MetaCommand::Daemon::reset_requested
private

◆ scan_interval

scan_interval_type diskCache::MetaCommand::Daemon::scan_interval
private

◆ server

server_type diskCache::MetaCommand::Daemon::server
private

◆ server_info

const ClientServerInterface::ServerInfo & diskCache::MetaCommand::Daemon::server_info
private

◆ stat_timeout

stat_timeout_type diskCache::MetaCommand::Daemon::stat_timeout
private

◆ VAR_NAME_CONCURRENCY

static const char * diskCache::MetaCommand::Daemon::VAR_NAME_CONCURRENCY = "CONCURRENCY"
static

◆ VAR_NAME_DIRECTORY_TIMEOUT

static const char * diskCache::MetaCommand::Daemon::VAR_NAME_DIRECTORY_TIMEOUT = "DIRECTORY_TIMEOUT"
static

◆ VAR_NAME_EXCLUDED_PATTERNS

static const char * diskCache::MetaCommand::Daemon::VAR_NAME_EXCLUDED_PATTERNS = "EXCLUDED_PATTERN"
static

◆ VAR_NAME_HOT_DIRECTORY_AGE

static const char * diskCache::MetaCommand::Daemon::VAR_NAME_HOT_DIRECTORY_AGE
static
Initial value:
=
"HOT_DIRECTORY_AGE_SEC"

◆ VAR_NAME_HOT_DIRECTORY_SCAN_INTERVAL

static const char * diskCache::MetaCommand::Daemon::VAR_NAME_HOT_DIRECTORY_SCAN_INTERVAL
static
Initial value:
=
"HOT_DIRECTORY_SCAN_INTERVAL_SEC"

◆ VAR_NAME_RWLOCK_INTERVAL

static const char * diskCache::MetaCommand::Daemon::VAR_NAME_RWLOCK_INTERVAL = "RWLOCK_INTERVAL_MS"
static

◆ VAR_NAME_RWLOCK_TIMEOUT

static const char * diskCache::MetaCommand::Daemon::VAR_NAME_RWLOCK_TIMEOUT = "RWLOCK_TIMEOUT_MS"
static

◆ VAR_NAME_STAT_TIMEOUT

static const char * diskCache::MetaCommand::Daemon::VAR_NAME_STAT_TIMEOUT = "STAT_TIMEOUT"
static

◆ version_binary

version_type diskCache::MetaCommand::Daemon::version_binary
private

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