public class SitesConfiguration extends Object implements Matchable<SitesConfiguration>
Modifier and Type | Field and Description |
---|---|
static AttributeDefinition<Boolean> |
DISABLE_BACKUPS |
static AttributeDefinition<Set<String>> |
IN_USE_BACKUP_SITES |
Constructor and Description |
---|
SitesConfiguration(AttributeSet attributes,
List<BackupConfiguration> allBackups,
BackupForConfiguration backupFor) |
Modifier and Type | Method and 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 of
BackupConfiguration that have BackupConfiguration.enabled() == true. |
boolean |
equals(Object obj) |
BackupFailurePolicy |
getFailurePolicy(String siteName) |
boolean |
hasEnabledBackups() |
int |
hashCode() |
boolean |
hasInUseBackup(String siteName) |
Set<String> |
inUseBackupSites() |
String |
toString() |
public static final AttributeDefinition<Boolean> DISABLE_BACKUPS
public static final AttributeDefinition<Set<String>> IN_USE_BACKUP_SITES
public SitesConfiguration(AttributeSet attributes, List<BackupConfiguration> allBackups, BackupForConfiguration backupFor)
public boolean disableBackups()
public List<BackupConfiguration> allBackups()
inUseBackupSites
.public List<BackupConfiguration> enabledBackups()
BackupConfiguration
that have BackupConfiguration.enabled()
== true.public BackupForConfiguration backupFor()
public BackupFailurePolicy getFailurePolicy(String siteName)
public boolean hasInUseBackup(String siteName)
public boolean hasEnabledBackups()
public AttributeSet attributes()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.