added getSchedulerTime() function

This commit is contained in:
maroy 2004-12-14 12:46:50 +00:00
parent 8ef10ef1ba
commit cb38affb2a
7 changed files with 199 additions and 19 deletions

View file

@ -22,7 +22,7 @@
Author : $Author: maroy $
Version : $Revision: 1.1 $
Version : $Revision: 1.2 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/include/LiveSupport/SchedulerClient/SchedulerClientInterface.h,v $
------------------------------------------------------------------------------*/
@ -41,8 +41,10 @@
#endif
#include <stdexcept>
#include "boost/date_time/posix_time/posix_time.hpp"
#include "LiveSupport/Core/Ptr.h"
#include "LiveSupport/Core/SessionId.h"
namespace LiveSupport {
namespace SchedulerClient {
@ -62,7 +64,7 @@ using namespace LiveSupport::Core;
* An interface to access the scheduler daemon as a client.
*
* @author $Author: maroy $
* @version $Revision: 1.1 $
* @version $Revision: 1.2 $
*/
class SchedulerClientInterface
{
@ -76,6 +78,18 @@ class SchedulerClientInterface
virtual Ptr<const std::string>::Ref
getVersion(void) throw ()
= 0;
/**
* Return the current time at the scheduler server.
*
* @param sessionId a sessionId previously acquired by successfully
* authenticating with the authentication module
* @return the current time at the scheduler server.
*/
virtual Ptr<const boost::posix_time::ptime>::Ref
getSchedulerTime(Ptr<SessionId>::Ref sessionId)
throw ()
= 0;
};