|
ldas-tools-diskcacheAPI
2.7.2
|
#include <MetaCommands.hh>


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 OptionSet & | Options () |
| static const OptionSet & | Options () |
| static const OptionSet & | Options () |
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 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 OptionSet & | init_options () |
| static OptionSet & | init_options () |
| static OptionSet & | init_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::ServerInfo & | server_info |
Static Private Attributes | |
| static const int | HOT_VARIABLES |
| static bool | daemon_mode |
| static OptionSet & | m_options |
Friends | |
| class | Config_ |
Daemon mode.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| typedef LDASTools::AL::SignalHandler::signal_type diskCache::MetaCommand::Daemon::signal_type |
| typedef LDASTools::AL::SignalHandler::signal_type diskCache::MetaCommand::Daemon::signal_type |
| typedef LDASTools::AL::SignalHandler::signal_type diskCache::MetaCommand::Daemon::signal_type |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| 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.
| [in] | Args | Command line options to configure command. |
| [in] | Server | Information describing the server connection. |
| [in] | DefaultConfigurationFilename | Specify the default configuration filename. |
| diskCache::MetaCommand::Daemon::~Daemon | ( | ) |
Destructor.
Return resource back to the system.
| diskCache::MetaCommand::Daemon::Daemon | ( | CommandLineOptions & | Args, |
| const ClientServerInterface::ServerInfo & | Server, | ||
| const std::string & | DefaultConfigurationFilename = std::string(""), |
||
| const bool | Seedable = true |
||
| ) |
Constructor.
| [in] | Args | Command line options to configure command. |
| [in] | Server | Information describing the server connection. |
| [in] | DefaultConfigurationFilename | Specify the default configuration filename. |
| diskCache::MetaCommand::Daemon::~Daemon | ( | ) |
Destructor.
| diskCache::MetaCommand::Daemon::Daemon | ( | CommandLineOptions & | Args, |
| const ClientServerInterface::ServerInfo & | Server, | ||
| const std::string & | DefaultConfigurationFilename = std::string(""), |
||
| const bool | Seedable = true |
||
| ) |
Constructor.
| [in] | Args | Command line options to configure command. |
| [in] | Server | Information describing the server connection. |
| [in] | DefaultConfigurationFilename | Specify the default configuration filename. |
| diskCache::MetaCommand::Daemon::~Daemon | ( | ) |
Destructor.
|
private |
Handle client side requests.
|
private |
Handle client side requests.
|
private |
Handle client side requests.
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
| void diskCache::MetaCommand::Daemon::operator() | ( | ) |
| void diskCache::MetaCommand::Daemon::operator() | ( | ) |
| void diskCache::MetaCommand::Daemon::operator() | ( | ) |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
Reset the daemon.
|
private |
Reset the daemon.
|
private |
Reset the daemon.
Resetting of the daemon process forces the rereading of vital configuration information without having to restart the process.
|
private |
|
private |
|
inlineprivate |
| void diskCache::MetaCommand::Daemon::ResetOnSignal | ( | bool | Value | ) |
Register signal handler.
| void diskCache::MetaCommand::Daemon::ResetOnSignal | ( | bool | Value | ) |
Register signal handler.
| void diskCache::MetaCommand::Daemon::ResetOnSignal | ( | bool | Value | ) |
Register signal handler.
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
private |
Establish the scanning interval.
| [in] | Value | The string representation of the number of milliseconds to pause between scans of the mount point lists. |
|
private |
Establish the scanning interval.
| [in] | Value | The string representation of the number of milliseconds to pause between scans of the mount point lists. |
|
inlineprivate |
Establish the scanning interval.
| [in] | Value | The string representation of the number of milliseconds to pause between scans of the mount point lists. |
|
private |
|
inlineprivate |
|
private |
|
private |
Establish the stat timeout value.
| [in] | Value | The string representation of the number of seconds to wait for the system stat call to return. |
|
private |
Establish the stat timeout value.
| [in] | Value | The string representation of the number of seconds to wait for the system stat call to return. |
|
inlineprivate |
Establish the stat timeout value.
| [in] | Value | The string representation of the number of seconds to wait for the system stat call to return. |
|
private |
setup the daemon with configuration values
| [in] | Mask | Restrict the variable set using mask composed of ORing together the various VAR_ types. |
|
private |
setup the daemon with configuration values
| [in] | Mask | Restrict the variable set using mask composed of ORing together the various VAR_ types. |
|
private |
setup the daemon with configuration values
| [in] | Mask | Restrict 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.
|
virtual |
|
virtual |
|
virtual |
|
friend |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
private |
1.8.13