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