-
- Downloads
I have made m_foreground and m_commandLineHasBeenParsed private member variables
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.
Showing
- castor/rh/Server.cpp 4 additions, 2 deletionscastor/rh/Server.cpp
- castor/server/Daemon.cpp 11 additions, 2 deletionscastor/server/Daemon.cpp
- castor/server/Daemon.hpp 21 additions, 11 deletionscastor/server/Daemon.hpp
- castor/server/MultiThreadedDaemon.cpp 5 additions, 4 deletionscastor/server/MultiThreadedDaemon.cpp
- castor/tape/tapebridge/TapeBridgeDaemon.cpp 1 addition, 1 deletioncastor/tape/tapebridge/TapeBridgeDaemon.cpp
- castor/tape/tapeserver/daemon/tapeserverd.cpp 6 additions, 5 deletionscastor/tape/tapeserver/daemon/tapeserverd.cpp
- castor/vdqm/VdqmServer.cpp 15 additions, 12 deletionscastor/vdqm/VdqmServer.cpp
Loading
Please register or sign in to comment