def __init__(self, app, config, mount): """ :arg app: reference to application object; passed to all entities. :arg config: reference to configuration; passed to all entities. :arg str mount: API URL mount point; passed to all entities.""" RESTApi.__init__(self, app, config, mount) cherrypy.log("WMStats entire configuration:\n%s" % Configuration.getInstance()) cherrypy.log("WMStats REST hub configuration subset:\n%s" % config) # only allows json format for return value self.formats = [('application/json', JSONFormat())] self._add({ "info": ServerInfo(app, self, config, mount), "teams": TeamInfo(app, self, config, mount), "request": RequestInfo(app, self, config, mount), "isfinished": FinishedStatusInfo(app, self, config, mount), "jobdetail": JobDetailInfo(app, self, config, mount), "requestcache": ActiveRequestJobInfo(app, self, config, mount) })
def __init__(self, app, config, mount): """ :arg app: reference to application object; passed to all entities. :arg config: reference to configuration; passed to all entities. :arg str mount: API URL mount point; passed to all entities.""" RESTApi.__init__(self, app, config, mount) cherrypy.log("WMStats entire configuration:\n%s" % Configuration.getInstance()) cherrypy.log("WMStats REST hub configuration subset:\n%s" % config) # only allows json format for return value self.formats = [('application/json', JSONFormat())] self._add({ "info": ServerInfo(app, self, config, mount), "teams": TeamInfo(app, self, config, mount), "request": RequestInfo(app, self, config, mount), "isfinished": FinishedStatusInfo(app, self, config, mount), "jobdetail": JobDetailInfo(app, self, config, mount), "requestcache": ActiveRequestJobInfo(app, self, config, mount), "filtered_requests": FilteredActiveRequestJobInfo(app, self, config, mount), "protectedlfns": ProtectedLFNList(app, self, config, mount), "protectedlfns_final": ProtectedLFNListOnlyFinalOutput(app, self, config, mount), "globallocks": GlobalLockList(app, self, config, mount), "parentlocks": ParentLockList(app, self, config, mount), "proc_status": ProcessMatrix(app, self, config, mount) })