コード例 #1
0
ファイル: DiracFile.py プロジェクト: Erni1619/ganga
 def accessURL(self, thisSE='', protocol=''):
     """
     Attempt to find an accessURL which corresponds to the specified SE. If no SE is specified then
     return a random one from all the replicas. Also use the specified protocol - if none then use 
     the default. 
     """
     lfns = []
     if len(self.subfiles) == 0:
         lfns.append(self.lfn)
     else:
         for i in self.subfiles:
             lfns.append(i.lfn)
     return getAccessURLs(lfns, thisSE, protocol, self.credential_requirements)
コード例 #2
0
ファイル: DiracFile.py プロジェクト: ganga-devs/ganga
 def accessURL(self, thisSE=''):
     """
     Attempt to find an accessURL which corresponds to the specified SE. If no SE is specified then
     return a random one from all the replicas. 
     """
     from GangaDirac.Lib.Backends.DiracUtils import getAccessURLs
     lfns = []
     if len(self.subfiles) == 0:
         lfns.append(self.lfn)
     else:
         for i in self.subfiles:
             lfns.append(i.lfn)
     return getAccessURLs(lfns, thisSE)
コード例 #3
0
 def accessURL(self, thisSE='', protocol=''):
     """
     Attempt to find an accessURL which corresponds to the specified SE. If no SE is specified then
     return a random one from all the replicas. Also use the specified protocol - if none then use 
     the default. 
     """
     lfns = []
     if len(self.subfiles) == 0:
         lfns.append(self.lfn)
     else:
         for i in self.subfiles:
             lfns.append(i.lfn)
     return getAccessURLs(lfns, thisSE, protocol,
                          self.credential_requirements)
コード例 #4
0
ファイル: DiracFile.py プロジェクト: natfarleydev/ganga
 def accessURL(self, thisSE='', protocol=''):
     """
     Attempt to find an accessURL which corresponds to the specified SE. If no SE is specified then
     return a random one from all the replicas. Also use the specified protocol - if none then use 
     the default. 
     """
     from GangaDirac.Lib.Backends.DiracUtils import getAccessURLs
     lfns = []
     if len(self.subfiles) == 0:
         lfns.append(self.lfn)
     else:
         for i in self.subfiles:
             lfns.append(i.lfn)
     return getAccessURLs(lfns, thisSE, protocol)
コード例 #5
0
 def getOutputDataAccessURLs(self):
     """Retrieve the list of accessURLs assigned to outputdata for a job"""
     return getAccessURLs(self.getOutputDataLFNs())
コード例 #6
0
ファイル: DiracBase.py プロジェクト: ganga-devs/ganga
 def getOutputDataAccessURLs(self):
     """Retrieve the list of accessURLs assigned to outputdata for a job"""
     return getAccessURLs(self.getOutputDataLFNs())