~free.ekanayaka/landscape-client/use-smart-to-get-dpkg-arch

« back to all changes in this revision

Viewing changes to landscape/broker/broker.py

  • Committer: Thomas Hervé
  • Date: 2009-06-03 15:36:35 UTC
  • mfrom: (110.2.3 broker-restart)
  • Revision ID: thomas@canonical.com-20090603153635-wh7ucq6z10w8c857
Merge broker-restart [f=380633] [r=niemeyer,free.ekayanaka]

Make manager and monitor plugins registered themselves and the mesage types
again if the broker is restarted. The notification happens with a new signal
sent by the broker at start.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
            self.server_uuid_changed(old_uuid or "", new_uuid or "")
72
72
        reactor.call_on("server-uuid-changed", server_uuid_changed)
73
73
        reactor.call_on("resynchronize-clients", self.resynchronize)
 
74
        self.broker_started()
74
75
 
75
76
    @signal(IFACE_NAME)
76
77
    def resynchronize(self):
170
171
    def registration_failed(self):
171
172
        pass
172
173
 
 
174
    @signal(IFACE_NAME)
 
175
    def broker_started(self):
 
176
        pass
 
177
 
173
178
    @method(IFACE_NAME, out_signature="as")
174
179
    def get_accepted_message_types(self):
175
180
        return self.message_store.get_accepted_types()