コード例 #1
0
    def join(self, timeout=None):
        """Join worker threads.
        If timeout is not None, is_alive() must be used to determine
        if the thread pool is still running.

        Arguments:
            timeout: join timeout in seconds
        """
        join(self.threads, timeout)
コード例 #2
0
ファイル: threadpool.py プロジェクト: jmullins/trpycore
    def join(self, timeout=None):
        """Join worker threads.
        If timeout is not None, is_alive() must be used to determine
        if the thread pool is still running.

        Arguments:
            timeout: join timeout in seconds
        """
        join(self.threads, timeout)
コード例 #3
0
ファイル: default.py プロジェクト: jmullins/trsvcscore
    def join(self, timeout=None):
        """Join the server.

        Join the server, waiting for the completion of all threads 
        or greenlets.

        Args:
            timeout: Optional timeout in seconds to observe before returning.
                If timeout is specified, the status() method must be called
                to determine if the service is still running.
        """
        join([self.handler, self.thread], timeout)
コード例 #4
0
    def join(self, timeout=None):
        """Join the service.

        Join the service, waiting for the completion of all threads 
        or greenlets.

        Args:
            timeout: Optional timeout in seconds to observe before returning.
                If timeout is specified, the status() method must be called
                to determine if the service is still running.
        """
        join(self.servers, timeout)
コード例 #5
0
ファイル: handler.py プロジェクト: techresidents/indexsvc
 def join(self, timeout=None):
     """Join handler."""
     join([self.thread_pool, self.job_monitor, super(IndexServiceHandler, self)], timeout)
コード例 #6
0
ファイル: handler.py プロジェクト: techresidents/archivesvc
 def join(self, timeout=None):
     """Join handler."""
     join([self.archiver, super(ArchiveServiceHandler, self)], timeout)
コード例 #7
0
 def join(self, timeout=None):
     """Join handler."""
     join([self.persist_job_monitor, super(PersistServiceHandler, self)], timeout)
コード例 #8
0
 def join(self, timeout):
     """Join all threads."""
     threads = [self.db_job_queue]
     if self.monitor_thread is not None:
         threads.append(self.monitor_thread)
     join(threads, timeout)
コード例 #9
0
 def join(self, timeout):
     """Join persister."""
     join([self.threadpool, self.monitorThread], timeout)
コード例 #10
0
ファイル: jobmonitor.py プロジェクト: jmullins/indexsvc
 def join(self, timeout):
     """Join all threads."""
     threads = [self.db_job_queue]
     if self.monitor_thread is not None:
         threads.append(self.monitor_thread)
     join(threads, timeout)
コード例 #11
0
 def join(self, timeout):
     """Join persister."""
     join([self.threadpool, self.monitorThread], timeout)
コード例 #12
0
ファイル: archive.py プロジェクト: techresidents/archivesvc
 def join(self, timeout):
     """Join archiverer."""
     threads = [self.threadpool, self.db_job_queue]
     if self.thread is not None:
         threads.append(self.thread)
     join(threads, timeout)
コード例 #13
0
 def join(self, timeout=None):
     """Join handler."""
     join([self.persist_job_monitor,
           super(PersistServiceHandler, self)], timeout)
コード例 #14
0
 def join(self, timeout):
     """Join scheduler."""
     join([self.threadpool, self.monitorThread], timeout)
コード例 #15
0
ファイル: handler.py プロジェクト: jmullins/archivesvc
 def join(self, timeout=None):
     """Join handler."""
     join([self.archiver, super(ArchiveServiceHandler, self)], timeout)
コード例 #16
0
 def join(self, timeout=None):
     """Join handler."""
     join([self.scheduler, super(ScheduleServiceHandler, self)], timeout)
コード例 #17
0
ファイル: scheduler.py プロジェクト: jmullins/schedulesvc
 def join(self, timeout):
     """Join scheduler."""
     join([self.threadpool, self.monitorThread], timeout)
コード例 #18
0
ファイル: archive.py プロジェクト: jmullins/archivesvc
 def join(self, timeout):
     """Join archiverer."""
     threads = [self.threadpool, self.db_job_queue]
     if self.thread is not None:
         threads.append(self.thread)
     join(threads, timeout)