org.apache.accumulo.fate.zookeeper
public class ZooReaderWriter extends ZooReader implements IZooReaderWriter
| Modifier and Type | Class and Description |
|---|---|
static interface |
ZooReaderWriter.Mutator |
| Constructor and Description |
|---|
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) |
static IZooReaderWriter |
getRetryingInstance(String zookeepers,
int timeInMillis,
String scheme,
byte[] auth)
get an instance that retries when zookeeper connection errors occur
|
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,
ZooReaderWriter.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,
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,
int version,
ZooUtil.NodeMissingPolicy policy) |
void |
recursiveDelete(String zPath,
ZooUtil.NodeMissingPolicy policy) |
exists, exists, getChildren, getChildren, getData, getSession, getStatus, getStatus, syncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsyncexists, exists, getChildren, getChildren, getData, getStatus, getStatuspublic org.apache.zookeeper.ZooKeeper getZooKeeper()
getZooKeeper in interface IZooReaderWritergetZooKeeper in class ZooReaderpublic void recursiveDelete(String zPath, ZooUtil.NodeMissingPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
recursiveDelete in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void recursiveDelete(String zPath, int version, ZooUtil.NodeMissingPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
recursiveDelete in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic boolean putPersistentData(String zPath, byte[] data, ZooUtil.NodeExistsPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
putPersistentData in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic boolean putPrivatePersistentData(String zPath, byte[] data, ZooUtil.NodeExistsPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
putPrivatePersistentData in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void putPersistentData(String zPath, byte[] data, int version, ZooUtil.NodeExistsPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
putPersistentData in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic String putPersistentSequential(String zPath, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
putPersistentSequential in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic String putEphemeralData(String zPath, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
putEphemeralData in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic String putEphemeralSequential(String zPath, byte[] data) throws org.apache.zookeeper.KeeperException, InterruptedException
putEphemeralSequential in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void recursiveCopyPersistent(String source, String destination, ZooUtil.NodeExistsPolicy policy) throws org.apache.zookeeper.KeeperException, InterruptedException
recursiveCopyPersistent in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void delete(String path, int version) throws InterruptedException, org.apache.zookeeper.KeeperException
delete in interface IZooReaderWriterInterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic byte[] mutate(String zPath, byte[] createValue, List<org.apache.zookeeper.data.ACL> acl, ZooReaderWriter.Mutator mutator) throws Exception
mutate in interface IZooReaderWriterExceptionpublic static ZooReaderWriter getInstance(String zookeepers, int timeInMillis, String scheme, byte[] auth)
public static IZooReaderWriter getRetryingInstance(String zookeepers, int timeInMillis, String scheme, byte[] auth)
public boolean isLockHeld(ZooUtil.LockID lockID) throws org.apache.zookeeper.KeeperException, InterruptedException
isLockHeld in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void mkdirs(String path) throws org.apache.zookeeper.KeeperException, InterruptedException
mkdirs in interface IZooReaderWriterorg.apache.zookeeper.KeeperExceptionInterruptedExceptionCopyright © 2014 Apache Accumulo Project. All Rights Reserved.