Example #1
0
 def clientConnectionFailed(self, connector, reason):
     """
     @param reason: L{twisted.spread.pb.failure.Failure}
     """
     # this method exists so that we log the failure
     ReconnectingFPBClientFactory.clientConnectionFailed(self, connector, reason)
     # delay is now updated
     self.debug("failed to connect, will try to reconnect in %f seconds" % self.delay)
Example #2
0
 def clientConnectionFailed(self, connector, reason):
     """
     @param reason: L{twisted.spread.pb.failure.Failure}
     """
     # this method exists so that we log the failure
     ReconnectingFPBClientFactory.clientConnectionFailed(
         self, connector, reason)
     # delay is now updated
     self.debug("failed to connect, will try to reconnect in %f seconds" %
                self.delay)
Example #3
0
 def __init__(self, medium, host, port):
     """
     @type medium: L{flumotion.worker.medium.WorkerMedium}
     @type host:   str
     @type port:   int
     """
     self._managerHost = host
     self._managerPort = port
     self.medium = medium
     # doing this as a class method triggers a doc error
     ReconnectingFPBClientFactory.__init__(self)
     # maximum 10 second delay for workers to attempt to log in again
     self.maxDelay = 10
Example #4
0
 def __init__(self, medium, host, port):
     """
     @type medium: L{flumotion.worker.medium.WorkerMedium}
     @type host:   str
     @type port:   int
     """
     self._managerHost = host
     self._managerPort = port
     self.medium = medium
     # doing this as a class method triggers a doc error
     ReconnectingFPBClientFactory.__init__(self)
     # maximum 10 second delay for workers to attempt to log in again
     self.maxDelay = 10