Class BackupConfiguration
- java.lang.Object
-
- org.infinispan.commons.configuration.attributes.ConfigurationElement<BackupConfiguration>
-
- org.infinispan.configuration.cache.BackupConfiguration
-
- All Implemented Interfaces:
org.infinispan.commons.configuration.attributes.Matchable<BackupConfiguration>
,org.infinispan.commons.configuration.attributes.Updatable<BackupConfiguration>
public class BackupConfiguration extends org.infinispan.commons.configuration.attributes.ConfigurationElement<BackupConfiguration>
- Since:
- 5.2
- Author:
- Mircea.Markus@jboss.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackupConfiguration.BackupStrategy
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
ENABLED
static org.infinispan.commons.configuration.attributes.AttributeDefinition<BackupFailurePolicy>
FAILURE_POLICY
static org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
FAILURE_POLICY_CLASS
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Long>
REPLICATION_TIMEOUT
static org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
SITE
static org.infinispan.commons.configuration.attributes.AttributeDefinition<BackupConfiguration.BackupStrategy>
STRATEGY
static org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
USE_TWO_PHASE_COMMIT
-
Constructor Summary
Constructors Constructor Description BackupConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, TakeOfflineConfiguration takeOfflineConfiguration, XSiteStateTransferConfiguration xSiteStateTransferConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupFailurePolicy
backupFailurePolicy()
boolean
enabled()
String
failurePolicyClass()
If the failure policy is set toBackupFailurePolicy.CUSTOM
then the failurePolicyClass is required and should return the fully qualified name of a class implementingCustomFailurePolicy
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.TakeOfflineConfiguration
takeOffline()
-
-
-
Field Detail
-
SITE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> SITE
-
STRATEGY
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<BackupConfiguration.BackupStrategy> STRATEGY
-
REPLICATION_TIMEOUT
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long> REPLICATION_TIMEOUT
-
FAILURE_POLICY
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<BackupFailurePolicy> FAILURE_POLICY
-
FAILURE_POLICY_CLASS
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> FAILURE_POLICY_CLASS
-
USE_TWO_PHASE_COMMIT
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> USE_TWO_PHASE_COMMIT
-
ENABLED
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> ENABLED
-
-
Constructor Detail
-
BackupConfiguration
public BackupConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, TakeOfflineConfiguration takeOfflineConfiguration, XSiteStateTransferConfiguration xSiteStateTransferConfiguration)
-
-
Method Detail
-
site
public String site()
Returns the name of the site where this cache backups its data.
-
strategy
public BackupConfiguration.BackupStrategy strategy()
How does the backup happen: sync or async.
-
takeOffline
public TakeOfflineConfiguration takeOffline()
-
failurePolicyClass
public String failurePolicyClass()
If the failure policy is set toBackupFailurePolicy.CUSTOM
then the failurePolicyClass is required and should return the fully qualified name of a class implementingCustomFailurePolicy
-
isAsyncBackup
public boolean isAsyncBackup()
-
isSyncBackup
public boolean isSyncBackup()
-
replicationTimeout
public long replicationTimeout()
-
replicationTimeout
public BackupConfiguration replicationTimeout(long timeout)
-
backupFailurePolicy
public BackupFailurePolicy backupFailurePolicy()
-
isTwoPhaseCommit
public boolean isTwoPhaseCommit()
-
enabled
public boolean enabled()
-
stateTransfer
public XSiteStateTransferConfiguration stateTransfer()
-
-