public interface QuorumWatcher<S extends Remote,C extends QuorumClient<S>>
AbstractQuorumand is responsible for updating the internal state of the
AbstractQuorumas it the distributed quorum state. The quorum internal state always reflects the distributed quorum state.
For example, the zookeeper implementation will watch the zpath whose children
are the member services. If a new child appears, it will invoke
AbstractQuorum#memberAdd(java.util.UUID) so the
AbstractQuorum can update its internal state.
Since this interface watches the distributed state of the quorum, it
does not have any specific methods which it must declare other than those
which manage its life cycle (start/terminate). All of the interesting methods
are on the
QuorumWatcher is responsible for generating these events during
its discovery phase when it starts running. The
report the discovered state in a manner consistent with the preconditions and
postconditions defined for the
QuorumActor provides the complementary functionality of
causing changes in the distributed state of the quorum.
Copyright © 2006–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.