Class BackupConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.BackupConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo
,ConfigurationInfo
public class BackupConfiguration extends Object implements ConfigurationInfo
- 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 org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
BackupFailurePolicy
backupFailurePolicy()
boolean
enabled()
boolean
equals(Object obj)
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
org.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
int
hashCode()
boolean
isAsyncBackup()
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()
-
-
-
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
-
subElements
public List<ConfigurationInfo> subElements()
- Specified by:
subElements
in interfaceConfigurationInfo
- Returns:
- the list of sub elements.
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
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()
-
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()
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
toString
public String toString()
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
-