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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
static final org.infinispan.commons.configuration.attributes.AttributeDefinition<BackupFailurePolicy>
static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long>
static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
static final org.infinispan.commons.configuration.attributes.AttributeDefinition<BackupConfiguration.BackupStrategy>
static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean>
-
Constructor Summary
ConstructorsConstructorDescriptionBackupConfiguration
(org.infinispan.commons.configuration.attributes.AttributeSet attributes, TakeOfflineConfiguration takeOfflineConfiguration, XSiteStateTransferConfiguration xSiteStateTransferConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionboolean
enabled()
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
boolean
boolean
long
replicationTimeout
(long timeout) site()
Returns the name of the site where this cache backups its data.strategy()
How does the backup happen: sync or async.
-
Field Details
-
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 Details
-
BackupConfiguration
public BackupConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes, TakeOfflineConfiguration takeOfflineConfiguration, XSiteStateTransferConfiguration xSiteStateTransferConfiguration)
-
-
Method Details
-
site
Returns the name of the site where this cache backups its data. -
strategy
How does the backup happen: sync or async. -
takeOffline
-
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
-
backupFailurePolicy
-
isTwoPhaseCommit
public boolean isTwoPhaseCommit() -
enabled
public boolean enabled() -
stateTransfer
-