Exemple #1
0
    def generateOperation(self, opType, nbFiles, dests, sources=None):
        """ Generate one FTS3Operation object with FTS3Files in it"""
        op = None
        if opType == 'Transfer':
            op = FTS3TransferOperation()
        elif opType == 'Staging':
            op = FTS3StagingOperation()
        op.username = "******"
        op.userGroup = "Floyd"
        op.sourceSEs = sources
        for _i in xrange(nbFiles * len(dests)):
            self.fileCounter += 1
            for dest in dests:
                ftsFile = FTS3File()
                ftsFile.lfn = 'lfn%s' % self.fileCounter
                ftsFile.targetSE = dest
                op.ftsFiles.append(ftsFile)

        return op
Exemple #2
0
    def generateOperation(self, opType, nbFiles, dests, sources=None):
        """Generate one FTS3Operation object with FTS3Files in it"""
        op = None
        if opType == "Transfer":
            op = FTS3TransferOperation()
        elif opType == "Staging":
            op = FTS3StagingOperation()
        proxyInfo = getProxyInfo()["Value"]
        op.username = proxyInfo["username"]
        op.userGroup = proxyInfo["group"]
        op.sourceSEs = sources
        for _i in range(nbFiles * len(dests)):
            self.fileCounter += 1
            for dest in dests:
                ftsFile = FTS3File()
                ftsFile.lfn = "lfn%s" % self.fileCounter
                ftsFile.targetSE = dest
                op.ftsFiles.append(ftsFile)

        return op