public class LogState extends AbstractState
| Constructor and Description |
|---|
LogState(String servers,
long timeout,
TimeUnit unit,
String znode,
long quorum,
String path)
Constructs a new instance of LogState.
|
LogState(String servers,
long timeout,
TimeUnit unit,
String znode,
long quorum,
String path,
int diffsBetweenSnapshots)
Constructs a new instance of LogState.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
protected void |
initialize(String servers,
long timeout,
TimeUnit unit,
String znode,
long quorum,
String path,
int diffsBetweenSnapshots) |
expunge, fetch, names, storepublic LogState(String servers, long timeout, TimeUnit unit, String znode, long quorum, String path)
servers - List of ZooKeeper servers, e.g., 'ip1:port1,ip2:port2'.timeout - ZooKeeper session timeout.unit - Unit for session timeout.znode - Path to znode where log replicas should be found.quorum - Number of replicas necessary to persist a write.path - Path the local replica uses to read/write data.public LogState(String servers, long timeout, TimeUnit unit, String znode, long quorum, String path, int diffsBetweenSnapshots)
servers - List of ZooKeeper servers, e.g., 'ip1:port1,ip2:port2'.timeout - ZooKeeper session timeout.unit - Unit for session timeout.znode - Path to znode where log replicas should be found.quorum - Number of replicas necessary to persist a write.path - Path the local replica uses to read/write data.diffsBetweenSnapshots - Number of diffs to write between snapshots.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.