public class BackupConfiguration extends Object implements ConfigurationInfo
Modifier and Type | Class and Description |
---|---|
static class |
BackupConfiguration.BackupStrategy |
Modifier and Type | Field and Description |
---|---|
static AttributeDefinition<Boolean> |
ENABLED |
static AttributeDefinition<BackupFailurePolicy> |
FAILURE_POLICY |
static AttributeDefinition<String> |
FAILURE_POLICY_CLASS |
static AttributeDefinition<Long> |
REPLICATION_TIMEOUT |
static AttributeDefinition<String> |
SITE |
static AttributeDefinition<BackupConfiguration.BackupStrategy> |
STRATEGY |
static AttributeDefinition<Boolean> |
USE_TWO_PHASE_COMMIT |
Constructor and Description |
---|
BackupConfiguration(AttributeSet attributes,
TakeOfflineConfiguration takeOfflineConfiguration,
XSiteStateTransferConfiguration xSiteStateTransferConfiguration) |
Modifier and Type | Method and Description |
---|---|
AttributeSet |
attributes() |
BackupFailurePolicy |
backupFailurePolicy() |
boolean |
enabled() |
boolean |
equals(Object obj) |
String |
failurePolicyClass()
If the failure policy is set to
BackupFailurePolicy.CUSTOM then the failurePolicyClass is required and
should return the fully qualified name of a class implementing CustomFailurePolicy |
ElementDefinition |
getElementDefinition() |
int |
hashCode() |
boolean |
isAsyncBackup() |
boolean |
isSyncBackup() |
boolean |
isTwoPhaseCommit() |
long |
replicationTimeout() |
BackupConfiguration |
replicationTimeout(long timeout) |
String |
site()
Returns the name of the site where this cache backups its data.
|
XSiteStateTransferConfiguration |
stateTransfer() |
BackupConfiguration.BackupStrategy |
strategy()
How does the backup happen: sync or async.
|
List<ConfigurationInfo> |
subElements() |
TakeOfflineConfiguration |
takeOffline() |
String |
toString() |
public static final AttributeDefinition<String> SITE
public static final AttributeDefinition<BackupConfiguration.BackupStrategy> STRATEGY
public static final AttributeDefinition<Long> REPLICATION_TIMEOUT
public static final AttributeDefinition<BackupFailurePolicy> FAILURE_POLICY
public static final AttributeDefinition<String> FAILURE_POLICY_CLASS
public static final AttributeDefinition<Boolean> USE_TWO_PHASE_COMMIT
public static final AttributeDefinition<Boolean> ENABLED
public BackupConfiguration(AttributeSet attributes, TakeOfflineConfiguration takeOfflineConfiguration, XSiteStateTransferConfiguration xSiteStateTransferConfiguration)
public List<ConfigurationInfo> subElements()
subElements
in interface ConfigurationInfo
public ElementDefinition getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.public String site()
public BackupConfiguration.BackupStrategy strategy()
public TakeOfflineConfiguration takeOffline()
public String failurePolicyClass()
BackupFailurePolicy.CUSTOM
then the failurePolicyClass is required and
should return the fully qualified name of a class implementing CustomFailurePolicy
public boolean isAsyncBackup()
public boolean isSyncBackup()
public long replicationTimeout()
public BackupConfiguration replicationTimeout(long timeout)
public BackupFailurePolicy backupFailurePolicy()
public boolean isTwoPhaseCommit()
public boolean enabled()
public XSiteStateTransferConfiguration stateTransfer()
public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.Copyright © 2021 JBoss by Red Hat. All rights reserved.