All Classes and Interfaces
Class
Description
JAX-RS resource providing a single endpoint that allows clients to determine whether this service
participates in a leader latch.
JAX-RS resource providing endpoints for checking leadership and participant information.
Defines a type that can be returned when checking if a
LeaderLatch
has leadership, taking into account the various issues that can cause problems.Represents an invalid latch state; Curator is not in the
STARTED state.Defines an invalid leadership status caused by an error or erroneous state.
Represents a valid latch state, where the participant is the current leader.
Represents an invalid latch state; the LeaderLatch is not in the
STARTED state.Represents an invalid latch state; the
LeaderLatch has no participants.Represents a valid latch state, where the participant is not the leader.
Represents an invalid latch state; an unexpected Exception was thrown.
Defines a valid leadership status.
Wrapper around Curator's
LeaderLatch which standardizes the id and latch path in ZooKeeper, and which
registers with Dropwizard so that it manages the lifecycle (mainly to ensure the latch is stopped when the
Dropwizard app stops).Entry point to initialize
ManagedLeaderLatch, which wraps an Apache Curator
LeaderLatch and allows for easy determination
whether a JVM process is the leader in a group of JVMs connected to a ZooKeeper cluster.Exception that is thrown when there is some unexpected error relating to a managed Curator leader latch.
Simple check to determine if the leader latch is started (healthy) or otherwise (not healthy).
Value class that contains metadata about a service that participates in a leader latch.