Class BackupForConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.BackupForConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo
,ConfigurationInfo
public class BackupForConfiguration extends java.lang.Object implements ConfigurationInfo
Defines the remote caches for which this cache acts as a backup.- Since:
- 5.2
- Author:
- Mircea Markus
-
-
Field Summary
Fields Modifier and Type Field Description static ElementDefinition
ELEMENT_DEFINITION
static AttributeDefinition<java.lang.String>
REMOTE_CACHE
static AttributeDefinition<java.lang.String>
REMOTE_SITE
-
Constructor Summary
Constructors Constructor Description BackupForConfiguration(AttributeSet attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeSet
attributes()
boolean
equals(java.lang.Object obj)
ElementDefinition
getElementDefinition()
int
hashCode()
boolean
isBackupFor(java.lang.String remoteSite, java.lang.String remoteCache)
java.lang.String
remoteCache()
java.lang.String
remoteSite()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
REMOTE_CACHE
public static final AttributeDefinition<java.lang.String> REMOTE_CACHE
-
REMOTE_SITE
public static final AttributeDefinition<java.lang.String> REMOTE_SITE
-
ELEMENT_DEFINITION
public static final ElementDefinition ELEMENT_DEFINITION
-
-
Constructor Detail
-
BackupForConfiguration
public BackupForConfiguration(AttributeSet attributes)
-
-
Method Detail
-
remoteCache
public java.lang.String remoteCache()
- Returns:
- the name of the remote site that backups data into this cache.
-
remoteSite
public java.lang.String remoteSite()
- Returns:
- the name of the remote cache that backups data into this cache.
-
attributes
public AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
getElementDefinition
public ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
isBackupFor
public boolean isBackupFor(java.lang.String remoteSite, java.lang.String remoteCache)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-