changed the call to GetSchedulerTime to call with no parameters
This commit is contained in:
parent
633b1f2bed
commit
d554a793d1
4 changed files with 10 additions and 15 deletions
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: maroy $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.2 $
|
Version : $Revision: 1.3 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/include/LiveSupport/SchedulerClient/SchedulerClientInterface.h,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/include/LiveSupport/SchedulerClient/SchedulerClientInterface.h,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -64,7 +64,7 @@ using namespace LiveSupport::Core;
|
||||||
* An interface to access the scheduler daemon as a client.
|
* An interface to access the scheduler daemon as a client.
|
||||||
*
|
*
|
||||||
* @author $Author: maroy $
|
* @author $Author: maroy $
|
||||||
* @version $Revision: 1.2 $
|
* @version $Revision: 1.3 $
|
||||||
*/
|
*/
|
||||||
class SchedulerClientInterface
|
class SchedulerClientInterface
|
||||||
{
|
{
|
||||||
|
@ -82,13 +82,10 @@ class SchedulerClientInterface
|
||||||
/**
|
/**
|
||||||
* Return the current time at the scheduler server.
|
* 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.
|
* @return the current time at the scheduler server.
|
||||||
*/
|
*/
|
||||||
virtual Ptr<const boost::posix_time::ptime>::Ref
|
virtual Ptr<const boost::posix_time::ptime>::Ref
|
||||||
getSchedulerTime(Ptr<SessionId>::Ref sessionId)
|
getSchedulerTime(void) throw ()
|
||||||
throw ()
|
|
||||||
= 0;
|
= 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: maroy $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.3 $
|
Version : $Revision: 1.4 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/src/SchedulerDaemonXmlRpcClient.cxx,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/src/SchedulerDaemonXmlRpcClient.cxx,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -158,8 +158,7 @@ SchedulerDaemonXmlRpcClient :: getVersion(void) throw ()
|
||||||
* Get the current time from the server.
|
* Get the current time from the server.
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
Ptr<const ptime>::Ref
|
Ptr<const ptime>::Ref
|
||||||
SchedulerDaemonXmlRpcClient :: getSchedulerTime(
|
SchedulerDaemonXmlRpcClient :: getSchedulerTime(void)
|
||||||
Ptr<SessionId>::Ref sessionId)
|
|
||||||
throw ()
|
throw ()
|
||||||
{
|
{
|
||||||
XmlRpcValue xmlRpcParams;
|
XmlRpcValue xmlRpcParams;
|
||||||
|
@ -172,7 +171,6 @@ SchedulerDaemonXmlRpcClient :: getSchedulerTime(
|
||||||
false);
|
false);
|
||||||
|
|
||||||
xmlRpcResult.clear();
|
xmlRpcResult.clear();
|
||||||
xmlRpcParams["sessionId"] = sessionId->getId();
|
|
||||||
xmlRpcClient.execute("getSchedulerTime", xmlRpcParams, xmlRpcResult);
|
xmlRpcClient.execute("getSchedulerTime", xmlRpcParams, xmlRpcResult);
|
||||||
|
|
||||||
if (xmlRpcResult.hasMember("schedulerTime")) {
|
if (xmlRpcResult.hasMember("schedulerTime")) {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: maroy $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.2 $
|
Version : $Revision: 1.3 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/src/SchedulerDaemonXmlRpcClient.h,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/src/SchedulerDaemonXmlRpcClient.h,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -90,7 +90,7 @@ using namespace LiveSupport::Core;
|
||||||
* </code></pre>
|
* </code></pre>
|
||||||
*
|
*
|
||||||
* @author $Author: maroy $
|
* @author $Author: maroy $
|
||||||
* @version $Revision: 1.2 $
|
* @version $Revision: 1.3 $
|
||||||
*/
|
*/
|
||||||
class SchedulerDaemonXmlRpcClient :
|
class SchedulerDaemonXmlRpcClient :
|
||||||
virtual public Configurable,
|
virtual public Configurable,
|
||||||
|
@ -169,7 +169,7 @@ class SchedulerDaemonXmlRpcClient :
|
||||||
* @return the current time at the scheduler server.
|
* @return the current time at the scheduler server.
|
||||||
*/
|
*/
|
||||||
virtual Ptr<const boost::posix_time::ptime>::Ref
|
virtual Ptr<const boost::posix_time::ptime>::Ref
|
||||||
getSchedulerTime(Ptr<SessionId>::Ref sessionId) throw ();
|
getSchedulerTime(void) throw ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: maroy $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.2 $
|
Version : $Revision: 1.3 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/src/SchedulerDaemonXmlRpcClientTest.cxx,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/schedulerClient/src/SchedulerDaemonXmlRpcClientTest.cxx,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -169,7 +169,7 @@ void
|
||||||
SchedulerDaemonXmlRpcClientTest :: getSchedulerTimeTest(void)
|
SchedulerDaemonXmlRpcClientTest :: getSchedulerTimeTest(void)
|
||||||
throw (CPPUNIT_NS::Exception)
|
throw (CPPUNIT_NS::Exception)
|
||||||
{
|
{
|
||||||
Ptr<const ptime>::Ref time = schedulerClient->getSchedulerTime(sessionId);
|
Ptr<const ptime>::Ref time = schedulerClient->getSchedulerTime();
|
||||||
Ptr<const ptime>::Ref now = TimeConversion::now();
|
Ptr<const ptime>::Ref now = TimeConversion::now();
|
||||||
|
|
||||||
CPPUNIT_ASSERT(time.get());
|
CPPUNIT_ASSERT(time.get());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue