Class SitesConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.SitesConfiguration
-
- All Implemented Interfaces:
Matchable<SitesConfiguration>
public class SitesConfiguration extends Object implements Matchable<SitesConfiguration>
- Since:
- 5.2
- Author:
- Mircea.Markus@jboss.com
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<Boolean>
DISABLE_BACKUPS
static AttributeDefinition<Set<String>>
IN_USE_BACKUP_SITES
-
Constructor Summary
Constructors Constructor Description SitesConfiguration(AttributeSet attributes, List<BackupConfiguration> allBackups, BackupForConfiguration backupFor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BackupConfiguration>
allBackups()
Returns the list of all sites where this cache might back up its data.AttributeSet
attributes()
BackupForConfiguration
backupFor()
boolean
disableBackups()
Returns true if this cache won't backup its data remotely.List<BackupConfiguration>
enabledBackups()
Returns the list ofBackupConfiguration
that haveBackupConfiguration.enabled()
== true.boolean
equals(Object obj)
BackupFailurePolicy
getFailurePolicy(String siteName)
boolean
hasEnabledBackups()
int
hashCode()
boolean
hasInUseBackup(String siteName)
Set<String>
inUseBackupSites()
String
toString()
-
-
-
Field Detail
-
DISABLE_BACKUPS
public static final AttributeDefinition<Boolean> DISABLE_BACKUPS
-
IN_USE_BACKUP_SITES
public static final AttributeDefinition<Set<String>> IN_USE_BACKUP_SITES
-
-
Constructor Detail
-
SitesConfiguration
public SitesConfiguration(AttributeSet attributes, List<BackupConfiguration> allBackups, BackupForConfiguration backupFor)
-
-
Method Detail
-
disableBackups
public boolean disableBackups()
Returns true if this cache won't backup its data remotely. It would still accept other sites backing up data on this site.
-
allBackups
public List<BackupConfiguration> allBackups()
Returns the list of all sites where this cache might back up its data. The list of actual sites is defined byinUseBackupSites
.
-
enabledBackups
public List<BackupConfiguration> enabledBackups()
Returns the list ofBackupConfiguration
that haveBackupConfiguration.enabled()
== true.
-
backupFor
public BackupForConfiguration backupFor()
- Returns:
- information about caches that backup data into this cache.
-
getFailurePolicy
public BackupFailurePolicy getFailurePolicy(String siteName)
-
hasInUseBackup
public boolean hasInUseBackup(String siteName)
-
hasEnabledBackups
public boolean hasEnabledBackups()
-
attributes
public AttributeSet attributes()
-
-