Commit 93be3acb authored by Steven Murray's avatar Steven Murray
Browse files

The Daemon class is no longer abstract. There is no longer any need because it

can be used directly as the super-class of single-threaded daemons.  There is
currently no need for an intermediary SingleThreadedDaemon class.
parent cce377c1
......@@ -30,11 +30,9 @@ namespace castor {
namespace server {
/**
* This abstract class represents a daemon and contains all of the code common
* to both single and mutli threaded daemons.
* This class contains the code common to all daemon classes.
*
* The code common to both single and mutli-threaded daemons includes
* daemonization and logging.
* The code common to all daemon classes includes daemonization and logging.
*/
class Daemon {
......@@ -48,9 +46,9 @@ public:
Daemon(log::Logger &logger);
/**
* Pure virtual destructor that purposely makes this class abstract.
* Destructor.
*/
virtual ~Daemon() throw() = 0;
virtual ~Daemon() throw();
/**
* Returns this server's name as used by the CASTOR logging system.
......@@ -59,14 +57,6 @@ public:
protected:
/**
* Parses a command line to set the server options.
*
* @param argc The size of the command-line vector.
* @param argv The command-line vector.
*/
virtual void parseCommandLine(int argc, char *argv[]) = 0;
/**
* Sets the runAsStagerSuperuser flag to true.
*
......
......@@ -33,7 +33,7 @@ namespace castor {
namespace server {
/**
* This concrete class represents a multi-threaded daemon.
* This class represents a multi-threaded daemon.
*/
class MultiThreadedDaemon: public Daemon {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment