public class SnapshotRestore extends Object
| Constructor and Description |
|---|
SnapshotRestore(ChunkStore chunkStore,
EditSession editSession,
Region region)
Construct the snapshot restore operation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChunksAffected()
Get the number of chunks that are needed.
|
List<Vector2D> |
getErrorChunks()
Get a list of the chunks that could not have been loaded for other
reasons.
|
String |
getLastErrorMessage() |
List<Vector2D> |
getMissingChunks()
Get a list of the missing chunks.
|
boolean |
hadTotalFailure()
Checks to see where the backup succeeded in any capacity.
|
void |
restore()
Restores to world.
|
public SnapshotRestore(ChunkStore chunkStore, EditSession editSession, Region region)
chunkStore - The ChunkStore to restore fromeditSession - The EditSession to restore toregion - The Region to restore topublic int getChunksAffected()
public void restore()
throws MaxChangedBlocksException
MaxChangedBlocksExceptionpublic List<Vector2D> getMissingChunks()
public List<Vector2D> getErrorChunks()
public boolean hadTotalFailure()
public String getLastErrorMessage()
Copyright © 2010-2014. All Rights Reserved.