Пример #1
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)
Пример #2
0
 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
 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
 def getOutputDataAccessURLs(self):
     """Retrieve the list of accessURLs assigned to outputdata for a job"""
     return getAccessURLs(self.getOutputDataLFNs())