Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4614)

Issue 6335057: add presence.ChildrenWatcher

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by fwereade
Modified:
11 years, 10 months ago
Reviewers:
mp+112146, niemeyer
Visibility:
Public.

Description

add presence.ChildrenWatcher This mimics watcher.ChildrenWatcher, but expects that all children be presence nodes; and notifies of child node Pinger life/death, rather than mere existence of child nodes. Note that there is still a node deletion detection race between AliveW and the watcher.ChildrenWatcher, but it's a lot easier to deal with in this context than it was when I was trying to solve the same issue with a RelatedUnitsWatcher using multiple relationUnitWatcher~s. https://code.launchpad.net/~fwereade/juju-core/watch-presence-children/+merge/112146 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : add presence.ChildrenWatcher #

Total comments: 14

Patch Set 3 : add presence.ChildrenWatcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -408 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 3 chunks +5 lines, -9 lines 0 comments Download
M cmd/jujud/provisioning.go View 1 2 6 chunks +21 lines, -32 lines 0 comments Download
M state/presence/presence.go View 1 2 2 chunks +154 lines, -0 lines 0 comments Download
M state/presence/presence_test.go View 1 2 1 chunk +74 lines, -0 lines 0 comments Download
M state/watcher.go View 1 2 13 chunks +240 lines, -367 lines 0 comments Download
M state/watcher/watcher.go View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M state/watcher/watcher_test.go View 1 2 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 7
fwereade
Please take a look.
11 years, 10 months ago (2012-06-26 15:39:55 UTC) #1
fwereade
Please take a look.
11 years, 10 months ago (2012-06-26 15:58:59 UTC) #2
niemeyer
Neat. Seems like a good abstraction. https://codereview.appspot.com/6335057/diff/3001/state/presence/presence.go File state/presence/presence.go (right): https://codereview.appspot.com/6335057/diff/3001/state/presence/presence.go#newcode285 state/presence/presence.go:285: // ChildrenWatcher mimics ...
11 years, 10 months ago (2012-06-27 05:41:57 UTC) #3
fwereade
Hmm, I appear to have got tangled: deleting MP, recreating with new prereq. Will post ...
11 years, 10 months ago (2012-06-27 14:52:51 UTC) #4
fwereade
Please take a look.
11 years, 10 months ago (2012-06-27 14:53:58 UTC) #5
fwereade
On 2012/06/27 14:53:58, fwereade wrote: > Please take a look. Hmm. OK, I'm going to ...
11 years, 10 months ago (2012-06-27 14:55:48 UTC) #6
fwereade
11 years, 10 months ago (2012-06-27 15:01:29 UTC) #7
On 2012/06/27 14:55:48, fwereade wrote:
> On 2012/06/27 14:53:58, fwereade wrote:
> > Please take a look.
> 
> Hmm.
> 
> OK, I'm going to try harder with this deletion business :/.

Continued at: https://codereview.appspot.com/6354045
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b