A B C D E F G I L N O R S T U V W Z 

A

AbstractZKClient - Class in org.apache.twill.zookeeper
An abstract base implementation of ZKClient that simplifies implementation by providing forwarding for methods that are meant to be delegated to other methods.
AbstractZKClient() - Constructor for class org.apache.twill.zookeeper.AbstractZKClient
 
ACLData - Interface in org.apache.twill.zookeeper
Represents result of call to ZKClient.getACL(String).
addAuthInfo(String, byte[]) - Method in class org.apache.twill.zookeeper.ZKClientService.Builder
Adds an authorization information.
addConnectionWatcher(Watcher) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
addConnectionWatcher(Watcher) - Method in interface org.apache.twill.zookeeper.ZKClient
Adds a Watcher that will be called whenever connection state change.
addListener(Service.Listener, Executor) - Method in class org.apache.twill.zookeeper.ForwardingZKClientService
 

B

build() - Method in class org.apache.twill.zookeeper.ZKClientService.Builder
Creates an instance of ZKClientService with the settings of this builder.

C

create(String, byte[], CreateMode) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
create(String, byte[], CreateMode, boolean) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
create(String, byte[], CreateMode, Iterable<ACL>) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
create(String, byte[], CreateMode, boolean, Iterable<ACL>) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
create(String, byte[], CreateMode) - Method in interface org.apache.twill.zookeeper.ZKClient
Creates a path in zookeeper.
create(String, byte[], CreateMode, boolean) - Method in interface org.apache.twill.zookeeper.ZKClient
Creates a path in zookeeper.
create(String, byte[], CreateMode, Iterable<ACL>) - Method in interface org.apache.twill.zookeeper.ZKClient
Creates a path in zookeeper.
create(String, byte[], CreateMode, boolean, Iterable<ACL>) - Method in interface org.apache.twill.zookeeper.ZKClient
Creates a path in zookeeper, with given data and create mode.

D

delegate(ZKClient) - Static method in class org.apache.twill.zookeeper.ZKClientServices
Creates a ZKClientService from the given ZKClient if the given ZKClient is an instance of ZKClientService or is a ForwardingZKClient that eventually trace back to a delegate of type ZKClientService.
delegate(ZKClient, ZKClientService) - Static method in class org.apache.twill.zookeeper.ZKClientServices
Creates a ZKClientService that for all ZKClient methods would be delegated to another ZKClient, while methods for ZKClientService would be delegated to another ZKClientService, which the given ZKClient and ZKClientService could be different instances.
delete(String) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
delete(String, int) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
delete(String) - Method in interface org.apache.twill.zookeeper.ZKClient
Deletes the node of the given path without matching version.
delete(String, int) - Method in interface org.apache.twill.zookeeper.ZKClient
Deletes the node of the given path that match the given version.

E

exists(String) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
exists(String, Watcher) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
exists(String) - Method in interface org.apache.twill.zookeeper.ZKClient
Checks if the path exists.
exists(String, Watcher) - Method in interface org.apache.twill.zookeeper.ZKClient
Checks if the given path exists and leave a watcher on the node for watching creation/deletion/data changes on the node.
exponentialDelay(long, long, TimeUnit) - Static method in class org.apache.twill.zookeeper.RetryStrategies
Creates a RetryStrategy that will increase delay exponentially between each retries.

F

fixDelay(long, TimeUnit) - Static method in class org.apache.twill.zookeeper.RetryStrategies
Creates a RetryStrategy that imposes a fix delay between each retries.
ForwardingZKClient - Class in org.apache.twill.zookeeper
 
ForwardingZKClient(ZKClient) - Constructor for class org.apache.twill.zookeeper.ForwardingZKClient
 
ForwardingZKClientService - Class in org.apache.twill.zookeeper
 
ForwardingZKClientService(ZKClientService) - Constructor for class org.apache.twill.zookeeper.ForwardingZKClientService
 

G

getACL() - Method in interface org.apache.twill.zookeeper.ACLData
 
getACL(String) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
getACL(String) - Method in interface org.apache.twill.zookeeper.ZKClient
Retrieves the Stat and ACL being set at the given path.
getChildren(String) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
getChildren(String, Watcher) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
getChildren() - Method in interface org.apache.twill.zookeeper.NodeChildren
 
