- 12 Jan, 2014 1 commit
-
-
Steven Murray authored
can be used directly as the super-class of single-threaded daemons. There is currently no need for an intermediary SingleThreadedDaemon class.
-
- 10 Jan, 2014 5 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.
-
Eric Cano authored
-
Eric Cano authored
-
- 09 Jan, 2014 3 commits
-
-
Eric Cano authored
-
Eric Cano authored
Adapted the unit test which did not simulate this behavior.
-
Sebastien Ponce authored
-
- 08 Jan, 2014 3 commits
-
-
Eric Cano authored
Removed the detection of Oracle environment for the client only case (Oracle is not required and might not be present).
-
Eric Cano authored
Moved the building of the unit tests out of the client only compilation as it requires server libraries for linking.
-
Eric Cano authored
Bumped up the time waited before cheking that the killed child process is gone from 10ms to 100ms as 10ms was too small in some cases (helgrind + slow virtual machine).
-
- 07 Jan, 2014 9 commits
-
-
Steven Murray authored
user errors. This commit adds the following macro that helps enforce that convention and document it in the code. "#define LOG_USERERR LOG_NOTICE"
-
Steven Murray authored
-
Sebastien Ponce authored
-
Sebastien Ponce authored
-
Sebastien Ponce authored
-
Sebastien Ponce authored
-
Steven Murray authored
-
Steven Murray authored
-
Steven Murray authored
that exceeds the permitted maximum of syslog from the LoggerImplementation::logMsg() method to the LoggerImplementation::reducedSyslog() method. I have done this because the reducedSyslog() method is the one that does the actual work of sending the log message syslog via a send() over a local UNIX socket.
-
- 06 Jan, 2014 6 commits
-
-
Steven Murray authored
not on my development box: castor/log/LoggerImplementation.cpp: In member function 'size_t castor::log::LoggerImplementation::determineMaxMsgLen() const': castor/log/LoggerImplementation.cpp:62: error: 'atoi' was not declared in this scope castor/log/LoggerImplementation.cpp:80: error: 'atol' was not declared in this scope castor/log/LoggerImplementation.cpp: In member function 'std::string castor::log::LoggerImplementation::cleanString(const std::string&, bool)': castor/log/LoggerImplementation.cpp:372: error: 'free' was not declared in this scope
-
Steven Murray authored
-
Steven Murray authored
Dennis used within ithe LoggerImplementation class with C++ std::ostringstream code.
-
Steven Murray authored
The castor::log::Param class simply contains an std::string name and an std::string value. The new templated constructor of the Param class uses std::ostringstream to convert a non-string value to a string one.
-
Steven Murray authored
identified ares of the new logging code that should be removed. I will remove them in a future commit so that we can come back to this one if we decide the removals were too much.
-
Steven Murray authored
-
- 19 Dec, 2013 6 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.
-
Sebastien Ponce authored
-
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.
-
Steven Murray authored
-
Steven Murray authored
the following MACRO magic in h/log.h: #ifdef log #undef log #endif #define log (*logfunc) /* logging function name */ With this commit I remove the above MARCHO magic and simply replace "log" with its expanded form of (*logfunc).
-
- 18 Dec, 2013 7 commits
-
-
Steven Murray authored
-
Giuseppe Lo Presti authored
later on.
-
Giuseppe Lo Presti authored
options to DiskManager/*PendingTimeout to improve usability.
-
Giuseppe Lo Presti authored
affecting draining operations. Completed the fix to take into account disk-to-disk copies failed at the start. To have a full tracking, a src diskcopy ID field has been added to Disk2DiskCopyJob, and populated at start time when available.
-
Sebastien Ponce authored
Fixed tight loop on errors when filesystems of the gcd are badly configured. This could go up to 10KHz !
-
Sebastien Ponce authored
-
Steven Murray authored
idea being you might simply want to log a message with no parameters. /** * Writes a message into the CASTOR logging system. Note that no exception * will ever be thrown in case of failure. Failures will actually be * silently ignored in order to not impact the processing. * * Note that this version of writeMsg() implicitly uses the current time as * the time stamp of the message. * * @param priority the priority of the message as defined by the syslog API. * @param msg the message. */ virtual void writeMsg( const int priority, const std::string &msg) throw() = 0;
-