A C D G L M O R S T Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- acquire(InterProcessLock, long, TimeUnit) - Method in class org.kiwiproject.curator.CuratorLockHelper
-
Tries to acquire the specified
lock, waiting up to the specified timeout period. - addLoggingConnectionStateListener(CuratorFramework, String) - Static method in class org.kiwiproject.curator.listener.CuratorListeners
-
Add a
ConnectionStateListenerto the given client that logs state changes at INFO level. - addLoggingCuratorListener(CuratorFramework, String) - Static method in class org.kiwiproject.curator.listener.CuratorListeners
-
Add a
CuratorListenerto the given client that logs receipt of Curator events at INFO level. - addLoggingUnhandledErrorListener(CuratorFramework, String) - Static method in class org.kiwiproject.curator.listener.CuratorListeners
-
Add an
UnhandledErrorListenerto the given client that logs unhandled errors at WARN level. - anyZooKeepersAvailable(String) - Method in class org.kiwiproject.curator.zookeeper.ZooKeeperAvailabilityChecker
-
Check if any ZooKeepers are available using the given connection string.
- anyZooKeepersAvailable(CuratorConfig) - Method in class org.kiwiproject.curator.zookeeper.ZooKeeperAvailabilityChecker
-
Check if any ZooKeepers are available using the connection string in the
CuratorConfig.
C
- check() - Method in class org.kiwiproject.curator.health.CuratorHealthCheck
-
Check health of a
CuratorFramework. - closeIfStarted(CuratorFramework) - Method in class org.kiwiproject.curator.CuratorFrameworkHelper
-
Closes the specified Curator client, if it is in the STARTED state.
- closeQuietly(CuratorFramework) - Method in class org.kiwiproject.curator.CuratorFrameworkHelper
-
Closes the specified Curator client, if it is non-null and in the STARTED state.
- copyOf(CuratorConfig) - Static method in class org.kiwiproject.curator.config.CuratorConfig
-
Create a copy of the original CuratorConfig.
- copyOfWithZkConnectString(CuratorConfig, String) - Static method in class org.kiwiproject.curator.config.CuratorConfig
-
Create a copy of the original CuratorConfig except with
newZkConnectStringas the ZooKeeper connect string. - createCuratorFramework(CuratorConfig) - Method in class org.kiwiproject.curator.CuratorFrameworkHelper
-
Creates a new
CuratorFrameworkinstance. - createInterProcessMutex(CuratorFramework, String) - Method in class org.kiwiproject.curator.CuratorLockHelper
-
Creates a Curator lock instance for the given path.
- CuratorBundle<C extends io.dropwizard.Configuration & CuratorConfigured> - Class in org.kiwiproject.curator
-
A Dropwizard bundle that creates a
CuratorFrameworkinstance, wrapped in a DropwizardManagedinstance. - CuratorBundle() - Constructor for class org.kiwiproject.curator.CuratorBundle
- CuratorConfig - Class in org.kiwiproject.curator.config
-
Configuration for Curator, which is mainly the ZooKeeper connection string along with some properties to configure the retry policy.
- CuratorConfig() - Constructor for class org.kiwiproject.curator.config.CuratorConfig
-
Create new instance using a default
ZooKeeperConfigProviderconfigured withCuratorConfig.DEFAULT_ZK_CONNECT_STRINGas the connect string. - CuratorConfig(ZooKeeperConfigProvider) - Constructor for class org.kiwiproject.curator.config.CuratorConfig
-
Create new instance using the given
ZooKeeperConfigProvider. - CuratorConfigured - Interface in org.kiwiproject.curator.config
-
This interface is intended to be implemented by a Dropwizard
Configurationclass, in order to make the intent clear that an application requires a Curator configuration and for consistency across applications. - CuratorFrameworkHelper - Class in org.kiwiproject.curator
-
Helper class for managing the lifecycle of
CuratorFrameworkinstances. - CuratorFrameworkHelper() - Constructor for class org.kiwiproject.curator.CuratorFrameworkHelper
- CuratorHealthCheck - Class in org.kiwiproject.curator.health
-
A Dropwizard Metrics health check for a
CuratorFrameworkinstance. - CuratorHealthCheck() - Constructor for class org.kiwiproject.curator.health.CuratorHealthCheck
- CuratorListeners - Class in org.kiwiproject.curator.listener
-
Utilities related to Curator listener classes.
- CuratorListeners() - Constructor for class org.kiwiproject.curator.listener.CuratorListeners
- CuratorLockHelper - Class in org.kiwiproject.curator
-
Helper class for creating and managing Curator locks, and converting timeouts and exceptions thrown by Curator into
LockAcquisitionExceptions. - CuratorLockHelper() - Constructor for class org.kiwiproject.curator.CuratorLockHelper
- CuratorStartupFailureException - Exception in org.kiwiproject.curator.exception
-
Exception class indicating there
- CuratorStartupFailureException() - Constructor for exception org.kiwiproject.curator.exception.CuratorStartupFailureException
- CuratorStartupFailureException(String) - Constructor for exception org.kiwiproject.curator.exception.CuratorStartupFailureException
- CuratorStartupFailureException(String, Throwable) - Constructor for exception org.kiwiproject.curator.exception.CuratorStartupFailureException
- CuratorStartupFailureException(Throwable) - Constructor for exception org.kiwiproject.curator.exception.CuratorStartupFailureException
D
- DEFAULT_BASE_SLEEP_MS - Static variable in class org.kiwiproject.curator.config.CuratorConfig
-
Default for base sleep milliseconds.
- DEFAULT_CONNECTION_TIMEOUT_MS - Static variable in class org.kiwiproject.curator.config.CuratorConfig
-
Default connection timeout when creating new
CuratorFrameworkinstances. - DEFAULT_HEALTH_CHECK_NAME - Static variable in class org.kiwiproject.curator.config.CuratorConfig
-
Default health check name.
- DEFAULT_MAX_RETRIES - Static variable in class org.kiwiproject.curator.config.CuratorConfig
-
Default is 29, because (private) max value in
ExponentialBackoffRetryis 29. - DEFAULT_MAX_SLEEP_SECONDS - Static variable in class org.kiwiproject.curator.config.CuratorConfig
-
Default for max sleep milliseconds.
- DEFAULT_SESSION_TIMEOUT_MS - Static variable in class org.kiwiproject.curator.config.CuratorConfig
-
Default session timeout when creating new
CuratorFrameworkinstances. - DEFAULT_ZK_CONNECT_STRING - Static variable in class org.kiwiproject.curator.config.CuratorConfig
-
We default to localhost:2181 but clearly this will not be useful in most production environments.
- descriptionOf(CuratorEvent) - Static method in class org.kiwiproject.curator.listener.CuratorListeners
-
Provide a human-readable description of a Curator event.
G
- getClient() - Method in class org.kiwiproject.curator.CuratorBundle
-
Once the bundle has been run, this will return the
CuratorFramework. - getCuratorConfig() - Method in interface org.kiwiproject.curator.config.CuratorConfigured
- getManagedClient() - Method in class org.kiwiproject.curator.CuratorBundle
-
Once the bundle has been run, this will return the
ManagedCuratorFramework. - getUnderlyingClient() - Method in class org.kiwiproject.curator.ManagedCuratorFramework
- getZkConnectString() - Method in class org.kiwiproject.curator.config.CuratorConfig
-
Return the ZooKeeper connect string using an explicitly configured value, or using the resolution of the
ZooKeeperConfigProviderin this instance.
L
- LockAcquisitionException - Exception in org.kiwiproject.curator.exception
-
Exception class indicating a failure to obtain a ZooKeeper lock.
- LockAcquisitionException() - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionException
- LockAcquisitionException(String) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionException
- LockAcquisitionException(String, Throwable) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionException
- LockAcquisitionException(Throwable) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionException
- LockAcquisitionFailureException - Exception in org.kiwiproject.curator.exception
-
Exception class indicating that an exception was thrown by Curator while trying to obtain a ZooKeeper lock.
- LockAcquisitionFailureException() - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionFailureException
- LockAcquisitionFailureException(String) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionFailureException
- LockAcquisitionFailureException(String, Throwable) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionFailureException
- LockAcquisitionFailureException(Throwable) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionFailureException
- LockAcquisitionTimeoutException - Exception in org.kiwiproject.curator.exception
-
Exception class indicating that a timeout occurred trying to obtain a ZooKeeper lock.
- LockAcquisitionTimeoutException() - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionTimeoutException
- LockAcquisitionTimeoutException(String) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionTimeoutException
- LockAcquisitionTimeoutException(String, Throwable) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionTimeoutException
- LockAcquisitionTimeoutException(Throwable) - Constructor for exception org.kiwiproject.curator.exception.LockAcquisitionTimeoutException
M
- ManagedCuratorFramework - Class in org.kiwiproject.curator
-
A Dropwizard
Managedthat wraps aCuratorFrameworkinstance, starting and stopping it automatically with the application. - ManagedCuratorFramework(CuratorFramework) - Constructor for class org.kiwiproject.curator.ManagedCuratorFramework
-
Create new instance that will manage the given client.
O
- org.kiwiproject.curator - package org.kiwiproject.curator
- org.kiwiproject.curator.config - package org.kiwiproject.curator.config
- org.kiwiproject.curator.exception - package org.kiwiproject.curator.exception
- org.kiwiproject.curator.health - package org.kiwiproject.curator.health
- org.kiwiproject.curator.listener - package org.kiwiproject.curator.listener
- org.kiwiproject.curator.zookeeper - package org.kiwiproject.curator.zookeeper
R
- releaseLockQuietlyIfHeld(InterProcessLock) - Method in class org.kiwiproject.curator.CuratorLockHelper
-
Release the given lock quietly (ignoring exceptions) if the current process holds it.
- releaseQuietly(InterProcessLock) - Method in class org.kiwiproject.curator.CuratorLockHelper
-
Release the given lock, ignoring if
nullor if any exception occurs releasing the lock. - run(C, Environment) - Method in class org.kiwiproject.curator.CuratorBundle
S
- start() - Method in class org.kiwiproject.curator.ManagedCuratorFramework
-
Starts the managed
CuratorFrameworkclient if it is not started. - startCuratorFramework(CuratorConfig) - Method in class org.kiwiproject.curator.CuratorFrameworkHelper
-
Creates and starts a new {Kink CuratorFramework} instance.
- stop() - Method in class org.kiwiproject.curator.ManagedCuratorFramework
-
Stops the managed
CuratorFrameworkclient if it is started.
T
- toString() - Method in class org.kiwiproject.curator.ManagedCuratorFramework
Z
- ZooKeeperAvailabilityChecker - Class in org.kiwiproject.curator.zookeeper
-
Utility for checking whether ZooKeeper servers are available.
- ZooKeeperAvailabilityChecker() - Constructor for class org.kiwiproject.curator.zookeeper.ZooKeeperAvailabilityChecker
-
Create new instance using a default
SocketChecker. - ZooKeeperAvailabilityChecker(SocketChecker) - Constructor for class org.kiwiproject.curator.zookeeper.ZooKeeperAvailabilityChecker
-
Create new instance using the given
SocketChecker.
All Classes All Packages