getChildren(String) - Method in interface org.apache.twill.zookeeper.ZKClient
Gets the list of children nodes under the given path.
getChildren(String, Watcher) - Method in interface org.apache.twill.zookeeper.ZKClient
Gets the list of children nodes under the given path and leave a watcher on the node for watching node deletion and children nodes creation/deletion.
getConnectString() - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
getConnectString() - Method in interface org.apache.twill.zookeeper.ZKClient
Returns the connection string used for connecting to Zookeeper.
getData(String) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
getData(String, Watcher) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
getData() - Method in interface org.apache.twill.zookeeper.NodeData
 
getData(String) - Method in interface org.apache.twill.zookeeper.ZKClient
Gets the data stored in the given path.
getData(String, Watcher) - Method in interface org.apache.twill.zookeeper.ZKClient
Gets the data stored in the given path and leave a watcher on the node for watching deletion/data changes on the node.
getDelegate() - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
getRequestPath() - Method in interface org.apache.twill.zookeeper.OperationFuture
 
getSessionId() - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
getSessionId() - Method in interface org.apache.twill.zookeeper.ZKClient
Returns the current Zookeeper session ID of this client.
getStat() - Method in interface org.apache.twill.zookeeper.ACLData
 
getStat() - Method in interface org.apache.twill.zookeeper.NodeChildren
 
getStat() - Method in interface org.apache.twill.zookeeper.NodeData
 
getZooKeeperSupplier() - Method in class org.apache.twill.zookeeper.ForwardingZKClientService
 
getZooKeeperSupplier() - Method in interface org.apache.twill.zookeeper.ZKClientService
Returns a Supplier of ZooKeeper that gives the current ZooKeeper in use at the moment when Supplier.get() get called.

I

ignoreError(OperationFuture<V>, Class<? extends KeeperException>, V) - Static method in class org.apache.twill.zookeeper.ZKOperations
Returns a new OperationFuture that the result will be the same as the given future, except that when the source future is having an exception matching the giving exception type, the errorResult will be set in to the returned OperationFuture.
isRunning() - Method in class org.apache.twill.zookeeper.ForwardingZKClientService
 

L

limit(int, RetryStrategy) - Static method in class org.apache.twill.zookeeper.RetryStrategies
Creates a RetryStrategy that retries maximum given number of times, with the actual delay behavior delegated to another RetryStrategy.

N

namespace(ZKClient, String) - Static method in class org.apache.twill.zookeeper.ZKClients
Creates a ZKClient that will add prefix namespace for every paths.
nextRetry(int, long, RetryStrategy.OperationType, String) - Method in interface org.apache.twill.zookeeper.RetryStrategy
Returns the number of milliseconds to wait before retrying the operation.
NodeChildren - Interface in org.apache.twill.zookeeper
NodeData - Interface in org.apache.twill.zookeeper
noRetry() - Static method in class org.apache.twill.zookeeper.RetryStrategies
 

O

of(String) - Static method in class org.apache.twill.zookeeper.ZKClientService.Builder
Creates a ZKClientService.Builder with the given ZooKeeper connection string.
OperationFuture<V> - Interface in org.apache.twill.zookeeper
A ListenableFuture that also provides the requested path for a operation.
org.apache.twill.zookeeper - package org.apache.twill.zookeeper
This package provides functionality for ZooKeeper interactions.

R

