Class BackupForConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.BackupForConfiguration
-
- All Implemented Interfaces:
BaseConfigurationInfo
,ConfigurationInfo
public class BackupForConfiguration extends 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 org.infinispan.commons.configuration.elements.ElementDefinition
ELEMENT_DEFINITION
static org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
REMOTE_CACHE
static org.infinispan.commons.configuration.attributes.AttributeDefinition<String>
REMOTE_SITE
-
Constructor Summary
Constructors Constructor Description BackupForConfiguration(org.infinispan.commons.configuration.attributes.AttributeSet attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.infinispan.commons.configuration.attributes.AttributeSet
attributes()
boolean
equals(Object obj)
org.infinispan.commons.configuration.elements.ElementDefinition
getElementDefinition()
int
hashCode()
boolean
isBackupFor(String remoteSite, String remoteCache)
String
remoteCache()
String
remoteSite()
String
toString()
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
REMOTE_CACHE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> REMOTE_CACHE
-
REMOTE_SITE
public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<String> REMOTE_SITE
-
ELEMENT_DEFINITION
public static final org.infinispan.commons.configuration.elements.ElementDefinition ELEMENT_DEFINITION
-
-
Method Detail
-
remoteCache
public String remoteCache()
- Returns:
- the name of the remote site that backups data into this cache.
-
remoteSite
public String remoteSite()
- Returns:
- the name of the remote cache that backups data into this cache.
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
- Specified by:
attributes
in interfaceBaseConfigurationInfo
- Returns:
- the
AttributeSet
declared by the configuration.
-
getElementDefinition
public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
- Specified by:
getElementDefinition
in interfaceBaseConfigurationInfo
- Returns:
- the
ElementDefinition
of the configuration.
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
-