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 void
cacheStopped(CacheStoppedEvent cse)
BackupReceiver
get(String site, String cache)
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.void
replace(String site, String cache, BackupReceiver bcr)
void
start()
void
stop()
-
-
-
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:
getBackupReceiver
in interfaceBackupReceiverRepository
-
replace
public void replace(String site, String cache, BackupReceiver bcr)
-
get
public BackupReceiver get(String site, String cache)
-
-