~ubuntu-branches/ubuntu/lucid/landscape-client/lucid-updates

« back to all changes in this revision

Viewing changes to landscape/broker/server.py

  • Committer: Package Import Robot
  • Author(s): Andreas Hasenack
  • Date: 2012-04-10 14:28:48 UTC
  • mfrom: (1.1.27)
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: package-import@ubuntu.com-20120410142848-7xsy4g2xii7y7ntc
ImportĀ upstreamĀ versionĀ 12.04.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    """
30
30
    A broker server capable of handling messages from plugins connected using
31
31
    the L{BrokerProtocol}.
 
32
 
 
33
    @param config: The L{BrokerConfiguration} used by the broker.
 
34
    @param reactor: The L{TwistedReactor} driving the broker's events.
 
35
    @param exchange: The L{MessageExchange} to send messages with.
 
36
    @param registration: The {RegistrationHandler}.
 
37
    @param message_store: The broker's L{MessageStore}.
32
38
    """
33
39
    name = "broker"
34
40
    connectors_registry = RemoteComponentsRegistry
35
41
 
36
42
    def __init__(self, config, reactor, exchange, registration,
37
43
                 message_store):
38
 
        """
39
 
        @param config: The L{BrokerConfiguration} used by the broker.
40
 
        @param reactor: The L{TwistedReactor} driving the broker's events.
41
 
        @param exchange: The L{MessageExchange} to send messages with.
42
 
        @param registration: The {RegistrationHandler}.
43
 
        @param message_store: The broker's L{MessageStore}.
44
 
        """
45
44
        self._config = config
46
45
        self._reactor = reactor
47
46
        self._exchanger = exchange