Skip navigation links
A C F G L N O S V 

A

Adapter() - Constructor for class com.neovisionaries.zookeeper.LeaderElection.Adapter
 
Adapter() - Constructor for class com.neovisionaries.zookeeper.NodeReader.Adapter
 

C

com.neovisionaries.zookeeper - package com.neovisionaries.zookeeper
 
createReader() - Method in class com.neovisionaries.zookeeper.LeaderElection
Create a NodeReader instance to read the content of the znode that is used for leader election.

F

finish() - Method in class com.neovisionaries.zookeeper.LeaderElection
Mark as 'shouldFinish' not to schedule ZooKeeper callbacks any further.
finish() - Method in class com.neovisionaries.zookeeper.NodeReader
Mark as 'shouldFinish' not to schedule ZooKeeper callbacks any further.

G

getAclList() - Method in class com.neovisionaries.zookeeper.LeaderElection
Get the ACL list used for creation of the znode for leader election.
getDefaultAclList() - Method in class com.neovisionaries.zookeeper.LeaderElection
Get the default ACL list (OPEN_ACL_UNSAFE).
getDefaultPath() - Method in class com.neovisionaries.zookeeper.LeaderElection
Get the default path ("/leader").
getId() - Method in class com.neovisionaries.zookeeper.LeaderElection
Get the ID that represents this candidate in leader election.
getListener() - Method in class com.neovisionaries.zookeeper.LeaderElection
Get the listener for leader election events.
getListener() - Method in class com.neovisionaries.zookeeper.NodeReader
Get the listener.
getPath() - Method in class com.neovisionaries.zookeeper.LeaderElection
Get the znode path used for leader election.
getPath() - Method in class com.neovisionaries.zookeeper.NodeReader
Get the path of the target znode to read.
getState() - Method in class com.neovisionaries.zookeeper.LeaderElection
Get the current state.
getZooKeeper() - Method in class com.neovisionaries.zookeeper.LeaderElection
Get the ZooKeeper instance used for leader election.
getZooKeeper() - Method in class com.neovisionaries.zookeeper.NodeReader
Get the ZooKeeper instance to read the target znode.

L

LeaderElection - Class in com.neovisionaries.zookeeper
An implementation of a "leader election" algorithm using ZooKeeper.
LeaderElection() - Constructor for class com.neovisionaries.zookeeper.LeaderElection
 
LeaderElection(ZooKeeper) - Constructor for class com.neovisionaries.zookeeper.LeaderElection
 
LeaderElection.Adapter - Class in com.neovisionaries.zookeeper
An empty implementation of LeaderElection.Listener.
LeaderElection.Listener - Interface in com.neovisionaries.zookeeper
The listener to receive leader election events.
LeaderElection.State - Enum in com.neovisionaries.zookeeper
Leader election state.

N

NodeReader - Class in com.neovisionaries.zookeeper
Znode reader.
NodeReader() - Constructor for class com.neovisionaries.zookeeper.NodeReader
 
NodeReader(ZooKeeper) - Constructor for class com.neovisionaries.zookeeper.NodeReader
 
NodeReader.Adapter - Class in com.neovisionaries.zookeeper
An empty implementation of NodeReader.Listener interface.
NodeReader.Listener - Interface in com.neovisionaries.zookeeper
Listener interface to receive the result of reading.

O

onFinish(LeaderElection) - Method in class com.neovisionaries.zookeeper.LeaderElection.Adapter
 
onFinish(LeaderElection) - Method in interface com.neovisionaries.zookeeper.LeaderElection.Listener
Called when it is detected that callback should not be called any more.
onGaveUp(NodeReader) - Method in class com.neovisionaries.zookeeper.NodeReader.Adapter
 
onGaveUp(NodeReader) - Method in interface com.neovisionaries.zookeeper.NodeReader.Listener
Called when the NodeReader gave up reading the target znode.
onLose(LeaderElection) - Method in class com.neovisionaries.zookeeper.LeaderElection.Adapter
 
onLose(LeaderElection) - Method in interface com.neovisionaries.zookeeper.LeaderElection.Listener
Called when it is detected that another candidate is the leader.
onRead(NodeReader, byte[], Stat) - Method in class com.neovisionaries.zookeeper.NodeReader.Adapter
 
onRead(NodeReader, byte[], Stat) - Method in interface com.neovisionaries.zookeeper.NodeReader.Listener
Called when the content of the target znode was read successfully.
onStateChanged(LeaderElection, LeaderElection.State, LeaderElection.State) - Method in class com.neovisionaries.zookeeper.LeaderElection.Adapter
 
onStateChanged(LeaderElection, LeaderElection.State, LeaderElection.State) - Method in interface com.neovisionaries.zookeeper.LeaderElection.Listener
Called when the state of the leader election changed.
onVacant(LeaderElection) - Method in class com.neovisionaries.zookeeper.LeaderElection.Adapter
 
onVacant(LeaderElection) - Method in interface com.neovisionaries.zookeeper.LeaderElection.Listener
Called when it is detected that a leader does not exist.
onWin(LeaderElection) - Method in class com.neovisionaries.zookeeper.LeaderElection.Adapter
 
onWin(LeaderElection) - Method in interface com.neovisionaries.zookeeper.LeaderElection.Listener
Called when this candidate won a leader election.

S

setAclList(List<ACL>) - Method in class com.neovisionaries.zookeeper.LeaderElection
Set the ACL list used for creation of the znode for leader election.
setId(String) - Method in class com.neovisionaries.zookeeper.LeaderElection
Set the ID that represents this candidate in leader election.
setListener(LeaderElection.Listener) - Method in class com.neovisionaries.zookeeper.LeaderElection
Set the listener for leader election events.
setListener(NodeReader.Listener) - Method in class com.neovisionaries.zookeeper.NodeReader
Set a listener.
setPath(String) - Method in class com.neovisionaries.zookeeper.LeaderElection
Set the znode path used for leader election.
setPath(String) - Method in class com.neovisionaries.zookeeper.NodeReader
Set the path of the target znode to read.
setZooKeeper(ZooKeeper) - Method in class com.neovisionaries.zookeeper.LeaderElection
Set the ZooKeeper instance used for leader election.
setZooKeeper(ZooKeeper) - Method in class com.neovisionaries.zookeeper.NodeReader
Set the ZooKeeper instance to read the target znode.
start() - Method in class com.neovisionaries.zookeeper.LeaderElection
Start leader election.
start() - Method in class com.neovisionaries.zookeeper.NodeReader
Start reading the target znode.

V

valueOf(String) - Static method in enum com.neovisionaries.zookeeper.LeaderElection.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.neovisionaries.zookeeper.LeaderElection.State
Returns an array containing the constants of this enum type, in the order they are declared.
A C F G L N O S V 
Skip navigation links

Copyright © 2015. All rights reserved.