public class MockZooKeeperFactory extends Object implements ZooKeeperFactory
| Constructor and Description |
|---|
MockZooKeeperFactory(MockZooKeeperDataStore dataStore) |
| Modifier and Type | Method and Description |
|---|---|
ZooKeeperIface |
create(org.apache.zookeeper.Watcher watcher)
Creates a ZooKeeperIface instance
|
MockZooKeeper |
getLastZooKeeper() |
void |
setAutoConnect(boolean autoConnect) |
void |
throwOnNextCreate() |
public MockZooKeeperFactory(MockZooKeeperDataStore dataStore)
public MockZooKeeper getLastZooKeeper()
public void throwOnNextCreate()
public void setAutoConnect(boolean autoConnect)
public ZooKeeperIface create(org.apache.zookeeper.Watcher watcher) throws IOException
ZooKeeperFactorycreate in interface ZooKeeperFactorywatcher - - Watcher to monitor changes in connection statusIOExceptionCopyright © 2012–2015 Facebook, Inc.. All rights reserved.