public class SitesConfiguration extends Object implements Matchable<SitesConfiguration>, ConfigurationInfo
| Modifier and Type | Field and Description |
|---|---|
static AttributeDefinition<Boolean> |
DISABLE_BACKUPS |
static ElementDefinition |
ELEMENT_DEFINITION |
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.
|
Stream<BackupConfiguration> |
asyncBackupsStream() |
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. |
Stream<BackupConfiguration> |
enabledBackupStream() |
boolean |
equals(Object obj) |
ElementDefinition |
getElementDefinition() |
BackupFailurePolicy |
getFailurePolicy(String siteName) |
boolean |
hasAsyncEnabledBackups() |
boolean |
hasEnabledBackups() |
int |
hashCode() |
boolean |
hasInUseBackup(String siteName) |
boolean |
hasSyncEnabledBackups() |
Set<String> |
inUseBackupSites() |
List<ConfigurationInfo> |
subElements() |
Stream<BackupConfiguration> |
syncBackupsStream() |
String |
toString() |
public static final AttributeDefinition<Boolean> DISABLE_BACKUPS
public static final AttributeDefinition<Set<String>> IN_USE_BACKUP_SITES
public static final ElementDefinition ELEMENT_DEFINITION
public SitesConfiguration(AttributeSet attributes, List<BackupConfiguration> allBackups, BackupForConfiguration backupFor)
public List<ConfigurationInfo> subElements()
subElements in interface ConfigurationInfopublic ElementDefinition getElementDefinition()
getElementDefinition in interface BaseConfigurationInfoElementDefinition of the configuration.public boolean disableBackups()
public List<BackupConfiguration> allBackups()
inUseBackupSites.public List<BackupConfiguration> enabledBackups()
BackupConfiguration that have BackupConfiguration.enabled() == true.public Stream<BackupConfiguration> enabledBackupStream()
public BackupForConfiguration backupFor()
public BackupFailurePolicy getFailurePolicy(String siteName)
public boolean hasInUseBackup(String siteName)
public boolean hasEnabledBackups()
public boolean hasSyncEnabledBackups()
public Stream<BackupConfiguration> syncBackupsStream()
public boolean hasAsyncEnabledBackups()
public Stream<BackupConfiguration> asyncBackupsStream()
public AttributeSet attributes()
attributes in interface BaseConfigurationInfoAttributeSet declared by the configuration.Copyright © 2021 JBoss by Red Hat. All rights reserved.