Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.configuration.cache
Class SitesConfiguration

java.lang.Object
  extended by org.infinispan.configuration.cache.SitesConfiguration

public class SitesConfiguration
extends Object

Since:
5.2
Author:
Mircea.Markus@jboss.com

Constructor Summary
SitesConfiguration(List<BackupConfiguration> backups, BackupForConfiguration backupFor, boolean disableBackups, Set<String> backupSites)
           
 
Method Summary
 List<BackupConfiguration> allBackups()
          Returns the list of all sites where this cache might back up its data.
 BackupForConfiguration backupFor()
           
 boolean disableBackups()
          Returns true if this cache won't backup its data remotely.
 List<BackupConfiguration> enabledBackups()
          Returns the list of BackupConfiguration that have BackupConfiguration.enabled() == true.
 boolean equals(Object o)
           
 BackupFailurePolicy getFailurePolicy(String siteName)
           
 boolean hasEnabledBackups()
           
 int hashCode()
           
 boolean hasInUseBackup(String siteName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SitesConfiguration

public SitesConfiguration(List<BackupConfiguration> backups,
                          BackupForConfiguration backupFor,
                          boolean disableBackups,
                          Set<String> backupSites)
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 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

Infinispan Distribution 5.2.6.Final-redhat-2

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