Ejemplo n.º 1
0
 def __init__(self, shutdown_event, items, database, sender):
     self._database = database
     self._items = items
     self._sender = sender
     self._shutdown_event = shutdown_event
     self._item = None
     self._process_date = None
     self._item_processor = None
     self._update_interval = None
     self._logger = get_logger()
Ejemplo n.º 2
0
 def __init__(self, config, section):
     self._config = config
     self._section = section
     self._next_process_date = time()
     self._update_interval = None
     self._keys = None
     self._update_results = None
     self._fetch_item_keys()
     self._fetch_update_interval()
     self._logger = get_logger()
     self._logger.debug('Setup item %s' % self.__class__.__name__)
Ejemplo n.º 3
0
 def __init__(self, server, port, socket_timeout, send_interval, simulate, database,
         hostname=None):
     self._server = server
     self._port = port
     self._socket_timeout = socket_timeout
     self._database = database
     self._send_interval = send_interval
     self._simulate = simulate
     self._process_date = None
     self._force = None
     self._next_send_date = time()
     self._logger = get_logger()
     self._hostname = hostname or getfqdn()
Ejemplo n.º 4
0
 def __init__(self,
              server,
              port,
              socket_timeout,
              send_interval,
              simulate,
              database,
              hostname=None):
     self._server = server
     self._port = port
     self._socket_timeout = socket_timeout
     self._database = database
     self._send_interval = send_interval
     self._simulate = simulate
     self._process_date = None
     self._force = None
     self._next_send_date = time()
     self._logger = get_logger()
     self._hostname = hostname or getfqdn()
Ejemplo n.º 5
0
 def __init__(self, database):
     self._conn = None
     self._database = database
     self._logger = get_logger()
Ejemplo n.º 6
0
 def __init__(self, items, database):
     self._database = database
     self._item = None
     self._items = items
     self._logger = get_logger()
     self._process_date = None
Ejemplo n.º 7
0
 def __init__(self, database):
     self._conn = None
     self._database = database
     self._logger = get_logger()