org.infinispan.configuration.cache
Class SitesConfiguration
java.lang.Object
org.infinispan.configuration.cache.SitesConfiguration
public class SitesConfiguration
- extends Object
- Since:
- 5.2
- Author:
- Mircea.Markus@jboss.com
SitesConfiguration
public SitesConfiguration(List<BackupConfiguration> backups,
BackupForConfiguration backupFor,
boolean disableBackups,
Set<String> backupSites)
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 by
inUseBackupSites
.
enabledBackups
public List<BackupConfiguration> enabledBackups()
- Returns the list of
BackupConfiguration
that have BackupConfiguration.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()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.