예제 #1
0
    def __init__(self, name, *p, **k):

        # base
        BasicModule.__init__(self, name, *p, **k)
        
        # interval
        self.interval = int(Config().getExt(name, 'interval').strip())
        
        # request-queue
        self._queueRequest = Queue()
        
        # Queue-Manager
        self._queueManager = QueueManager(\
            self.logger, \
            Config().get('dir', 'pathFluxd').strip() + "qmgr/", \
            Config().get('dir', 'pathTf').strip() + '.transfers/', \
            int(Config().getExt(name, 'maxTotalTransfers').strip()), \
            int(Config().getExt(name, 'maxTotalDownloadingTransfers').strip()), \
            int(Config().getExt(name, 'maxTotalSeedingTransfers').strip()), \
            int(Config().getExt(name, 'maxUserTransfers').strip()), \
            int(Config().getExt(name, 'maxUserDownloadingTransfers').strip()), \
            int(Config().getExt(name, 'maxUserSeedingTransfers').strip()))
            
        # request-map
        self._requestMap = {
            QueueRequest.TYPE_ADD: self._queueManager.queueAdd,
            QueueRequest.TYPE_REMOVE: self._queueManager.queueRemove
        }
예제 #2
0
    def __init__(self, name, *p, **k):

        # base
        BasicModule.__init__(self, name, *p, **k)

        # interval
        self.interval = int(Config().getExt(name, "interval").strip())

        # jobs
        self.jobs = []
        self.initializeJobs(Config().getExt(name, "jobs").strip())

        # invocation-count
        self.runCount = 0
예제 #3
0
    def __init__(self, name, *p, **k):

        # base
        BasicModule.__init__(self, name, *p, **k)

        # interval
        self.interval = int(Config().getExt(name, 'interval').strip())

        # restart
        self.restart = 'false'
        if isTrue(Config().getExt(name, 'restart').strip()):
            self.restart = 'true'

        # invocation-count
        self.runCount = 0
예제 #4
0
    def __init__(self, name, *p, **k):

        # base
        BasicModule.__init__(self, name, *p, **k)

        # data-dir
        self.dataDir = '%s%s/' % (Config().get('dir', 'pathFluxd').strip(), Rssad.DIR_DATA)

        # interval
        self.interval = int(Config().getExt(name, 'interval').strip())

        # jobs
        self.jobs = []
        self.initializeJobs(Config().getExt(name, 'jobs').strip())

        # invocation-count
        self.runCount = 0
예제 #5
0
    def __init__(self, name, *p, **k):

        # base
        BasicModule.__init__(self, name, *p, **k)

        # config
        self.path_tf = Config().get('dir', 'pathTf').strip()
        self.path_fluxd = Config().get('dir', 'pathFluxd').strip()
        self.host = Config().getExt(name, 'host').strip()
        self.port = int(Config().getExt(name, 'port').strip())
        self.secure = Config().getExt(name, 'secure').strip()
        self.username = Config().getExt(name, 'username').strip()
        self.password = Config().getExt(name, 'password').strip()
        self.maxReconnectTries = int(Config().get(name, 'maxReconnectTries').strip())
        
        # fluazu-daemon
        self._fluazud = FluAzuD(self.logger)
예제 #6
0
    def __init__(self, name, *p, **k):

        # base
        BasicModule.__init__(self, name, *p, **k)

        # jobs hash
        self.jobs = {}

        # transfers path
        self.transfersPath = Config().get('dir', 'pathTf').strip() + Trigger.TransfersPath

        # interval
        self.interval = int(Config().getExt(name, 'interval').strip())

        # jobs File path
        self.pathTrigger = Config().get('dir', 'pathFluxd').strip() + 'trigger/'
        self.fileTrigger = self.pathTrigger + 'trigger.jobs'

        # invocation-count
        self.runCount = 0
예제 #7
0
    def __init__(self, name, *p, **k):

        # base
        BasicModule.__init__(self, name, *p, **k)