Commit 8e04bace authored by Steven Murray's avatar Steven Murray
Browse files

The VdqmServer class no inherits from the MultiThreadedDaemon class as opposed

to the BaseDaemon class.
parent 6f81f07b
......@@ -84,6 +84,14 @@ public:
*/
void start() throw (castor::exception::Exception);
/**
* Adds a dedicated UDP thread pool for getting wakeup notifications
* from other Castor daemons. Those notifications are supposed to be
* sent using the Daemon::sendNotification() method.
* @param port the UDP port where to listen
*/
void addNotifierThreadPool(const int port);
protected:
/**
......@@ -94,14 +102,6 @@ protected:
*/
virtual void parseCommandLine(int argc, char *argv[]);
/**
* Adds a dedicated UDP thread pool for getting wakeup notifications
* from other Castor daemons. Those notifications are supposed to be
* sent using the BaseServer::sendNotification method.
* @param port the UDP port where to listen
*/
void addNotifierThreadPool(const int port);
/**
* Shuts down the daemon gracefully.
*/
......
......@@ -54,14 +54,14 @@
//------------------------------------------------------------------------------
castor::vdqm::VdqmServer::VdqmServer(log::Logger &logger)
throw(castor::exception::Exception) :
castor::server::BaseDaemon(logger),
castor::server::MultiThreadedDaemon(logger),
m_requestHandlerThreadNumber(REQUESTHANDLERDEFAULTTHREADNUMBER),
m_RTCPJobSubmitterThreadNumber(RTCPJOBSUBMITTERDEFAULTTHREADNUMBER),
m_schedulerThreadNumber(SCHEDULERDEFAULTTHREADNUMBER) {
// Initializes the DLF logging including the definition of the predefined
// messages. Please not that castor::server::BaseServer::dlfInit can throw a
// castor::exception::Exception.
castor::server::BaseServer::dlfInit(s_dlfMessages);
dlfInit(s_dlfMessages);
}
......
......@@ -25,7 +25,7 @@
#ifndef CASTOR_VDQM_VDQMSERVER_HPP
#define CASTOR_VDQM_VDQMSERVER_HPP 1
#include "castor/server/BaseDaemon.hpp"
#include "castor/server/MultiThreadedDaemon.hpp"
#include "castor/exception/InvalidConfigEntry.hpp"
#include <string>
......@@ -37,7 +37,7 @@ namespace castor {
/**
* The Volume and Drive Queue Manager.
*/
class VdqmServer : public castor::server::BaseDaemon {
class VdqmServer : public castor::server::MultiThreadedDaemon {
public:
/**
......
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