public class SnapshotRestore
extends java.lang.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.
|
java.util.List<BlockVector2> |
getErrorChunks()
Get a list of the chunks that could not have been loaded for other
reasons.
|
java.lang.String |
getLastErrorMessage()
Get the last error message.
|
java.util.List<BlockVector2> |
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
MaxChangedBlocksException
- if the max block change limit is exceededpublic java.util.List<BlockVector2> getMissingChunks()
public java.util.List<BlockVector2> getErrorChunks()
public boolean hadTotalFailure()
public java.lang.String getLastErrorMessage()