public class ZooReaderWriter extends ZooReader implements IZooReaderWriter
IZooReaderWriter.Mutator
Constructor and Description |
---|
ZooReaderWriter(AccumuloConfiguration conf) |
ZooReaderWriter(String string,
int timeInMillis,
String secret) |
ZooReaderWriter(String string,
int timeInMillis,
String scheme,
byte[] auth) |
Modifier and Type | Method and Description |
---|---|
void |
delete(String path,
int version) |
static ZooReaderWriter |
getInstance(String zookeepers,
int timeInMillis,
String scheme,
byte[] auth) |
org.apache.zookeeper.ZooKeeper |
getZooKeeper() |
boolean |
isLockHeld(ZooUtil.LockID lockID) |
void |
mkdirs(String path) |
byte[] |
mutate(String zPath,
byte[] createValue,
List<org.apache.zookeeper.data.ACL> acl,
IZooReaderWriter.Mutator mutator) |
String |
putEphemeralData(String zPath,
byte[] data) |
String |
putEphemeralSequential(String zPath,
byte[] data) |
void |
putPersistentData(String zPath,
byte[] data,
int version,
ZooUtil.NodeExistsPolicy policy) |
boolean |
putPersistentData(String zPath,
byte[] data,
int version,
ZooUtil.NodeExistsPolicy policy,
List<org.apache.zookeeper.data.ACL> acls) |
boolean |
putPersistentData(String zPath,
byte[] data,
ZooUtil.NodeExistsPolicy policy)
Create a persistent node with the default ACL
|
String |
putPersistentSequential(String zPath,
byte[] data) |
boolean |
putPrivatePersistentData(String zPath,
byte[] data,
ZooUtil.NodeExistsPolicy policy) |
void |
recursiveCopyPersistent(String source,
String destination,
ZooUtil.NodeExistsPolicy policy) |
void |
recursiveDelete(String zPath,
ZooUtil.NodeMissingPolicy policy) |
exists, exists, getACL, getChildren, getChildren, getData, getData, getData, getRetryFactory, getSession, getStatus, getStatus, retryOrThrow, sync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sync
exists, exists, getACL, getChildren, getChildren, getData, getData, getData, getStatus, getStatus
public ZooReaderWriter(AccumuloConfiguration conf)
public org.apache.zookeeper.ZooKeeper getZooKeeper()
getZooKeeper
in interface IZooReaderWriter
getZooKeeper
in class ZooReader
public void recursiveDelete(String zPath, ZooUtil.NodeMissingPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
recursiveDelete
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public boolean putPersistentData(String zPath, byte[] data, ZooUtil.NodeExistsPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
IZooReaderWriter
putPersistentData
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public boolean putPersistentData(String zPath, byte[] data, int version, ZooUtil.NodeExistsPolicy policy, List<org.apache.zookeeper.data.ACL> acls) throws org.apache.zookeeper.KeeperException, InterruptedException
putPersistentData
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public boolean putPrivatePersistentData(String zPath, byte[] data, ZooUtil.NodeExistsPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
putPrivatePersistentData
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public void putPersistentData(String zPath, byte[] data, int version, ZooUtil.NodeExistsPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
putPersistentData
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public String putPersistentSequential(String zPath, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
putPersistentSequential
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public String putEphemeralData(String zPath, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
putEphemeralData
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public String putEphemeralSequential(String zPath, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
putEphemeralSequential
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public void recursiveCopyPersistent(String source, String destination, ZooUtil.NodeExistsPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
recursiveCopyPersistent
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public void delete(String path, int version) throws InterruptedException, org.apache.zookeeper.KeeperException
delete
in interface IZooReaderWriter
InterruptedException
org.apache.zookeeper.KeeperException
public byte[] mutate(String zPath, byte[] createValue, List<org.apache.zookeeper.data.ACL> acl, IZooReaderWriter.Mutator mutator) throws Exception
mutate
in interface IZooReaderWriter
Exception
public static ZooReaderWriter getInstance(String zookeepers, int timeInMillis, String scheme, byte[] auth)
public boolean isLockHeld(ZooUtil.LockID lockID) throws org.apache.zookeeper.KeeperException, InterruptedException
isLockHeld
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
public void mkdirs(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
mkdirs
in interface IZooReaderWriter
org.apache.zookeeper.KeeperException
InterruptedException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.