Ejemplo n.º 1
0
    def __init__(self, name, interval):
        BasePoller.__init__(self, name, interval)

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

        self.daemon = True

        return
Ejemplo n.º 2
0
    def __init__(self, name, interval):
        BasePoller.__init__(self, name, interval)

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

        self.daemon = True

        return
Ejemplo n.º 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
Ejemplo n.º 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