Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

add support for some of the FourLetter words #54

Merged
merged 2 commits into from
Apr 5, 2015

Conversation

theckman
Copy link
Contributor

I have a need for polling the Zookeeper instance with some of the four-letter words. In this PR te following words are implemneted with tests:

  • srvr
  • cons
  • ruok

srvr get some stats about the server (connections, latencies, leader/follower mode, etc.)
cons gets detailed information about the individual connections and their sessions
ruok is actually mostly useless, but specifies whether the server has returned imok when prompted with ruok

I'm not sold on the name of the public API functions, FLWCons(), and would happily change them to something better.

@theckman theckman force-pushed the server_stats branch 2 times, most recently from 26c2657 to a5f0f8d Compare March 25, 2015 11:31
I have a need for polling the Zookeeper instance with some of the four-letter words. In this PR te following words are implemneted with tests:

* srvr
* cons
* ruok

`srvr` get some stats about the server (connections, latencies, leader/follower mode, etc.)
`cons` gets detailed information about the individual connections and their sessions
`ruok` is actually mostly useless, but specifies whether the server has returned `imok` when prompted with `ruok`

I'm not sold on the name of the public API functions, `FLWCons()`, and would happily change them to something better.
@@ -33,6 +34,54 @@ type Stat struct {
Pzxid int64 // last modified children
}

// Client is the information for a single Zookeper client and its session.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should start with ServerClient instead of Client

Typo on Zookeper

@samuel
Copy link
Owner

samuel commented Apr 1, 2015

Really minor doc issues but otherwise looks great. Thanks!

@theckman
Copy link
Contributor Author

theckman commented Apr 4, 2015

@samuel wow, those are really lame typos. Sorry about not catching them previously.

I've pushed a single commit to address the feedback. Let me know if you need anything else.

@samuel
Copy link
Owner

samuel commented Apr 4, 2015

No worries. Sorry to be picky. Looks good.

samuel added a commit that referenced this pull request Apr 5, 2015
add support for some of the FourLetter words
@samuel samuel merged commit 20c8c1d into samuel:master Apr 5, 2015
@theckman theckman deleted the server_stats branch June 5, 2015 23:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants