def __init__(self, diskImagesDirectory):
     """
     Initializes the reactor's state
     Args:
         diskImagesDirectory: the FTP server's root directory
     """
     self.__diskImagesDirectory = diskImagesDirectory
     self.__slotCounter = MultithreadingCounter()
     self.__retrieveQueue = GenericThreadSafeList()
     self.__storeQueue = GenericThreadSafeList()
     self.__finish = False
     self.__networkManager = None
     self.__ftpServer = None
Exemplo n.º 2
0
 def __init__(self):
     """
     Initializes the manager's state
     Args:
         None
     """
     self.__backgroundProcesses = GenericThreadSafeList()
     self.__thread = BackgroundProcessesPollingThread(self.__backgroundProcesses)
     self.__thread.start()
Exemplo n.º 3
0
 def __init__(self):
     """
     Creates an empty queue
     Args:
         None
     Returns:
         Nothing
     """
     self.__list = GenericThreadSafeList()