public interface BackupRestoreService extends Observable<BackupRestoreListener>
Modifier and Type | Method and Description |
---|---|
void |
backup()
Backup the controller.
|
File |
download()
Download backup off the controller platform.
|
BackupRestoreStatus |
getBackupStatus()
Get backup status.
|
BackupRestoreStatus |
getRestoreStatus()
Get restore status.
|
String |
getSHA256Checksum()
Get checksum of the backup file.
|
void |
restore()
Restore the controller.
|
void |
upload(InputStream in)
Upload backup to a URL.
|
register, unregister
void backup()
PreconditionFailedException
- if precondition checks failBackupRestoreStatus getBackupStatus()
NotFoundException
- if backup status cannot be retrievedString getSHA256Checksum()
NotFoundException
- if checksum cannot be retrievedFile download()
NotFoundException
- if backup cannot be foundPreconditionFailedException
- if precondition checks failvoid upload(InputStream in)
in
- the input stream, which is closed by the implementer.PreconditionFailedException
- if precondition checks failIllegalArgumentException
- if the file is invalidIllegalStateException
- if the upload failsvoid restore()
NotFoundException
- if backup cannot be foundPreconditionFailedException
- if precondition checks failIllegalArgumentException
- if the backup is invalidBackupRestoreStatus getRestoreStatus()
NotFoundException
- if backup status cannot be retrievedCopyright © 2015. All Rights Reserved.