示例#1
0
 def __init__(self, control_amp_service):
     """
     :param ControlAMPService control_amp_service: The service managing AMP
          connections to the control service.
     """
     AMP.__init__(self, locator=ControlServiceLocator(control_amp_service))
     self.control_amp_service = control_amp_service
示例#2
0
 def __init__(self, control_amp_service):
     """
     :param ControlAMPService control_amp_service: The service managing AMP
          connections to the control service.
     """
     AMP.__init__(self, locator=ControlServiceLocator(control_amp_service))
     self.control_amp_service = control_amp_service
示例#3
0
 def __init__(self, agent):
     """
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     """
     locator = _AgentLocator(agent)
     AMP.__init__(self, locator=locator)
     self.agent = agent
示例#4
0
 def __init__(self, agent):
     """
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     """
     locator = _AgentLocator(agent)
     AMP.__init__(self, locator=locator)
     self.agent = agent
示例#5
0
 def __init__(self, *a, **kw):
     AMP.__init__(self, *a, **kw)
     self._producers = {}
     self._consumers = {}
     self._buffers = {}
     self._pending = {}
     self._waitingOnCompletion = {}
     self._draining = set()
示例#6
0
 def __init__(self, reactor, agent):
     """
     :param IReactorTime reactor: A reactor to use to schedule periodic ping
         operations.
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     """
     locator = _AgentLocator(agent)
     AMP.__init__(self, locator=locator)
     self.agent = agent
     self._pinger = Pinger(reactor)
示例#7
0
 def __init__(self, reactor, agent):
     """
     :param IReactorTime reactor: A reactor to use to schedule periodic ping
         operations.
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     """
     locator = _AgentLocator(agent)
     AMP.__init__(self, locator=locator)
     self.agent = agent
     self._pinger = Pinger(reactor)
示例#8
0
 def __init__(self, reactor, control_amp_service):
     """
     :param reactor: See ``ControlServiceLocator.__init__``.
     :param ControlAMPService control_amp_service: The service managing AMP
         connections to the control service.
     """
     locator = ControlServiceLocator(reactor, control_amp_service)
     AMP.__init__(self, locator=locator)
     self.control_amp_service = control_amp_service
     self._pinger = Pinger(reactor)
示例#9
0
 def __init__(self, reactor, agent):
     """
     :param IReactorTime reactor: A reactor to use to schedule periodic ping
         [email protected]
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     """
     locator = _AgentLocator(agent, timeout_for_protocol(reactor, self))
     AMP.__init__(self, locator=locator)
     self.agent = agent
     self._pinger = Pinger(reactor)
示例#10
0
 def __init__(self, reactor, control_amp_service):
     """
     :param reactor: See ``ControlServiceLocator.__init__``.
     :param ControlAMPService control_amp_service: The service managing AMP
         connections to the control service.
     """
     locator = ControlServiceLocator(reactor, control_amp_service)
     AMP.__init__(self, locator=locator)
     self.control_amp_service = control_amp_service
     self._pinger = Pinger(reactor)
示例#11
0
 def __init__(self, reactor, agent):
     """
     :param IReactorTime reactor: A reactor to use to schedule periodic ping
         [email protected]
     :param IConvergenceAgent agent: Convergence agent to notify of changes.
     """
     locator = _AgentLocator(agent, timeout_for_protocol(reactor, self))
     AMP.__init__(self, locator=locator)
     self.agent = agent
     self._pinger = Pinger(reactor)
示例#12
0
 def __init__(self):
     AMP.__init__(self, locator=ExercisesLocator(self))
示例#13
0
 def __init__(self, obj, methods):
     AMP.__init__(self, locator=MethodCallReceiver(obj, methods))
示例#14
0
 def __init__(self, identifier):
     AMP.__init__(self)
     self.identifier = identifier
     self.finished = Deferred()
示例#15
0
 def __init__(self, avatarId):
     AMP.__init__(self)
     self.avatarId = avatarId
示例#16
0
 def __init__(self):
     MultiplexingCommandLocator.__init__(self)
     AMP.__init__(self)
示例#17
0
 def __init__(self, avatarId):
     AMP.__init__(self)
     self.avatarId = avatarId
示例#18
0
文件: control.py 项目: intk/perry
 def __init__(self, details, new_connection_callback, connection_lost_callback):
     AMP.__init__(self)
     self.details = details
     self.new_connection_callback = new_connection_callback
     self.connection_lost_callback = connection_lost_callback
示例#19
0
 def __init__(self, isServer, startupD):
     self.isServer = isServer
     AMP.__init__(self)
     self.startupD = startupD
示例#20
0
 def __init__(self, identifier):
     AMP.__init__(self)
     self.identifier = identifier
     self.finished = Deferred()
示例#21
0
文件: sigma.py 项目: chellygel/vertex
 def __init__(self, nexus):
     AMP.__init__(self)
     self.nexus = nexus
     self.sentTransloads = []
示例#22
0
 def __init__(self, isServer, startupD):
     self.isServer = isServer
     AMP.__init__(self)
     self.startupD = startupD
示例#23
0
 def __init__(self):
     MultiplexingCommandLocator.__init__(self)
     AMP.__init__(self)
示例#24
0
文件: sigma.py 项目: zhp1254/vertex
 def __init__(self, nexus):
     AMP.__init__(self)
     self.nexus = nexus
     self.sentTransloads = []