9350c4efd2c6a97c92b064d4d5cc4a73f8919bd0 |
|
10-Mar-2015 |
Christopher Wiley <wiley@chromium.org> |
leaderd: Add NFacedPeerd This fake version of peerd claims the same DBus service name, and more or less implements the same interfaces. However, instead of looking for remote peers, it just treats each process exposing a service as a separate peer (it has N faces, one for each process talking to NFacedPeerd). We'll use this functionality to replace peerd and run N instances of leaderd on the same system. Each leaderd instance will be told to claim a slightly different DBus well known name, and expose handlers on different ports. By faking out peerd, we'll be able to run a bunch of scenarios with N peers negotiating leadership. BUG=brillo:535 TEST=This code is used in follow on CLs successfully. Change-Id: Ie838d8a83afaece5c5dffc29c29d5ca5961847cd Reviewed-on: https://chromium-review.googlesource.com/260683 Tested-by: Christopher Wiley <wiley@chromium.org> Reviewed-by: David Zeuthen <zeuthen@chromium.org> Commit-Queue: Christopher Wiley <wiley@chromium.org>
/external/autotest/client/cros/tendo/common.py
|