Permalink
Browse files

added Batch Service

  • Loading branch information...
1 parent 20ca878 commit 8e0a6fae4567d689d70459b17e5e6ec1226a0930 @AndreCharbonneau AndreCharbonneau committed May 15, 2013
Showing with 23 additions and 1 deletion.
  1. +2 −1 wsgi/rpi_web.py
  2. +21 −0 wsgi/services/batch.py
View
3 wsgi/rpi_web.py
@@ -8,7 +8,7 @@
import threading
import logging
from cherrypy import _cperror
-
+from services.batch import BatchService
from services.cloudscheduler import CloudSchedulerService
from services.cvmfs import CvmfsService
@@ -33,6 +33,7 @@
# Create the handlers.
cloudSchedulerService = CloudSchedulerService(d)
cvmfsService = CvmfsService(d)
+ batchService = BatchService(d)
View
21 wsgi/services/batch.py
@@ -0,0 +1,21 @@
+from base import RpiService
+import datetime
+import xmlrpclib
+
+class BatchService(RpiService):
+# def getVersion(self):
+# proxy = xmlrpclib.ServerProxy(self._getXmlRpcServer())
+# return proxy.get_version()
+
+# def getReleaseTime(self):
+# """
+# Must return a datetime.datetime object.
+# """
+# return datetime.datetime.now()
+
+# def getInvocations(self):
+# return 0
+
+ def getLastReset(self):
+ return datetime.datetime.now()
+

0 comments on commit 8e0a6fa

Please sign in to comment.