public class Snapshot extends Object implements Comparable<Snapshot>
| Modifier and Type | Field and Description |
|---|---|
protected Calendar |
date |
protected File |
file |
protected static Logger |
logger |
protected String |
name |
| Constructor and Description |
|---|
Snapshot(SnapshotRepository repo,
String snapshot)
Construct a snapshot restoration operation.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
hashCode() |
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 - a repositorysnapshot - a snapshot namepublic 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 - the date of the snapshotpublic int compareTo(Snapshot o)
compareTo in interface Comparable<Snapshot>Copyright © 2010-2014. All Rights Reserved.