public class BackupSenderImpl extends Object implements BackupSender
| Modifier and Type | Class and Description |
|---|---|
static class |
BackupSenderImpl.CustomBackupPolicyInvoker |
BackupSender.BringSiteOnlineResponse, BackupSender.TakeSiteOfflineResponse| Constructor and Description |
|---|
BackupSenderImpl(String localSiteName) |
| 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 site) |
void |
init(Cache cache,
Transport transport,
TransactionTable txTable,
GlobalConfiguration gc,
TimeService timeService,
CommandsFactory commandsFactory) |
void |
processResponses(BackupResponse backupResponse,
VisitableCommand command)
Processes the responses of a backup command.
|
void |
processResponses(BackupResponse backupResponse,
VisitableCommand command,
Transaction transaction) |
void |
start() |
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) |
public BackupSenderImpl(String localSiteName)
public void init(Cache cache, Transport transport, TransactionTable txTable, GlobalConfiguration gc, TimeService timeService, CommandsFactory commandsFactory)
public void start()
public BackupResponse backupPrepare(PrepareCommand command) throws Exception
BackupSenderbackupPrepare in interface BackupSenderExceptionpublic void processResponses(BackupResponse backupResponse, VisitableCommand command) throws Throwable
BackupSenderCustomFailurePolicy.processResponses in interface BackupSenderThrowablepublic void processResponses(BackupResponse backupResponse, VisitableCommand command, Transaction transaction) throws Throwable
processResponses in interface BackupSenderThrowablepublic BackupResponse backupWrite(WriteCommand command) throws Exception
backupWrite in interface BackupSenderExceptionpublic BackupResponse backupCommit(CommitCommand command) throws Exception
backupCommit in interface BackupSenderExceptionpublic BackupResponse backupRollback(RollbackCommand command) throws Exception
backupRollback in interface BackupSenderExceptionpublic BackupSender.BringSiteOnlineResponse bringSiteOnline(String siteName)
BackupSenderbringSiteOnline in interface BackupSenderpublic BackupSender.TakeSiteOfflineResponse takeSiteOffline(String siteName)
takeSiteOffline in interface BackupSenderpublic OfflineStatus getOfflineStatus(String site)
getOfflineStatus in interface BackupSenderpublic Map<String,Boolean> status()
BackupSenderstatus in interface BackupSenderCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.