Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
M
N
O
P
R
S
T
V
Z
A
addCount(String, int)
- Method in interface org.apache.curator.drivers.
TracerDriver
Add to a named counter
addCount(String, int)
- Method in class org.apache.curator.utils.
DefaultTracerDriver
addTrace(String, long, TimeUnit)
- Method in interface org.apache.curator.drivers.
TracerDriver
Record the given trace event
addTrace(String, long, TimeUnit)
- Method in class org.apache.curator.utils.
DefaultTracerDriver
allowRetry(int, long, RetrySleeper)
- Method in class org.apache.curator.retry.
RetryUntilElapsed
allowRetry(int, long, RetrySleeper)
- Method in interface org.apache.curator.
RetryPolicy
Called when an operation has failed for some reason.
B
blockUntilConnectedOrTimedOut()
- Method in class org.apache.curator.
CuratorZookeeperClient
This method blocks until the connection to ZK succeeds.
BoundedExponentialBackoffRetry
- Class in
org.apache.curator.retry
Retry policy that retries a set number of times with an increasing (up to a maximum bound) sleep time between retries
BoundedExponentialBackoffRetry(int, int, int)
- Constructor for class org.apache.curator.retry.
BoundedExponentialBackoffRetry
C
callWithRetry(CuratorZookeeperClient, Callable<T>)
- Static method in class org.apache.curator.
RetryLoop
Convenience utility: creates a retry loop calling the given proc and retrying if needed
callWithRetry(CuratorZookeeperClient, SessionFailRetryLoop.Mode, Callable<T>)
- Static method in class org.apache.curator.
SessionFailRetryLoop
Convenience utility: creates a "session fail" retry loop calling the given proc
close()
- Method in class org.apache.curator.
CuratorZookeeperClient
Close the client
close()
- Method in interface org.apache.curator.ensemble.
EnsembleProvider
Curator will call this method when
CuratorZookeeperClient.close()
is called
close()
- Method in class org.apache.curator.ensemble.exhibitor.
ExhibitorEnsembleProvider
close()
- Method in class org.apache.curator.ensemble.fixed.
FixedEnsembleProvider
close()
- Method in class org.apache.curator.
SessionFailRetryLoop
Must be called in a finally handler when done with the loop
close()
- Method in class org.apache.curator.utils.
CloseableExecutorService
Closes any tasks currently in progress
CloseableExecutorService
- Class in
org.apache.curator.utils
Decoration on an ExecutorService that tracks created futures and provides a method to close futures created via this class
CloseableExecutorService(ExecutorService)
- Constructor for class org.apache.curator.utils.
CloseableExecutorService
CloseableExecutorService.InternalFutureTask
<
T
> - Class in
org.apache.curator.utils
CloseableScheduledExecutorService
- Class in
org.apache.curator.utils
Decoration on an ScheduledExecutorService that tracks created futures and provides a method to close futures created via this class
CloseableScheduledExecutorService(ScheduledExecutorService)
- Constructor for class org.apache.curator.utils.
CloseableScheduledExecutorService
commit()
- Method in class org.apache.curator.
TimeTrace
Record the elapsed time
CuratorZookeeperClient
- Class in
org.apache.curator
A wrapper around Zookeeper that takes care of some low-level housekeeping
CuratorZookeeperClient(String, int, int, Watcher, RetryPolicy)
- Constructor for class org.apache.curator.
CuratorZookeeperClient
CuratorZookeeperClient(EnsembleProvider, int, int, Watcher, RetryPolicy)
- Constructor for class org.apache.curator.
CuratorZookeeperClient
CuratorZookeeperClient(ZookeeperFactory, EnsembleProvider, int, int, Watcher, RetryPolicy, boolean)
- Constructor for class org.apache.curator.
CuratorZookeeperClient
D
DebugUtils
- Class in
org.apache.curator.utils
DefaultExhibitorRestClient
- Class in
org.apache.curator.ensemble.exhibitor
DefaultExhibitorRestClient()
- Constructor for class org.apache.curator.ensemble.exhibitor.
DefaultExhibitorRestClient
DefaultExhibitorRestClient(boolean)
- Constructor for class org.apache.curator.ensemble.exhibitor.
DefaultExhibitorRestClient
DefaultTracerDriver
- Class in
org.apache.curator.utils
Default tracer driver
DefaultTracerDriver()
- Constructor for class org.apache.curator.utils.
DefaultTracerDriver
DefaultZookeeperFactory
- Class in
org.apache.curator.utils
DefaultZookeeperFactory()
- Constructor for class org.apache.curator.utils.
DefaultZookeeperFactory
done()
- Method in class org.apache.curator.utils.
CloseableExecutorService.InternalFutureTask
E
EnsembleProvider
- Interface in
org.apache.curator.ensemble
Abstraction that provides the ZooKeeper connection string
ensure(CuratorZookeeperClient)
- Method in class org.apache.curator.utils.
EnsurePath
First time, synchronizes and makes sure all nodes in the path are created.
EnsurePath
- Class in
org.apache.curator.utils
Utility to ensure that a particular path is created.
EnsurePath(String)
- Constructor for class org.apache.curator.utils.
EnsurePath
excludingLast()
- Method in class org.apache.curator.utils.
EnsurePath
Returns a view of this EnsurePath instance that does not make the last node.
ExhibitorEnsembleProvider
- Class in
org.apache.curator.ensemble.exhibitor
Ensemble provider that polls a cluster of Exhibitor (https://github.com/Netflix/exhibitor) instances for the connection string.
ExhibitorEnsembleProvider(Exhibitors, ExhibitorRestClient, String, int, RetryPolicy)
- Constructor for class org.apache.curator.ensemble.exhibitor.
ExhibitorEnsembleProvider
ExhibitorRestClient
- Interface in
org.apache.curator.ensemble.exhibitor
Exhibitors
- Class in
org.apache.curator.ensemble.exhibitor
POJO for specifying the cluster of Exhibitor instances
Exhibitors(Collection<String>, int, Exhibitors.BackupConnectionStringProvider)
- Constructor for class org.apache.curator.ensemble.exhibitor.
Exhibitors
Exhibitors.BackupConnectionStringProvider
- Interface in
org.apache.curator.ensemble.exhibitor
ExponentialBackoffRetry
- Class in
org.apache.curator.retry
Retry policy that retries a set number of times with increasing sleep time between retries
ExponentialBackoffRetry(int, int)
- Constructor for class org.apache.curator.retry.
ExponentialBackoffRetry
ExponentialBackoffRetry(int, int, int)
- Constructor for class org.apache.curator.retry.
ExponentialBackoffRetry
F
FixedEnsembleProvider
- Class in
org.apache.curator.ensemble.fixed
Standard ensemble provider that wraps a fixed connection string
FixedEnsembleProvider(String)
- Constructor for class org.apache.curator.ensemble.fixed.
FixedEnsembleProvider
The connection string to use
fixForNamespace(String, String)
- Static method in class org.apache.curator.utils.
ZKPaths
Apply the namespace to the given path
G
getBackupConnectionString()
- Method in interface org.apache.curator.ensemble.exhibitor.
Exhibitors.BackupConnectionStringProvider
getBackupConnectionString()
- Method in class org.apache.curator.ensemble.exhibitor.
Exhibitors
getBaseSleepTimeMs()
- Method in class org.apache.curator.retry.
ExponentialBackoffRetry
getConnectionString()
- Method in interface org.apache.curator.ensemble.
EnsembleProvider
Return the current connection string to use.
getConnectionString()
- Method in class org.apache.curator.ensemble.exhibitor.
ExhibitorEnsembleProvider
getConnectionString()
- Method in class org.apache.curator.ensemble.fixed.
FixedEnsembleProvider
getCurrentConnectionString()
- Method in class org.apache.curator.
CuratorZookeeperClient
Returns the current known connection string - not guaranteed to be correct value at any point in the future.
getDefaultRetrySleeper()
- Static method in class org.apache.curator.
RetryLoop
Returns the default retry sleeper
getHostnames()
- Method in class org.apache.curator.ensemble.exhibitor.
Exhibitors
getMaxSleepTimeMs()
- Method in class org.apache.curator.retry.
BoundedExponentialBackoffRetry
getNode()
- Method in class org.apache.curator.utils.
ZKPaths.PathAndNode
getNodeFromPath(String)
- Static method in class org.apache.curator.utils.
ZKPaths
Given a full path, return the node name.
getPath()
- Method in class org.apache.curator.utils.
ZKPaths.PathAndNode
getPathAndNode(String)
- Static method in class org.apache.curator.utils.
ZKPaths
Given a full path, return the node name and its path.
getRaw(String, int, String, String)
- Method in class org.apache.curator.ensemble.exhibitor.
DefaultExhibitorRestClient
getRaw(String, int, String, String)
- Method in interface org.apache.curator.ensemble.exhibitor.
ExhibitorRestClient
Connect to the given Exhibitor and return the raw result
getRestPort()
- Method in class org.apache.curator.ensemble.exhibitor.
Exhibitors
getRetryPolicy()
- Method in class org.apache.curator.
CuratorZookeeperClient
Return the current retry policy
getSleepTimeMs(int, long)
- Method in class org.apache.curator.retry.
BoundedExponentialBackoffRetry
getSleepTimeMs(int, long)
- Method in class org.apache.curator.retry.
ExponentialBackoffRetry
getSleepTimeMs(int, long)
- Method in class org.apache.curator.retry.
RetryNTimes
getSleepTimeMs(int, long)
- Method in class org.apache.curator.retry.
RetryUntilElapsed
getSortedChildren(ZooKeeper, String)
- Static method in class org.apache.curator.utils.
ZKPaths
Return the children of the given path sorted by sequence number
getTracerDriver()
- Method in class org.apache.curator.
CuratorZookeeperClient
Return the current tracing driver
getZooKeeper()
- Method in class org.apache.curator.
CuratorZookeeperClient
Return the managed ZK instance.
I
isConnected()
- Method in class org.apache.curator.
CuratorZookeeperClient
Returns true if the client is current connected
isOpen
- Variable in class org.apache.curator.utils.
CloseableExecutorService
isRetryException(Throwable)
- Static method in class org.apache.curator.
RetryLoop
Utility - return true if the given exception is retry-able
isShutdown()
- Method in class org.apache.curator.utils.
CloseableExecutorService
Returns
true
if this executor has been shut down.
M
makePath(String, String)
- Static method in class org.apache.curator.utils.
ZKPaths
Given a parent path and a child node, create a combined full path
markComplete()
- Method in class org.apache.curator.
RetryLoop
Call this when your operation has successfully completed
mkdirs(ZooKeeper, String)
- Static method in class org.apache.curator.utils.
ZKPaths
Make sure all the nodes in the path are created.
mkdirs(ZooKeeper, String, boolean)
- Static method in class org.apache.curator.utils.
ZKPaths
Make sure all the nodes in the path are created.
N
newFixedThreadPool(int, String)
- Static method in class org.apache.curator.utils.
ThreadUtils
newFixedThreadScheduledPool(int, String)
- Static method in class org.apache.curator.utils.
ThreadUtils
newRetryLoop()
- Method in class org.apache.curator.
CuratorZookeeperClient
Return a new retry loop.
newSessionFailRetryLoop(SessionFailRetryLoop.Mode)
- Method in class org.apache.curator.
CuratorZookeeperClient
Return a new "session fail" retry loop.
newSingleThreadExecutor(String)
- Static method in class org.apache.curator.utils.
ThreadUtils
newSingleThreadScheduledExecutor(String)
- Static method in class org.apache.curator.utils.
ThreadUtils
newThreadFactory(String)
- Static method in class org.apache.curator.utils.
ThreadUtils
newZooKeeper(String, int, Watcher, boolean)
- Method in class org.apache.curator.utils.
DefaultZookeeperFactory
newZooKeeper(String, int, Watcher, boolean)
- Method in interface org.apache.curator.utils.
ZookeeperFactory
Allocate a new ZooKeeper instance
O
org.apache.curator
- package org.apache.curator
org.apache.curator.drivers
- package org.apache.curator.drivers
org.apache.curator.ensemble
- package org.apache.curator.ensemble
org.apache.curator.ensemble.exhibitor
- package org.apache.curator.ensemble.exhibitor
org.apache.curator.ensemble.fixed
- package org.apache.curator.ensemble.fixed
org.apache.curator.retry
- package org.apache.curator.retry
org.apache.curator.utils
- package org.apache.curator.utils
P
poll()
- Method in class org.apache.curator.ensemble.exhibitor.
ExhibitorEnsembleProvider
pollForInitialEnsemble()
- Method in class org.apache.curator.ensemble.exhibitor.
ExhibitorEnsembleProvider
Can be called prior to starting the Curator instance to set the current connection string
PROPERTY_DONT_LOG_CONNECTION_ISSUES
- Static variable in class org.apache.curator.utils.
DebugUtils
PROPERTY_LOG_EVENTS
- Static variable in class org.apache.curator.utils.
DebugUtils
R
RetryLoop
- Class in
org.apache.curator
Mechanism to perform an operation on Zookeeper that is safe against disconnections and "recoverable" errors.
RetryNTimes
- Class in
org.apache.curator.retry
Retry policy that retries a max number of times
RetryNTimes(int, int)
- Constructor for class org.apache.curator.retry.
RetryNTimes
RetryOneTime
- Class in
org.apache.curator.retry
A retry policy that retries only once
RetryOneTime(int)
- Constructor for class org.apache.curator.retry.
RetryOneTime
RetryPolicy
- Interface in
org.apache.curator
Abstracts the policy to use when retrying connections
RetrySleeper
- Interface in
org.apache.curator
Abstraction for retry policies to sleep
RetryUntilElapsed
- Class in
org.apache.curator.retry
A retry policy that retries until a given amount of time elapses
RetryUntilElapsed(int, int)
- Constructor for class org.apache.curator.retry.
RetryUntilElapsed
S
schedule(Runnable, long, TimeUnit)
- Method in class org.apache.curator.utils.
CloseableScheduledExecutorService
Creates and executes a one-shot action that becomes enabled after the given delay.
scheduleWithFixedDelay(Runnable, long, long, TimeUnit)
- Method in class org.apache.curator.utils.
CloseableScheduledExecutorService
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next.
SessionFailRetryLoop
- Class in
org.apache.curator
See
RetryLoop
for the main details on retry loops.
SessionFailRetryLoop.Mode
- Enum in
org.apache.curator
SessionFailRetryLoop.SessionFailedException
- Exception in
org.apache.curator
SessionFailRetryLoop.SessionFailedException()
- Constructor for exception org.apache.curator.
SessionFailRetryLoop.SessionFailedException
setExhibitors(Exhibitors)
- Method in class org.apache.curator.ensemble.exhibitor.
ExhibitorEnsembleProvider
Change the set of exhibitors to poll
setRetryPolicy(RetryPolicy)
- Method in class org.apache.curator.
CuratorZookeeperClient
Change the retry policy
setTracerDriver(TracerDriver)
- Method in class org.apache.curator.
CuratorZookeeperClient
Change the tracing driver
shouldContinue()
- Method in class org.apache.curator.
RetryLoop
If true is returned, make an attempt at the operation
shouldContinue()
- Method in class org.apache.curator.
SessionFailRetryLoop
If true is returned, make an attempt at the set of operations
shouldRetry(int)
- Static method in class org.apache.curator.
RetryLoop
Utility - return true if the given Zookeeper result code is retry-able
sleepFor(long, TimeUnit)
- Method in interface org.apache.curator.
RetrySleeper
Sleep for the given time
start()
- Method in class org.apache.curator.
CuratorZookeeperClient
Must be called after construction
start()
- Method in interface org.apache.curator.ensemble.
EnsembleProvider
Curator will call this method when
CuratorZookeeperClient.start()
is called
start()
- Method in class org.apache.curator.ensemble.exhibitor.
ExhibitorEnsembleProvider
start()
- Method in class org.apache.curator.ensemble.fixed.
FixedEnsembleProvider
start()
- Method in class org.apache.curator.
SessionFailRetryLoop
SessionFailRetryLoop must be started
startTracer(String)
- Method in class org.apache.curator.
CuratorZookeeperClient
Start a new tracer
submit(Callable<V>)
- Method in class org.apache.curator.utils.
CloseableExecutorService
Submits a value-returning task for execution and returns a Future representing the pending results of the task.
submit(Runnable)
- Method in class org.apache.curator.utils.
CloseableExecutorService
Submits a Runnable task for execution and returns a Future representing that task.
T
takeException(Exception)
- Method in class org.apache.curator.
RetryLoop
Pass any caught exceptions here
takeException(Exception)
- Method in class org.apache.curator.
SessionFailRetryLoop
Pass any caught exceptions here
ThreadUtils
- Class in
org.apache.curator.utils
ThreadUtils()
- Constructor for class org.apache.curator.utils.
ThreadUtils
TimeTrace
- Class in
org.apache.curator
Utility to time a method or portion of code
TimeTrace(String, TracerDriver)
- Constructor for class org.apache.curator.
TimeTrace
Create and start a timer
TracerDriver
- Interface in
org.apache.curator.drivers
Mechanism for timing methods and recording counters
V
valueOf(String)
- Static method in enum org.apache.curator.
SessionFailRetryLoop.Mode
Returns the enum constant of this type with the specified name.
values()
- Static method in enum org.apache.curator.
SessionFailRetryLoop.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
Z
ZKPaths
- Class in
org.apache.curator.utils
ZKPaths.PathAndNode
- Class in
org.apache.curator.utils
ZKPaths.PathAndNode(String, String)
- Constructor for class org.apache.curator.utils.
ZKPaths.PathAndNode
ZookeeperFactory
- Interface in
org.apache.curator.utils
A
B
C
D
E
F
G
I
M
N
O
P
R
S
T
V
Z
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2011-2013
The Apache Software Foundation
. All Rights Reserved.