Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.xsite
Interface BackupSender

All Known Implementing Classes:
BackupSenderImpl

public interface BackupSender

Component responsible with sending backup data to remote sites. The send operation is executed async, it's up to the caller to wait on the returned BackupResponse in the case it wants an sync call.

Since:
5.2
Author:
Mircea Markus
See Also:
BackupResponse

Nested Class Summary
static class BackupSender.BringSiteOnlineResponse
           
static class BackupSender.TakeSiteOfflineResponse
           
 
Method Summary
 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)
           
 

Method Detail

backupPrepare

BackupResponse backupPrepare(PrepareCommand command)
                             throws Exception
Prepares a transaction on the remote site.

Throws:
Exception

processResponses

void processResponses(BackupResponse backupResponse,
                      VisitableCommand command)
                      throws Throwable
Processes the responses of a backup command. It might throw an exception in the case the replication to the remote site fail, based on the configured CustomFailurePolicy.

Throws:
Throwable

backupWrite

BackupResponse backupWrite(WriteCommand command)
                           throws Exception
Throws:
Exception

backupCommit

BackupResponse backupCommit(CommitCommand command)
                            throws Exception
Throws:
Exception

backupRollback

BackupResponse backupRollback(RollbackCommand command)
                              throws Exception
Throws:
Exception

processResponses

void processResponses(BackupResponse backupResponse,
                      VisitableCommand command,
                      Transaction transaction)
                      throws Throwable
Throws:
Throwable

getOfflineStatus

OfflineStatus getOfflineStatus(String siteName)

status

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.


bringSiteOnline

BackupSender.BringSiteOnlineResponse bringSiteOnline(String siteName)
Brings a site with the given name back online.


takeSiteOffline

BackupSender.TakeSiteOfflineResponse takeSiteOffline(String siteName)

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.