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