Class ZooReaderWriter
- java.lang.Object
-
- org.apache.accumulo.fate.zookeeper.ZooReader
-
- org.apache.accumulo.fate.zookeeper.ZooReaderWriter
-
- org.apache.accumulo.server.zookeeper.ZooReaderWriter
-
- All Implemented Interfaces:
IZooReader
,IZooReaderWriter
public class ZooReaderWriter extends ZooReaderWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.fate.zookeeper.IZooReaderWriter
IZooReaderWriter.Mutator
-
-
Constructor Summary
Constructors Constructor Description ZooReaderWriter(String string, int timeInMillis, String secret)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZooReaderWriter
getInstance()
static ZooReaderWriter
getInstance(String zooConnString, int timeInMillis, String secret)
This method exposes the zookeeper connection parameters when instantiating a cached singleton ZooReaderWriter instance for later use in testing.-
Methods inherited from class org.apache.accumulo.fate.zookeeper.ZooReaderWriter
delete, getInstance, getZooKeeper, isLockHeld, mkdirs, mutate, putEphemeralData, putEphemeralSequential, putPersistentData, putPersistentData, putPersistentData, putPersistentSequential, putPrivatePersistentData, recursiveCopyPersistent, recursiveDelete
-
Methods inherited from class org.apache.accumulo.fate.zookeeper.ZooReader
exists, exists, getACL, getChildren, getChildren, getData, getData, getData, getRetryFactory, getSession, getStatus, getStatus, retryOrThrow, sync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.fate.zookeeper.IZooReader
exists, exists, getACL, getChildren, getChildren, getData, getData, getData, getStatus, getStatus
-
Methods inherited from interface org.apache.accumulo.fate.zookeeper.IZooReaderWriter
sync
-
-
-
-
Method Detail
-
getInstance
public static ZooReaderWriter getInstance()
-
getInstance
public static ZooReaderWriter getInstance(String zooConnString, int timeInMillis, String secret)
This method exposes the zookeeper connection parameters when instantiating a cached singleton ZooReaderWriter instance for later use in testing. The instance will only be created once, otherwise the previously cached instance is returned.- Parameters:
zooConnString
- a zookeeper connection string of host:port pair of server(s)timeInMillis
- the zooKeeper connection timeoutsecret
- the Accumulo instance secret- Returns:
- a ZooReaderWriter instance either created or previously cached.
-
-