recursiveDelete(ZKClient, String) - Static method in class org.apache.twill.zookeeper.ZKOperations
Deletes the given path recursively.
retryOnFailure(ZKClient, RetryStrategy) - Static method in class org.apache.twill.zookeeper.ZKClients
Creates a ZKClient that will retry interim failure (e.g.
RetryStrategies - Class in org.apache.twill.zookeeper
Factory for creating common RetryStrategy implementation.
RetryStrategy - Interface in org.apache.twill.zookeeper
Provides strategy to use for operation retries.
RetryStrategy.OperationType - Enum in org.apache.twill.zookeeper
Defines ZooKeeper operation type that triggers retry.
reWatchOnExpire(ZKClient) - Static method in class org.apache.twill.zookeeper.ZKClients
Creates a ZKClient that will perform auto re-watch on all existing watches when reconnection happens after session expiration.

S

setACL(String, Iterable<ACL>) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
setACL(String, Iterable<ACL>, int) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
setACL(String, Iterable<ACL>) - Method in interface org.apache.twill.zookeeper.ZKClient
Sets the ACL of the given path if the path exists.
setACL(String, Iterable<ACL>, int) - Method in interface org.apache.twill.zookeeper.ZKClient
Sets the ACL of the given path if the path exists and version matched.
setConnectionWatcher(Watcher) - Method in class org.apache.twill.zookeeper.ZKClientService.Builder
Sets a Watcher that will be called whenever connection state change.
setData(String, byte[]) - Method in class org.apache.twill.zookeeper.AbstractZKClient
 
setData(String, byte[], int) - Method in class org.apache.twill.zookeeper.ForwardingZKClient
 
setData(String, byte[]) - Method in interface org.apache.twill.zookeeper.ZKClient
Sets the data for the given path without matching version.
setData(String, byte[], int) - Method in interface org.apache.twill.zookeeper.ZKClient
Sets the data for the given path that match the given version.
setSessionTimeout(int) - Method in class org.apache.twill.zookeeper.ZKClientService.Builder
Sets the client timeout to the give milliseconds.
start() - Method in class org.apache.twill.zookeeper.ForwardingZKClientService
 
startAndWait() - Method in class org.apache.twill.zookeeper.ForwardingZKClientService
 
state() - Method in class org.apache.twill.zookeeper.ForwardingZKClientService
 
stop() - Method in class org.apache.twill.zookeeper.ForwardingZKClientService
 
stopAndWait() - Method in class org.apache.twill.zookeeper.ForwardingZKClientService
 

T

timeLimit(long, TimeUnit, RetryStrategy) - Static method in class org.apache.twill.zookeeper.RetryStrategies
Creates a RetryStrategy that will retry until maximum amount of time has been passed since the request, with the actual delay behavior delegated to another RetryStrategy.

U

updated(T) - Method in interface org.apache.twill.zookeeper.ZKOperations.Callback
 
updated(NodeChildren) - Method in interface org.apache.twill.zookeeper.ZKOperations.ChildrenCallback
 
updated(NodeData) - Method in interface org.apache.twill.zookeeper.ZKOperations.DataCallback
Invoked when data of the node changed.

V

valueOf(String) - Static method in enum org.apache.twill.zookeeper.RetryStrategy.OperationType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.twill.zookeeper.RetryStrategy.OperationType
Returns an array containing the constants of this enum type, in the order they are declared.

W

watchChildren(ZKClient, String, ZKOperations.ChildrenCallback) - Static method in class org.apache.twill.zookeeper.ZKOperations
 
watchData(ZKClient, String, ZKOperations.DataCallback) - Static method in class org.apache.twill.zookeeper.ZKOperations
Watch for data changes of the given path.
watchDeleted(ZKClient, String) - Static method in class org.apache.twill.zookeeper.ZKOperations
 
watchDeleted(ZKClient, String, SettableFuture<String>) - Static method in class org.apache.twill.zookeeper.ZKOperations
 

Z

ZKClient - Interface in org.apache.twill.zookeeper
A ZooKeeper client that provides asynchronous zookeeper operations.
ZKClients - Class in org.apache.twill.zookeeper
Utility class to create ZKClient instances.
ZKClientService - Interface in org.apache.twill.zookeeper
A ZKClient that extends from Service to provide lifecycle management functions.
ZKClientService.Builder - Class in org.apache.twill.zookeeper
Builder for creating an implementation of ZKClientService.
ZKClientServices - Class in org.apache.twill.zookeeper
Provides static factory method to create ZKClientService with modified behaviors.
ZKOperations - Class in org.apache.twill.zookeeper
Collection of helper methods for common operations that usually needed when interacting with ZooKeeper.
ZKOperations.Callback<T> - Interface in org.apache.twill.zookeeper
Represents a ZK operation updates callback.
ZKOperations.ChildrenCallback - Interface in org.apache.twill.zookeeper
Interface for defining callback method to receive children nodes updates.
ZKOperations.DataCallback - Interface in org.apache.twill.zookeeper
Interface for defining callback method to receive node data updates.
A B C D E F G I L N O R S T U V W Z 

Copyright © 2013-2015 The Apache Software Foundation. All rights reserved.