Ejemplo n.º 1
0
 def __init__(self, updateHandler, sleepTime):
     """
     Inicializa el estado
     Argumentos:
         updateHandler: el objeto que envía los paquetes para obtener la información
         sleepTime: tiempo (en segundos) que separa dos actualizaciones consecutivas.
     """
     BasicThread.__init__(self, "Status database update thread")
     self.__handler = updateHandler
     self.__sleepTime = sleepTime
Ejemplo n.º 2
0
 def __init__(self, updateHandler, sleepTime):
     """
     Initializes the thread's state
     Args:
         updateHandler: the object that will send the update request packets.
         sleepTime: the number of seconds that will separate two consecutive
         update requests.
     """
     BasicThread.__init__(self, "Status database update thread")
     self.__handler = updateHandler
     self.__sleepTime = sleepTime
Ejemplo n.º 3
0
 def __init__(self, updateHandler, sleepTime):
     """
     Initializes the thread's state
     Args:
         updateHandler: the object that will send the update request packets.
         sleepTime: the number of seconds that will separate two consecutive
         update requests.
     """
     BasicThread.__init__(self, "Status database update thread")
     self.__handler = updateHandler
     self.__sleepTime = sleepTime
Ejemplo n.º 4
0
 def __init__(self, connectionPool):
     """
     Initializes the thread's state.
     """
     BasicThread.__init__(self, "Connection monitoring thread")
     self.__connectionPool = connectionPool
Ejemplo n.º 5
0
 def __init__(self, connectionPool):
     """
     Initializes the thread's state.
     """
     BasicThread.__init__(self, "Connection monitoring thread")
     self.__connectionPool = connectionPool
 def __init__(self, processesList):
     BasicThread.__init__(self, "Background processes polling thread")
     self.__processesList = processesList
 def __init__(self, databaseConnector, commandTimeout, sleepTime):
     BasicThread.__init__(self, "Command monitoring thread")
     self.__dbConnector = databaseConnector
     self.__commandTimeout = commandTimeout
     self.__sleepTime = sleepTime
Ejemplo n.º 8
0
 def __init__(self, processesList):
     BasicThread.__init__(self, "Background processes polling thread")
     self.__processesList = processesList