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

Issue 7390043: state/api: implement machine watching

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rog
Modified:
10 years, 1 month ago
Reviewers:
mp+149646, dimitern, fwereade
Visibility:
Public.

Description

state/api: implement machine watching This watcher is simpler than some because no information is sent with each change notification. It shows the basic pattern though. https://code.launchpad.net/~rogpeppe/juju-core/210-api-first-watcher/+merge/149646 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/api: implement machine watching #

Total comments: 33

Patch Set 3 : state/api: implement machine watching #

Patch Set 4 : state/api: implement machine watching #

Total comments: 2

Patch Set 5 : state/api: implement machine watching #

Patch Set 6 : state/api: implement machine watching #

Patch Set 7 : state/api: implement machine watching #

Patch Set 8 : state/api: implement machine watching #

Patch Set 9 : state/api: implement machine watching #

Total comments: 1

Patch Set 10 : state/api: implement machine watching #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -40 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/api_test.go View 1 2 3 4 5 6 6 chunks +114 lines, -3 lines 0 comments Download
M state/api/apiclient.go View 1 2 3 4 5 6 5 chunks +103 lines, -13 lines 0 comments Download
M state/api/apiserver.go View 1 2 3 4 5 6 7 11 chunks +151 lines, -6 lines 0 comments Download
M state/api/client.go View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M state/api/error.go View 6 chunks +10 lines, -13 lines 0 comments Download
M state/api/export_test.go View 1 2 3 4 5 6 1 chunk +7 lines, -5 lines 0 comments Download

Messages

Total messages: 9
rog
Please take a look.
11 years, 2 months ago (2013-02-20 17:50:53 UTC) #1
dimitern
LGTM, with some trivial comments. https://codereview.appspot.com/7390043/diff/2001/state/api/api_test.go File state/api/api_test.go (right): https://codereview.appspot.com/7390043/diff/2001/state/api/api_test.go#newcode526 state/api/api_test.go:526: case <-time.After(20 * time.Millisecond): ...
11 years, 2 months ago (2013-02-21 11:23:29 UTC) #2
fwereade
This may be monday morning speaking, but I'm afraid I need some more explanation of ...
11 years, 2 months ago (2013-02-25 09:03:43 UTC) #3
rog
Please take a look. https://codereview.appspot.com/7390043/diff/2001/state/api/api_test.go File state/api/api_test.go (right): https://codereview.appspot.com/7390043/diff/2001/state/api/api_test.go#newcode526 state/api/api_test.go:526: case <-time.After(20 * time.Millisecond): On ...
11 years, 2 months ago (2013-02-25 10:49:59 UTC) #4
fwereade
Sorry for the confusion; looking good, but I'll wait for the dropped-connection handling. https://codereview.appspot.com/7390043/diff/2001/state/api/apiserver.go File ...
11 years, 2 months ago (2013-02-25 11:24:13 UTC) #5
rog
Please take a look.
11 years, 2 months ago (2013-02-26 11:22:39 UTC) #6
rog
Please take a look.
11 years, 2 months ago (2013-02-27 10:46:53 UTC) #7
fwereade
LGTM. https://codereview.appspot.com/7390043/diff/21002/state/api/apiclient.go File state/api/apiclient.go (right): https://codereview.appspot.com/7390043/diff/21002/state/api/apiclient.go#newcode227 state/api/apiclient.go:227: // the watcher will die with all resources ...
11 years, 2 months ago (2013-02-27 11:01:25 UTC) #8
rog
11 years, 2 months ago (2013-02-27 11:08:53 UTC) #9
*** Submitted:

state/api: implement machine watching

This watcher is simpler than some because no
information is sent with each change notification.
It shows the basic pattern though.

R=dimitern, fwereade
CC=
https://codereview.appspot.com/7390043
Sign in to reply to this message.

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