Exemplo n.º 1
0
    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]
Exemplo n.º 2
0
 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,
         ]
Exemplo n.º 3
0
    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,
            ]
Exemplo n.º 4
0
 def __init__(self, job_info, config_info):
     """Construct the Dashboard LCG Monitoring Service."""
     DashboardMS.__init__(self, job_info, config_info)