- 17 Feb, 2014 2 commits
-
-
Steven Murray authored
that is carried out when the method checks that the child has successfully detached from the parent by making sure the return value of getppid() is 1. I have removed the sanity check because it is time dependent. If the child calls getppid() before the parent has enough time to exit then the child gets the process ID of its true parent as opposed to the process ID of the init process.
-
Steven Murray authored
castor/server/Daemon.cpp and castor/tape/tapeserver/daemon/tapeserverd.cpp.
-
- 15 Feb, 2014 1 commit
-
-
Steven Murray authored
of the following class: castor::server::Daemon Subclasses now have a more explicit API for parsing the command-line. They can delegate the task to the above Daemon class or they can implement there own parsing logic. In the latter case the subclass must call the following Daemon method: castor::server::Daemon::setCommandLineParsed(bool foreground); This method makes it clear what the Daemon class needs to know from a parse of the command-line. If a client subclass calls the getForeground() method of the Daemon class before callng setCommandLineParsed() then a CommandLineNotParsed exception shall be raised.
-
- 14 Feb, 2014 2 commits
-
-
Steven Murray authored
objects representing standard in and standard error. By being able to provide dummy output stream objects, this modification allows C++ daemon objects to be instantiated in unit tests without the worry of them writing to the real standard in and standard error streams.
-
Steven Murray authored
castor::server::Daemon
-
- 10 Jan, 2014 2 commits
-
-
Steven Murray authored
SLC5 so I unfortunatley have to lean on TeamCity for this.
-
Steven Murray authored
tape bridge and vdqm daemons will eventaully inherit from one of these new classes. This commit is a step towards this goal. Please note that this commit modifies the castor::rh::Server and castor::server::BaseDaemon classes in not so desirable ways. The castor::rh::Server has been modified so that it does not use the MetricCollector class. The castor::server::BaseDaemon class has been modified so that it does not use either the UDPListenerThreadPool or the MetricCollector class. I will put back this code in another commit.
-
- 19 Dec, 2013 3 commits
-
-
Steven Murray authored
CASTOR framework via the class castor::server:BaseServer. Constructive feedback, and better still modifications, are warmly welcomed.
-
Steven Murray authored
LoggerImplementation. This then allowed me to rename the writeMsg() suit of functions to logMsg() which is much more clear.
-
Steven Murray authored
as a parameter. The functions that create the CASTOR daemon objects all create a castor::log::LogImplementation object and pass it to the constructor of their corresponding CASTOR daemon object. When unit testting, one now has the posibility to develop a dummy Log object that implements the interface with dummy or mock routines so that the unit tests can run without having to write to syslog or rsyslog which is a bit heavy for unit tests. The castor::log::LogImplementation basically contains the logging code centered around syslog that was developed by Sebastien and Dennis. Please note that I now have to add one or more log functions to the base class of the CASTOR daemon objects, namely castor::server::BaseServer.
-
- 28 Mar, 2013 1 commit
-
-
Giuseppe Lo Presti authored
-
- 08 Oct, 2010 1 commit
-
-
Sebastien Ponce authored
Conflicts: castor/tape/mighunter/StreamThread.cpp
-
- 08 Jul, 2010 1 commit
-
-
Sebastien Ponce authored
-
- 08 Jan, 2010 1 commit
-
-
Giuseppe Lo Presti authored
+ some small improvements. Highlights: - BaseThreadPool exposes internal metrics, which are collected by DynamicThreadPools and SignalThreadPools - Internal monitoring can be enabled by command line for any daemon
-
- 30 Oct, 2009 1 commit
-
-
Giuseppe Lo Presti authored
-
- 16 Sep, 2009 1 commit
-
-
Giuseppe Lo Presti authored
-
- 18 Aug, 2009 1 commit
-
-
Dennis Waldron authored
-
- 14 Aug, 2009 1 commit
-
-
Giuseppe Lo Presti authored
a daemon may lead to bogus insertions in the list of thread pools, which then provoke segmentation faults once the threads are started.
-
- 10 Aug, 2009 1 commit
-
-
Giuseppe Lo Presti authored
-
- 13 Jul, 2009 1 commit
-
-
Dennis Waldron authored
Updated to support removal of message service related code. Now all calls to clog() have been replaced with calls to dlf_writep()
-
- 19 May, 2009 1 commit
-
-
Giuseppe Lo Presti authored
so it is useless to free it only on the calling thread and it has the bad side effect of leaving dangling pointers (see the DbCnvSvc destructor).
-
- 17 Feb, 2009 1 commit
-
-
Giuseppe Lo Presti authored
-
- 22 Aug, 2008 1 commit
-
-
Steven Murray authored
castor::server::BaseServer::dlfInit(castor::dlf::Message messages[]) by adding: throw (castor::exception::Exception) The implementation of this method calls the following method without a try and catch clause around it: castor::dlf::dlf_init(const char* facilityName, Message messages[]) This method can throw a castor::exception::Exception.
-
- 02 Jun, 2008 2 commits
-
-
Dennis Waldron authored
Added initialization of the m_runAsStagerSuperuser boolean attribute to false. Prior to this all daemons were running accidentally under stage:st. As a consequence the jobManager was no longer able to submit jobs into LSF
-
Giuseppe Lo Presti authored
-
- 01 Feb, 2008 1 commit
-
-
Giuseppe Lo Presti authored
-
- 21 Jan, 2008 1 commit
-
-
Dennis Waldron authored
-
- 17 Jan, 2008 1 commit
-
-
Dennis Waldron authored
-
- 07 Dec, 2007 1 commit
-
-
Sebastien Ponce authored
-
- 28 Nov, 2007 1 commit
-
-
Giuseppe Lo Presti authored
-
- 20 Nov, 2007 1 commit
-
-
Giuseppe Lo Presti authored
UDPListenerThreadPool dedicated to dispatch UDP notifications.
-
- 16 Nov, 2007 1 commit
-
-
Dennis Waldron authored
Fixed 'uninitialized bytes' warning in the sendNotification method. Also added reset of the Cgetopt interface before parsing command line options. This allows daemons to process command line options without the need to override the parseCommandLine method i.e. a daemon can process its application specific options and the BaseServer can deal with the defaults
-
- 07 Aug, 2007 1 commit
-
-
Dennis Waldron authored
-
- 27 Jul, 2007 1 commit
-
-
Dennis Waldron authored
-
- 25 Jul, 2007 1 commit
-
-
Giuseppe Lo Presti authored
-
- 23 Jul, 2007 1 commit
-
-
Dennis Waldron authored
-
- 18 Jul, 2007 1 commit
-
-
Dennis Waldron authored
-
- 09 Jul, 2007 1 commit
-
-
Giuseppe Lo Presti authored
-
- 02 Jul, 2007 1 commit
-
-
Dennis Waldron authored
-
- 16 Apr, 2007 1 commit
-
-
Sebastien Ponce authored
-