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) |
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)
public void start()
public BackupResponse backupPrepare(PrepareCommand command) throws Exception
BackupSender
backupPrepare
in interface BackupSender
Exception
public void processResponses(BackupResponse backupResponse, VisitableCommand command) throws Throwable
BackupSender
CustomFailurePolicy
.processResponses
in interface BackupSender
Throwable
public void processResponses(BackupResponse backupResponse, VisitableCommand command, Transaction transaction) throws Throwable
processResponses
in interface BackupSender
Throwable
public BackupResponse backupWrite(WriteCommand command) throws Exception
backupWrite
in interface BackupSender
Exception
public BackupResponse backupCommit(CommitCommand command) throws Exception
backupCommit
in interface BackupSender
Exception
public BackupResponse backupRollback(RollbackCommand command) throws Exception
backupRollback
in interface BackupSender
Exception
public BackupSender.BringSiteOnlineResponse bringSiteOnline(String siteName)
BackupSender
bringSiteOnline
in interface BackupSender
public BackupSender.TakeSiteOfflineResponse takeSiteOffline(String siteName)
takeSiteOffline
in interface BackupSender
public OfflineStatus getOfflineStatus(String site)
getOfflineStatus
in interface BackupSender
public Map<String,Boolean> status()
BackupSender
status
in interface BackupSender
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.