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