Example #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)
Example #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)
Example #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)
Example #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)
Example #5
0
 def getOutputDataAccessURLs(self):
     """Retrieve the list of accessURLs assigned to outputdata for a job"""
     return getAccessURLs(self.getOutputDataLFNs())
Example #6
0
 def getOutputDataAccessURLs(self):
     """Retrieve the list of accessURLs assigned to outputdata for a job"""
     return getAccessURLs(self.getOutputDataLFNs())