Package ch.rswk.meta.engine
Interface BackupService
- All Superinterfaces:
com.google.common.util.concurrent.Service
- All Known Implementing Classes:
BackupMockService
,FileService
public interface BackupService
extends com.google.common.util.concurrent.Service
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture
<BackupReply> backup
(BackupRequest request) com.google.common.util.concurrent.ListenableFuture
<BackupRestoreReply> backupRestore
(BackupRestoreRequest request) com.google.common.util.concurrent.ListenableFuture
<Void> Register delegate to handle backing up and restoring data to/from a file.Methods inherited from interface com.google.common.util.concurrent.Service
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
-
Method Details
-
registerBackupDelegate
com.google.common.util.concurrent.ListenableFuture<Void> registerBackupDelegate(BackupService.AbstractBackupDelegate delegate) Register delegate to handle backing up and restoring data to/from a file.- Returns:
- future completes when registration is done
-
backup
-
backupRestore
com.google.common.util.concurrent.ListenableFuture<BackupRestoreReply> backupRestore(BackupRestoreRequest request)
-