neo4j/enterprise — pull request #19 by digitalstain (2012-03-13 13:27:26+00:00)
Title: Zoo startup wait and slight refactoring

There are two commits here, unrelated.

The first is extraction of a ClusterEventReceiver interface from ResponseReceiver, decoupling the responsibilities of receiving graph database events vs receiving HA cluster events.

The second is a fix for allowing an infinite wait time for the first ever ZK connection, which enables the startup cycle to wait for the ZK quorum to come online, instead of failing almost immediately.

The need for the first was revealed while developing the test cases for the second; that is why they are in the same PR.