org.apache.zookeeper.server.upgrade
public class UpgradeSnapShotV1 extends Object implements UpgradeSnapShot
Constructor and Description |
---|
UpgradeSnapShotV1(File dataDir,
File snapShotDir)
upgrade from version 1 to version 2
|
Modifier and Type | Method and Description |
---|---|
DataTree |
getNewDataTree() |
ConcurrentHashMap<Long,Integer> |
getSessionWithTimeOuts() |
long |
playLog(org.apache.jute.InputArchive logStream)
play the log from this logstream into the datatree
|
public long playLog(org.apache.jute.InputArchive logStream) throws IOException
logStream
- IOException
public DataTree getNewDataTree() throws IOException
getNewDataTree
in interface UpgradeSnapShot
IOException
public ConcurrentHashMap<Long,Integer> getSessionWithTimeOuts()
getSessionWithTimeOuts
in interface UpgradeSnapShot
Copyright © 2014 The Apache Software Foundation