Beispiel #1
0
    def __init__(self, name, interval):
        BasePoller.__init__(self, name, interval)

        self.queue = []
        self.timeouts = {}
        self.errors = {}

        self.daemon = True

        return
Beispiel #2
0
    def __init__(self, name, interval):
        BasePoller.__init__(self, name, interval)

        self.queue = []
        self.timeouts = {}
        self.errors = {}

        self.daemon = True

        return
Beispiel #3
0
    def __init__(self, name, interval, poll_url, regexp, method='get'):

        BasePoller.__init__(self, name, interval)

        self.poll_url = poll_url
        self.regexp = regexp
        self.session = requests.session()
        self.method = method

        self.last_seen = getcfg('last_seen_%s' % (self.name, ))

        self.daemon = True

        self.downloader = None

        return
Beispiel #4
0
    def __init__(self, name, interval, poll_url, regexp, method='get'):

        BasePoller.__init__(self, name, interval)

        self.poll_url = poll_url
        self.regexp = regexp
        self.session = requests.session()
        self.method = method

        self.last_seen = getcfg('last_seen_%s' % (self.name, ))

        self.daemon = True

        self.downloader = None

        return