public interface BackupSender
BackupResponse in the case it wants an sync call.BackupResponse| Modifier and Type | Interface and Description |
|---|---|
static class |
BackupSender.BringSiteOnlineResponse |
static class |
BackupSender.TakeSiteOfflineResponse |
| Modifier and Type | Method and Description |
|---|---|
BackupResponse |
backupCommit(CommitCommand command) |
BackupResponse |
backupPrepare(PrepareCommand command)
Prepares a transaction on the remote site.
|
BackupResponse |
backupRollback(RollbackCommand command) |
BackupResponse |
backupWrite(WriteCommand command) |
BackupSender.BringSiteOnlineResponse |
bringSiteOnline(String siteName)
Brings a site with the given name back online.
|
OfflineStatus |
getOfflineStatus(String siteName) |
void |
processResponses(BackupResponse backupResponse,
VisitableCommand command)
Processes the responses of a backup command.
|
void |
processResponses(BackupResponse backupResponse,
VisitableCommand command,
Transaction transaction) |
Map<String,Boolean> |
status()
Returns a Map having as entries the site names and as value Boolean.TRUE if the site is online and Boolean.FALSE
if it is offline.
|
BackupSender.TakeSiteOfflineResponse |
takeSiteOffline(String siteName) |
BackupResponse backupPrepare(PrepareCommand command) throws Exception
Exceptionvoid processResponses(BackupResponse backupResponse, VisitableCommand command) throws Throwable
CustomFailurePolicy.ThrowableBackupResponse backupWrite(WriteCommand command) throws Exception
ExceptionBackupResponse backupCommit(CommitCommand command) throws Exception
ExceptionBackupResponse backupRollback(RollbackCommand command) throws Exception
Exceptionvoid processResponses(BackupResponse backupResponse, VisitableCommand command, Transaction transaction) throws Throwable
ThrowableOfflineStatus getOfflineStatus(String siteName)
Map<String,Boolean> status()
BackupSender.BringSiteOnlineResponse bringSiteOnline(String siteName)
BackupSender.TakeSiteOfflineResponse takeSiteOffline(String siteName)
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.