예제 #1
0
파일: BackendMS.py 프로젝트: kreczko/ganga
    def __init__(self, job_info, config_info):
        """Construct the Dashboard Backend Monitoring Service."""
        DashboardMS.__init__(self, job_info, config_info)
        try:
            self.backend_name = self.job_info.backend.__class__.__name__
        except AttributeError:
            self.backend_name = self.job_info['BACKEND']

        path_to_module = "Ganga.Lib.MonitoringServices.Dashboard.%sUtil" % self.backend_name
        __import__(path_to_module)
        import sys
        self.dynamic_util = sys.modules[path_to_module]
예제 #2
0
파일: LCGMS.py 프로젝트: wvengen/lgipilot
 def getSandboxModules(self):
     """Return list of module dependencies."""
     import Ganga.Lib.MonitoringServices.Dashboard
     return DashboardMS.getSandboxModules(self) + [
         Ganga.Lib.MonitoringServices.Dashboard.CommonUtil,
         Ganga.Lib.MonitoringServices.Dashboard.LCGMS,
         Ganga.Lib.MonitoringServices.Dashboard.LCGUtil,
         ]
예제 #3
0
파일: BackendMS.py 프로젝트: kreczko/ganga
    def getSandboxModules(self):
        """Return list of module dependencies."""
        import Ganga.Lib.MonitoringServices.Dashboard

        if self.backend_name in ['LSF', 'PBS', 'SGE']:
            return DashboardMS.getSandboxModules(self) + [
                Ganga.Lib.MonitoringServices.Dashboard.CommonUtil,
                Ganga.Lib.MonitoringServices.Dashboard.BackendMS,
                Ganga.Lib.MonitoringServices.Dashboard.BatchUtil,
                self.dynamic_util,
            ]
        else:
            return DashboardMS.getSandboxModules(self) + [
                Ganga.Lib.MonitoringServices.Dashboard.CommonUtil,
                Ganga.Lib.MonitoringServices.Dashboard.BackendMS,
                self.dynamic_util,
            ]
예제 #4
0
파일: LCGMS.py 프로젝트: wvengen/lgipilot
 def __init__(self, job_info, config_info):
     """Construct the Dashboard LCG Monitoring Service."""
     DashboardMS.__init__(self, job_info, config_info)