1. 17 Feb, 2014 2 commits
  2. 15 Feb, 2014 1 commit
    • Steven Murray's avatar
      I have made m_foreground and m_commandLineHasBeenParsed private member variables · 1a8d0371
      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.
      1a8d0371
  3. 14 Feb, 2014 2 commits
  4. 10 Jan, 2014 2 commits
  5. 19 Dec, 2013 3 commits
    • Steven Murray's avatar
      First complete but not full tested merge of the new logging API into the · 2d21f53b
      Steven Murray authored
      CASTOR framework via the class castor::server:BaseServer.
      
      Constructive feedback, and better still modifications, are warmly welcomed.
      2d21f53b
    • Steven Murray's avatar
      Renamed the Log class to Logger and likewise the LogImplementation to · b09a3af3
      Steven Murray authored
      LoggerImplementation.  This then allowed me to rename the writeMsg()
      suit of functions to logMsg() which is much more clear.
      b09a3af3
    • Steven Murray's avatar
      The constructor of each C++ CASTOR daemon now takes a reference to Log object · a80c0bf1
      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.
      a80c0bf1
  6. 28 Mar, 2013 1 commit
  7. 08 Oct, 2010 1 commit
  8. 08 Jul, 2010 1 commit
  9. 08 Jan, 2010 1 commit
  10. 30 Oct, 2009 1 commit
  11. 16 Sep, 2009 1 commit
  12. 18 Aug, 2009 1 commit
  13. 14 Aug, 2009 1 commit
  14. 10 Aug, 2009 1 commit
  15. 13 Jul, 2009 1 commit
  16. 19 May, 2009 1 commit
  17. 17 Feb, 2009 1 commit
  18. 22 Aug, 2008 1 commit
    • Steven Murray's avatar
      Corrected the signature of: · 812608f6
      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.
      812608f6
  19. 02 Jun, 2008 2 commits
  20. 01 Feb, 2008 1 commit
  21. 21 Jan, 2008 1 commit
  22. 17 Jan, 2008 1 commit
  23. 07 Dec, 2007 1 commit
  24. 28 Nov, 2007 1 commit
  25. 20 Nov, 2007 1 commit
  26. 16 Nov, 2007 1 commit
    • Dennis Waldron's avatar
      Fixed 'uninitialized bytes' warning in the sendNotification method. Also added... · 314b0bce
      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
      
      314b0bce
  27. 07 Aug, 2007 1 commit
  28. 27 Jul, 2007 1 commit
  29. 25 Jul, 2007 1 commit
  30. 23 Jul, 2007 1 commit
  31. 18 Jul, 2007 1 commit
  32. 09 Jul, 2007 1 commit
  33. 02 Jul, 2007 1 commit
  34. 16 Apr, 2007 1 commit