public interface QuorumClient<S extends Remote> extends QuorumListener, ServiceLookup<S>
Remote interface for the member services of the quorum.AbstractQuorum.start(QuorumClient)| Modifier and Type | Method and Description |
|---|---|
void |
disconnected()
The client has become disconnected from the quorum (for zookeeper this is
only generated if the session has expired rather than if there is a
transient disconnect that can be cured).
|
S |
getLeader(long token)
Return the remote interface used to perform HA operations on the quorum
leader.
|
String |
getLogicalServiceZPath()
The fully qualified identifier of the logical service whose quorum state
will be monitored (for zookeeper, this is the logicalServiceZPath).
|
Quorum<?,?> |
getQuorum()
The quorum that is being monitored.
|
S |
getService(UUID serviceId)
Return the remote interface used to perform HA operations on a member of
quorum.
|
void |
start(Quorum<?,?> quorum)
Life cycle message sent when the client will begin to receive messages
from the
Quorum. |
void |
terminate()
Life cycle message send when the client will no longer receive messages
from the
Quorum. |
notifyString getLogicalServiceZPath()
Note: The method was renamed from getLogicalServiceId() to
getLogicalServiceZPath() to avoid confusion with the zookeeper
integration which has both a logicalServiceId (just the last component of
the zpath) and a logicalServiceZPath. The Quorum and
QuorumClient interfaces only understand a single logical service
identifier - this is what corresponds to the
for the zookeeper integration.
QuorumMember.getServiceId()void start(Quorum<?,?> quorum)
Quorum. At a minimum, the client should save a reference
to the Quorum.quorum - The quorum.AbstractQuorum.start(QuorumClient)void terminate()
Quorum.AbstractQuorum.terminate()void disconnected()
Quorum<?,?> getQuorum()
QuorumException - if the client is not running with the quorum.start(Quorum)S getService(UUID serviceId)
getService in interface ServiceLookup<S extends Remote>serviceId - The UUID associated with the service.IllegalArgumentException - if the argument is nullQuorumException - if there is no Quorum member with that
serviceId.S getLeader(long token)
token - The quorum token for which the request was made.QuorumException - if the quorum token is no longer valid.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.