Exemple #1
0
 def __init__(self, control_amp_service):
     """
     :param ControlAMPService control_amp_service: The service managing AMP
          connections to the control service.
     """
     CommandLocator.__init__(self)
     self.control_amp_service = control_amp_service
Exemple #2
0
 def __init__(self, control_amp_service):
     """
     :param ControlAMPService control_amp_service: The service managing AMP
          connections to the control service.
     """
     CommandLocator.__init__(self)
     self.control_amp_service = control_amp_service
Exemple #3
0
 def __init__(self, agent, timeout):
     """
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     :param Timeout timeout: A ``Timeout`` object to reset when a message
         is received.
     """
     CommandLocator.__init__(self)
     self.agent = agent
     self._timeout = timeout
Exemple #4
0
 def __init__(self, agent, timeout):
     """
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     :param Timeout timeout: A ``Timeout`` object to reset when a message
         is received.
     """
     CommandLocator.__init__(self)
     self.agent = agent
     self._timeout = timeout
Exemple #5
0
 def __init__(self, agent, timeout):
     """
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     :param Timeout timeout: A ``Timeout`` object to reset when a message
         is received.
     """
     CommandLocator.__init__(self)
     self.agent = agent
     self._timeout = timeout
     self._current_configuration = None
     self._current_configuration_generation = None
     self._current_state = None
     self._current_state_generation = None
Exemple #6
0
 def __init__(self, agent, timeout):
     """
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     :param Timeout timeout: A ``Timeout`` object to reset when a message
         is received.
     """
     CommandLocator.__init__(self)
     self.agent = agent
     self._timeout = timeout
     self._current_configuration = None
     self._current_configuration_generation = None
     self._current_state = None
     self._current_state_generation = None
Exemple #7
0
    def __init__(self, reactor, control_amp_service):
        """
        :param IReactorTime reactor: A reactor to use to tell the time for
            activity/inactivity reporting.
        :param ControlAMPService control_amp_service: The service managing AMP
            connections to the control service.
        """
        CommandLocator.__init__(self)

        # Create a brand new source to associate with changes from this
        # particular connection from an agent.  The lifetime of the source
        # exactly matches the lifetime of the protocol.  This is good since
        # after the connection is lost we can't receive any more changes from
        # it.
        self._source = ChangeSource()

        self._reactor = reactor
        self.control_amp_service = control_amp_service
Exemple #8
0
    def __init__(self, reactor, control_amp_service):
        """
        :param IReactorTime reactor: A reactor to use to tell the time for
            activity/inactivity reporting.
        :param ControlAMPService control_amp_service: The service managing AMP
            connections to the control service.
        """
        CommandLocator.__init__(self)

        # Create a brand new source to associate with changes from this
        # particular connection from an agent.  The lifetime of the source
        # exactly matches the lifetime of the protocol.  This is good since
        # after the connection is lost we can't receive any more changes from
        # it.
        self._source = ChangeSource()

        self._reactor = reactor
        self.control_amp_service = control_amp_service
Exemple #9
0
 def __init__(self, agent):
     """
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     """
     CommandLocator.__init__(self)
     self.agent = agent
Exemple #10
0
 def __init__(self, obj, methods):
     CommandLocator.__init__(self)
     self._object = obj
     self._methods = methods
     self._pending_chunks = {}
Exemple #11
0
 def __init__(self, agent):
     """
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     """
     CommandLocator.__init__(self)
     self.agent = agent