public class Snapshot extends Object implements Comparable<Snapshot>
| Modifier and Type | Field and Description |
|---|---|
protected Calendar |
date
Stores the date associated with the snapshot.
|
protected File |
file
Stores snapshot file.
|
protected static Logger |
logger |
protected String |
name
Name of the snapshot;
|
| Constructor and Description |
|---|
Snapshot(SnapshotRepository repo,
String snapshot)
Construct a snapshot restoration operation.
|
| Modifier and Type | Method and Description |
|---|---|
ChunkStore |
_getChunkStore()
Get a chunk store.
|
int |
compareTo(Snapshot o) |
boolean |
containsWorld(String worldname)
Check the zip/tar file it contains the given world.
|
boolean |
equals(Object o) |
ChunkStore |
getChunkStore()
Get a chunk store.
|
Calendar |
getDate()
Get the date associated with this snapshot.
|
File |
getFile()
Get the file for the snapshot.
|
String |
getName()
Get the snapshot's name.
|
void |
setDate(Calendar date)
Set the date of the snapshot.
|
protected static Logger logger
protected File file
protected String name
protected Calendar date
public Snapshot(SnapshotRepository repo, String snapshot)
repo - snapshot - public ChunkStore getChunkStore() throws IOException, DataException
IOExceptionDataExceptionpublic ChunkStore _getChunkStore() throws IOException, DataException
IOExceptionDataExceptionpublic boolean containsWorld(String worldname)
public String getName()
public File getFile()
public Calendar getDate()
public void setDate(Calendar date)
date - public int compareTo(Snapshot o)
compareTo in interface Comparable<Snapshot>Copyright © 2010-2014. All Rights Reserved.