示例#1
0
文件: Example.py 项目: rovere/dqmgui
 def __init__(self, gui, rank, category, name, *args):
     """Create a new workspace, and store a reference to the server ('gui')
 object.  Also create the list of views for the workspace."""
     CompWorkspace.__init__(self, gui, rank, category, 'lhc', name,
                            [LHCWorkspace.CooldownView()])
     gui._addJSFragment("%s/javascript/Overview/Example.js" %
                        gui.contentpath)
示例#2
0
 def __init__(self, gui, rank, category, name, *args):
     CompWorkspace.__init__(self, gui, rank, category, 'caf', name, [
         self.StorageSummary(),
         self.BatchSummary(),
         self.JobSummary(),
         self.DiskMonitor()
     ])
     gui._addJSFragment("%s/javascript/Overview/CAF.js" % gui.contentpath)
示例#3
0
文件: PhEDEx.py 项目: rovere/dqmgui
 def __init__(self, gui, rank, category, name, *args):
     CompWorkspace.__init__(self, gui, rank, category, 'phedex', name, [
         self.LinkRate(),
         self.LinkBytes(),
         self.RateQuality(),
         self.BlockLatency(),
         self.RegionCrossRate()
     ])
     gui._addJSFragment("%s/javascript/Overview/PhEDEx.js" %
                        gui.contentpath)
示例#4
0
文件: CAF.py 项目: rovere/dqmgui
 def __init__(self, gui, rank, category, name, *args):
     CompWorkspace.__init__(
         self,
         gui,
         rank,
         category,
         "caf",
         name,
         [self.StorageSummary(), self.BatchSummary(), self.JobSummary(), self.DiskMonitor()],
     )
     gui._addJSFragment("%s/javascript/Overview/CAF.js" % gui.contentpath)
示例#5
0
 def __init__(self,gui,rank,category,name,*args):
   _loginfo("FILELIGHT_W: Workspace created")
   CompWorkspace.__init__(self, gui, rank, category, 'filelight', name, [self.FileLightSiteView(self),self.FileLightGroupView(self)])
   gui._addJSFragment("%s/javascript/Overview/FileLight.js" % gui.contentpath)
   self.source = None
   for s in gui.sources:
     if s.plothook=='filelight':
       self.source = s
   if self.source==None:
     _logerr("FILELIGHT_W: Couldn't find FileLightSource")
     raise Exception, "FILELIGHT_W Couldn't find source"
示例#6
0
文件: DDT.py 项目: rovere/dqmgui
 def __init__(self, gui, rank, category, name, *args):
     CompWorkspace.__init__(self, gui, rank, category, 'ddt', name, [
         self.Summary(),
         self.Site("T0_CH_CERN"),
         self.Site("T1_CH_CERN"),
         self.Site("T1_DE_FZK"),
         self.Site("T1_ES_PIC"),
         self.Site("T1_FR_CCIN2P3"),
         self.Site("T1_IT_CNAF"),
         self.Site("T1_TW_ASGC"),
         self.Site("T1_UK_RAL"),
         self.Site("T1_US_FNAL"),
         self.Site("T2_CH_CAF")
     ])
     gui._addJSFragment('%s/javascript/Overview/DDT.js' % gui.contentpath)
示例#7
0
  def __init__(self,gui,rank,category,name,*args):
    """
    Create a new ProdMonWorkspace instance. Note that we need to find ProdMonSource in the server
    source list, or we'll exit ingloriously.

    TODO: good mechanism for finding sources
    TODO: SiteDB source integration
    TODO: ProdRequest integration

    """
    _loginfo("PRODMON_W: Workspace created")
    CompWorkspace.__init__(self, gui, rank, category, 'prodmon', name, [ProdMonWorkspace.ProdMonSummary(self),ProdMonWorkspace.ProdMonPlot(self)])
    gui._addJSFragment("%s/javascript/Overview/ProdMon.js" % gui.contentpath)
    gui._addCSSFragment("%s/css/Overview/ProdMon.css" % gui.contentpath)
    self.source = None
    for s in gui.sources:
      if s.plothook=='prodmon':
        self.source = s
    if self.source==None:
      _logerr("PRODMON_W: Couldn't find ProdMonSource")
      raise Exception, "PW: Failed to find prodmon source. Fatal."
示例#8
0
文件: DDT.py 项目: rovere/dqmgui
 def __init__(self, gui, rank, category, name, *args):
     CompWorkspace.__init__(
         self,
         gui,
         rank,
         category,
         "ddt",
         name,
         [
             self.Summary(),
             self.Site("T0_CH_CERN"),
             self.Site("T1_CH_CERN"),
             self.Site("T1_DE_FZK"),
             self.Site("T1_ES_PIC"),
             self.Site("T1_FR_CCIN2P3"),
             self.Site("T1_IT_CNAF"),
             self.Site("T1_TW_ASGC"),
             self.Site("T1_UK_RAL"),
             self.Site("T1_US_FNAL"),
             self.Site("T2_CH_CAF"),
         ],
     )
     gui._addJSFragment("%s/javascript/Overview/DDT.js" % gui.contentpath)
示例#9
0
 def __init__(self, gui, rank, category, name, *args):
     CompWorkspace.__init__(self, gui, rank, category, 'core', name,
                            [self.Summary()])
     gui._addJSFragment('%s/javascript/Overview/Core.js' % gui.contentpath)
示例#10
0
 def __init__(self, gui, rank, category, name, *args):
   CompWorkspace.__init__(self, gui, rank, category, 'core', name, [self.Summary()])
   gui._addJSFragment('%s/javascript/Overview/Core.js' % gui.contentpath)
示例#11
0
文件: Example.py 项目: rovere/dqmgui
 def __init__(self, gui, rank, category, name, *args):
     CompWorkspace.__init__(self, gui, rank, category, 'tpg', name,
                            [TPGWorkspace.TPGView()])
     gui._addJSFragment("%s/javascript/Overview/Example.js" %
                        gui.contentpath)
示例#12
0
 def __init__(self, gui, rank, category, name, *args):
   """Create a new workspace, and store a reference to the server ('gui')
   object.  Also create the list of views for the workspace."""
   CompWorkspace.__init__(self, gui, rank, category, 'lhc', name,
                          [LHCWorkspace.CooldownView()])
   gui._addJSFragment("%s/javascript/Overview/Example.js" % gui.contentpath)
示例#13
0
 def __init__(self, gui, rank, category, name, *args):
   CompWorkspace.__init__(self, gui, rank, category, 'tpg', name,
                          [TPGWorkspace.TPGView()])
   gui._addJSFragment("%s/javascript/Overview/Example.js" % gui.contentpath)
示例#14
0
  def __init__(self, gui, rank, category, name, *args):
    CompWorkspace.__init__(self, gui, rank, category, 'phedex', name,
			   [self.LinkRate(), self.LinkBytes(), self.RateQuality(),
			    self.BlockLatency(), self.RegionCrossRate()])
    gui._addJSFragment("%s/javascript/Overview/PhEDEx.js" % gui.contentpath)