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
Exception
void processResponses(BackupResponse backupResponse, VisitableCommand command) throws Throwable
CustomFailurePolicy
.Throwable
BackupResponse backupWrite(WriteCommand command) throws Exception
Exception
BackupResponse backupCommit(CommitCommand command) throws Exception
Exception
BackupResponse backupRollback(RollbackCommand command) throws Exception
Exception
void processResponses(BackupResponse backupResponse, VisitableCommand command, Transaction transaction) throws Throwable
Throwable
OfflineStatus 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.