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
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
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