ldas-tools-diskcacheAPI 2.7.7
|
#include <MetaCommands.hh>
Classes | |
class | DaemonConfig_ |
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... | |
int | ServerPort () const |
void | ResetOnSignal (bool Value) |
Register signal handler. More... | |
virtual void | SignalCallback (signal_type Signal) |
void | operator() () |
Variables & | GetVariables () |
Daemon (CommandLineOptions &Args, const ClientServerInterface::ServerInfo &Server, const std::string &DefaultConfigurationFilename=std::string(""), const bool Seedable=true) | |
Constructor. More... | |
~Daemon () | |
Destructor. More... | |
int | ServerPort () const |
void | ResetOnSignal (bool Value) |
Register signal handler. More... | |
virtual void | SignalCallback (signal_type Signal) |
void | operator() () |
Variables & | GetVariables () |
Daemon (CommandLineOptions &Args, const ClientServerInterface::ServerInfo &Server, const std::string &DefaultConfigurationFilename=std::string(""), const bool Seedable=true) | |
Constructor. More... | |
~Daemon () | |
Destructor. More... | |
int | ServerPort () const |
void | ResetOnSignal (bool Value) |
Register signal handler. More... | |
virtual void | SignalCallback (signal_type Signal) |
void | operator() () |
Variables & | GetVariables () |
Static Public Member Functions | |
static const OptionSet & | Options () |
static const OptionSet & | Options () |
static const OptionSet & | Options () |
Static Public Attributes | |
static const char * | VAR_NAME_EXCLUDED_PATTERNS = "EXCLUDED_PATTERN" |
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 | 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 | 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 | 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 |
Variables | variables |
std::string | configuration_filename |
stat_timeout_type | stat_timeout |
server_type | server |
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 |
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 |
|
inline |
|
inline |
|
inline |
|
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 |
|
private |
|
private |
|
private |
Reset the daemon.
Resetting of the daemon process forces the rereading of vital configuration information without having to restart the process.
|
private |
Reset the daemon.
|
private |
Reset the daemon.
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.
int diskCache::MetaCommand::Daemon::ServerPort | ( | ) | const |
int diskCache::MetaCommand::Daemon::ServerPort | ( | ) | const |
int diskCache::MetaCommand::Daemon::ServerPort | ( | ) | const |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
private |
|
private |
|
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 |
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 |
|
private |
|
private |
|
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 |
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. |
|
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.
|
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. |
|
virtual |
|
virtual |
|
virtual |
|
private |
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
static |
|
private |