|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.XmlFile
jmri.jmrit.operations.setup.Backup
public class Backup
Backs up operation files. Creates the "backups" and date directories along with backup files in the operations directory.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrit.XmlFile |
|---|
dtdLocation, xsltLocation |
| Constructor Summary | |
|---|---|
Backup()
|
|
| Method Summary | |
|---|---|
boolean |
backupFiles(File directory)
Creates backup files for the directory specified |
boolean |
backupFiles(String directoryName)
Creates a folder named directoryName in the backups folder, and then saves all of the operations files into that folder. |
boolean |
checkDirectoryExists(String directoryName)
Check to see if a backup operations directory already exists |
String |
createBackupDirectoryName()
|
String |
getBackupDirectoryName()
|
String[] |
getBackupList()
|
String |
getDirectoryName()
|
boolean |
loadDemoFiles()
|
void |
reset()
Reset operations by deleting xml files, leaves directories and backup files in place |
boolean |
restore(File directory)
Copies operation files from directoryName |
boolean |
restore(String directoryName)
|
boolean |
restore(String directoryPath,
String directoryName)
|
void |
setDirectoryName(String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Backup()
| Method Detail |
|---|
public boolean backupFiles(String directoryName)
directoryName -
public boolean backupFiles(File directory)
directory - The directory to use for the backup.
public String[] getBackupList()
public boolean checkDirectoryExists(String directoryName)
directoryName -
public boolean restore(String directoryName)
public boolean restore(String directoryPath,
String directoryName)
public boolean restore(File directory)
directory -
public boolean loadDemoFiles()
public String getDirectoryName()
public void setDirectoryName(String name)
public String getBackupDirectoryName()
public String createBackupDirectoryName()
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||