Reference Guide

Table Of Contents
// Please make sure you catch exceptions and throw runtime exceptions
// so that backup service can operate correctly.
// If the error is not thrown, backup service will assume
// a successful staging operation for the given application.
} catch (Exception e) {
// Throw RuntimeException if you need to stop backup in the
// event of a failure.
throw new RuntimeException (e);
}
}
@Override
public void onBackupDone(BackupRestoreStatus status) {
// Take application specific action on backup done.
// The status can be SUCCESS or FAILURE
// The behavior of the application on backup done is implementation
dependent
}
@Override
public void onRestoreStart(Path directory) {
try {
// Restore application specific data from the specified directory
// Please catch exceptions and throw runtime exceptions
// so that restore service can sense failures.
// If the error is not thrown, restore service will assume
// a successful staging operation for the given application.
} catch (Exception e) {
// Throw RuntimeException if you need to stop restore in the
// event of a failure.
throw new RuntimeException (e);
}
}
@Override
public void onRestoreDone(BackupRestoreStatus status) {
// Application specific behavior on Restore done event.
}
}
113