示例#1
0
 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("ReqMgr entire configuration:\n%s" % Configuration.getInstance())    
     cherrypy.log("ReqMgr REST hub configuration subset:\n%s" % config)
     
     self.db_handler = ReqMgrCouch(config) 
     # Makes raw format as default
     #self.formats.insert(0, ('application/raw', RawFormat()))
     self._add({"hello": HelloWorld(self, app, config, mount),
                "about": Info(app, self, config, mount),
                "info": Info(app, self, config, mount),
                "request": Request(app, self, config, mount),
                "group": Group(app, self, config, mount),
                "team": Team(app, self, config, mount),
                "software": Software(app, self, config, mount),
                "status": RequestStatus(app, self, config, mount),
                "type": RequestType(app, self, config, mount),
                "spec_template": RequestSpec(self, app, config, mount),
                "wmstats_info":WMStatsInfo(self, app, config, mount)
               })
示例#2
0
    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("ReqMgr entire configuration:\n%s" %
                     Configuration.getInstance())
        cherrypy.log("ReqMgr REST hub configuration subset:\n%s" % config)

        # Makes raw format as default
        # self.formats.insert(0, ('application/raw', RawFormat()))
        self._add({
            "about":
            Info(app, IndividualCouchManager(config), config, mount),
            "info":
            Info(app, IndividualCouchManager(config), config, mount),
            "app_config":
            ReqMgrConfigData(app, IndividualCouchManager(config), config,
                             mount),
            "request":
            Request(app, IndividualCouchManager(config), config, mount),
            "cmsswversions":
            CMSSWVersions(app, IndividualCouchManager(config), config, mount),
            "wmagentconfig":
            WMAgentConfig(app, IndividualCouchManager(config), config, mount),
            "permissions":
            PermissionsConfig(app, IndividualCouchManager(config), config,
                              mount),
            "campaignconfig":
            CampaignConfig(app, IndividualCouchManager(config), config, mount),
            "unifiedconfig":
            UnifiedConfig(app, IndividualCouchManager(config), config, mount),
            "transferinfo":
            TransferInfo(app, IndividualCouchManager(config), config, mount),
            "status":
            RequestStatus(app, IndividualCouchManager(config), config, mount),
            "type":
            RequestType(app, IndividualCouchManager(config), config, mount),
            "spec_template":
            RequestSpec(app, IndividualCouchManager(config), config, mount),
            "workload_config":
            WorkloadConfig(app, IndividualCouchManager(config), config, mount),
            "splitting":
            WorkloadSplitting(app, IndividualCouchManager(config), config,
                              mount),
            "wmstats_info":
            WMStatsInfo(app, IndividualCouchManager(config), config, mount),
            "proc_status":
            ProcessMatrix(app, self, config, mount),
            "parentlocks":
            ParentLocks(app, IndividualCouchManager(config), config, mount)
        })
示例#3
0
    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("ReqMgr entire configuration:\n%s" %
                     Configuration.getInstance())
        cherrypy.log("ReqMgr REST hub configuration subset:\n%s" % config)

        # Makes raw format as default
        # self.formats.insert(0, ('application/raw', RawFormat()))
        self._add({
            "about":
            Info(app, IndividualCouchManager(config), config, mount),
            "info":
            Info(app, IndividualCouchManager(config), config, mount),
            "app_config":
            ReqMgrConfigData(app, IndividualCouchManager(config), config,
                             mount),
            "request":
            Request(app, IndividualCouchManager(config), config, mount),
            "software":
            Software(app, IndividualCouchManager(config), config, mount),
            "status":
            RequestStatus(app, IndividualCouchManager(config), config, mount),
            "type":
            RequestType(app, IndividualCouchManager(config), config, mount),
            "spec_template":
            RequestSpec(IndividualCouchManager(config), app, config, mount),
            "workload_config":
            WorkloadConfig(IndividualCouchManager(config), app, config, mount),
            "splitting":
            WorkloadSplitting(IndividualCouchManager(config), app, config,
                              mount),
            "wmstats_info":
            WMStatsInfo(IndividualCouchManager(config), app, config, mount)
        })