|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IZKClient
| Method Summary | |
|---|---|
IZKClient |
chroot(java.lang.String path)
|
void |
create(java.lang.String path,
java.lang.String data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
|
void |
createBytesNode(java.lang.String path,
byte[] data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
|
void |
createBytesNodeWithParents(java.lang.String path,
byte[] data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
Creates the parents if they don't exist |
org.apache.zookeeper.data.Stat |
createOrSetWithParents(java.lang.String path,
java.lang.String data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
Tries to create first and if the node exists, then does a setData. |
void |
createWithParents(java.lang.String path,
java.lang.String data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
Creates the parents if they don't exist |
void |
delete(java.lang.String path)
|
void |
deleteWithChildren(java.lang.String path)
delete all the children if they exist |
org.apache.zookeeper.data.Stat |
exists(java.lang.String path)
|
java.util.List<java.lang.String> |
getAllChildren(java.lang.String path)
Returns all the children (recursively) of the provided path. |
java.util.List<java.lang.String> |
getChildren(java.lang.String path)
|
byte[] |
getData(java.lang.String path)
|
java.lang.String |
getStringData(java.lang.String path)
|
ZKData<byte[]> |
getZKByteData(java.lang.String path)
Returns both the data as a byte[] as well as the stat |
ZKData<byte[]> |
getZKByteData(java.lang.String path,
org.apache.zookeeper.Watcher watcher)
Returns both the data as a byte[] as well as the stat (and sets a watcher if not null) |
ZKChildren |
getZKChildren(java.lang.String path,
org.apache.zookeeper.Watcher watcher)
|
ZKData<java.lang.String> |
getZKStringData(java.lang.String path)
Returns both the data as a string as well as the stat |
ZKData<java.lang.String> |
getZKStringData(java.lang.String path,
org.apache.zookeeper.Watcher watcher)
Returns both the data as a string as well as the stat (and sets a watcher if not null) |
boolean |
isConnected()
|
void |
registerListener(LifecycleListener listener)
Registers a listener for lifecycle management. |
void |
removeListener(LifecycleListener listener)
Removes a listener previously set with registerListener(LifecycleListener) |
org.apache.zookeeper.data.Stat |
setByteData(java.lang.String path,
byte[] data)
|
org.apache.zookeeper.data.Stat |
setData(java.lang.String path,
java.lang.String data)
|
| Methods inherited from interface org.linkedin.zookeeper.client.IZooKeeper |
|---|
addAuthInfo, close, create, create, delete, delete, exists, exists, exists, exists, getACL, getACL, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getData, getData, getData, getData, getSessionId, getSessionPasswd, getSessionTimeout, getState, register, setACL, setACL, setData, setData, sync |
| Method Detail |
|---|
void registerListener(LifecycleListener listener)
listener - the listenervoid removeListener(LifecycleListener listener)
registerListener(LifecycleListener)
listener - IZKClient chroot(java.lang.String path)
boolean isConnected()
true if connected
org.apache.zookeeper.data.Stat exists(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
java.util.List<java.lang.String> getChildren(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
ZKChildren getZKChildren(java.lang.String path,
org.apache.zookeeper.Watcher watcher)
throws org.apache.zookeeper.KeeperException,
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
java.util.List<java.lang.String> getAllChildren(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
getChildren(String)
the result is relative to path.
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
void create(java.lang.String path,
java.lang.String data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
void createBytesNode(java.lang.String path,
byte[] data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
void createWithParents(java.lang.String path,
java.lang.String data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
void createBytesNodeWithParents(java.lang.String path,
byte[] data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
byte[] getData(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
java.lang.String getStringData(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
ZKData<java.lang.String> getZKStringData(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
ZKData<java.lang.String> getZKStringData(java.lang.String path,
org.apache.zookeeper.Watcher watcher)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
ZKData<byte[]> getZKByteData(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
ZKData<byte[]> getZKByteData(java.lang.String path,
org.apache.zookeeper.Watcher watcher)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
org.apache.zookeeper.data.Stat setData(java.lang.String path,
java.lang.String data)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
org.apache.zookeeper.data.Stat setByteData(java.lang.String path,
byte[] data)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
org.apache.zookeeper.data.Stat createOrSetWithParents(java.lang.String path,
java.lang.String data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
org.apache.zookeeper.CreateMode createMode)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
null if create worked, otherwise the result of setData
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
void delete(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
void deleteWithChildren(java.lang.String path)
throws java.lang.InterruptedException,
org.apache.zookeeper.KeeperException
java.lang.InterruptedException
org.apache.zookeeper.KeeperException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||