Package org.infinispan.xsite
Class BackupReceiverRepositoryImpl
- java.lang.Object
-
- org.infinispan.xsite.BackupReceiverRepositoryImpl
-
- All Implemented Interfaces:
BackupReceiverRepository
public class BackupReceiverRepositoryImpl extends Object implements BackupReceiverRepository
- Since:
- 5.2
- Author:
- Mircea Markus
-
-
Constructor Summary
Constructors Constructor Description BackupReceiverRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcacheStopped(CacheStoppedEvent cse)BackupReceiverget(String site, String cache)BackupReceivergetBackupReceiver(String remoteSite, String remoteCache)Returns the local cache defined as backup for the provided remote (site, cache) combo, or throws an exception if no such site is defined.voidreplace(String site, String cache, BackupReceiver bcr)voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
cacheStopped
public void cacheStopped(CacheStoppedEvent cse)
-
getBackupReceiver
public BackupReceiver getBackupReceiver(String remoteSite, String remoteCache)
Returns the local cache defined as backup for the provided remote (site, cache) combo, or throws an exception if no such site is defined. Also starts the cache if not already started; that is because the cache is needed for update after this method is invoked.- Specified by:
getBackupReceiverin interfaceBackupReceiverRepository
-
replace
public void replace(String site, String cache, BackupReceiver bcr)
-
get
public BackupReceiver get(String site, String cache)
-
-