예제 #1
0
파일: vcloud.py 프로젝트: vfine/webplatform
   def __init__(self,name=None,parent=None,obj=None):
      pmModule.__init__(self,name,parent,obj)
      self.jobstates = utils.jobStates
      self.lstates = len(self.jobstates)
      self.cloudList= pmt.getCloudList()
      self.clouds = ['ALL']
      self.clouds +=  self.cloudList.keys()
#      self.clouds = 'ALL CA CERN DE ES FR IT ND NL TW UK US OSG '.split()
      self.publishUI(self.doQuery)
예제 #2
0
파일: mcore.py 프로젝트: vfine/webplatform
 def __init__(self, name=None, parent=None, obj=None):
     pmModule.__init__(self, name, parent, obj)
     self.jobstates = utils.jobStates
     self.lstates = len(self.jobstates)
     self.cloudList = pmt.getCloudList()
     self.clouds = ['ALL']
     self.clouds += self.cloudList.keys()
     #      self.clouds = 'ALL CA CERN DE ES FR IT ND NL TW UK US OSG '.split()
     self.publishUI(self.doQuery)
예제 #3
0
   def __init__(self,name=None,parent=None,obj=None):
      pmModule.__init__(self,name,parent,obj)
      self.jobstates = ('Pilots','%fail','Latest')+utils.jobStates + ('unassigned',)
      self._ALL = ' ALL'
      self.lstates = len(self.jobstates)
      self.cloudList= pmt.getCloudList()
      self.clouds = [self._ALL]
      self.clouds +=  self.cloudList.keys() + ['CMS','AMS']
      self._region4sites,self._sites4region = setutils.region4Sites(pmt)
      self._iFailed = utils.name2Index(self.jobstates,'failed')
      self._iFinished  = utils.name2Index(self.jobstates,'finished')
      self._iRation    = utils.name2Index(self.jobstates,'%fail')
      self._iPilots    = utils.name2Index(self.jobstates,'Pilots');
      self._iLatest    = utils.name2Index(self.jobstates,'Latest');

      self._jobSum = [
                         ['States'         , 'status']
                        ,['Users'        , 'username']
                        ,['Releases'      ,'transUses']
                        ,['Processing Types' , 'processingType']
#                       ,['Analysis Tasks' , 'destinationDBlock']   # tasktype = 'analysis'
#                       ,['Output Dataset',  'destinationDBlock']   # tasktype = 'analysis'
                        ,['Task Labels'       , 'prodSourceLabel']
#                       , ['Task ID'       , 'JEDITASKID']
#                       ,['Batch system ID','batchID' ]
                       ,['Transformations', 'transPath']
#                       ,['Input dataset' , 'prodDBlock']
                        ,['Working groups', 'workingGroup']
#                       ,['Creation Hosts' , 'creationHost']
#                       ,['Packages'      , 'homepackage']  #  need constrain
#                       ,['Sites'          , 'computingSite']
#                       , ['Regions'      , 'Region']
                       , ['Clouds'        , 'cloud']
                       , ['Task Types'        , 'taskType']
                       , ['Jobs','JediTaskID'] 
#                       ,['Analysis Tasks', 'destinationDBlock']
#                       ,['Task Priorities' , 'currentPriority' ]# need constrain 
                  ]
 #      self.clouds = 'ALL CA CERN DE ES FR IT ND NL RU TW UK US OSG CMS AMS'.split()
      self._description,params = utils.normalizeDbSchema(pmt,'jobsarchived4')

      self.publishUI(self.doQuery,params=params)