Package com.tangosol.net
Class DefaultConfigurableCacheFactory.CacheInfo
- java.lang.Object
-
- com.tangosol.net.DefaultConfigurableCacheFactory.CacheInfo
-
- Enclosing class:
- DefaultConfigurableCacheFactory
public static class DefaultConfigurableCacheFactory.CacheInfo extends Object
CacheInfo is a placeholder for cache attributes retrieved during parsing the corresponding cache mapping element.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map
m_mapAttribute
Map of scheme attributes.protected String
m_sCacheName
The cache name.protected String
m_sSchemeName
The corresponding scheme name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
getAttributes()
Obtain the attribute map.String
getCacheName()
Obtain the cache name.String
getSchemeName()
Obtain the scheme name.DefaultConfigurableCacheFactory.CacheInfo
getSyntheticInfo(String sSuffix)
Generate a synthetic CacheInfo for a cache that has a name suffixed with the specified string.void
replaceAttributes(XmlElement xml)
Find and replace the attributes names in "{}" format with the corresponding values for this cache info.
-
-
-
Method Detail
-
getCacheName
public String getCacheName()
Obtain the cache name.- Returns:
- the cache name
-
getSchemeName
public String getSchemeName()
Obtain the scheme name.- Returns:
- the scheme name
-
getAttributes
public Map getAttributes()
Obtain the attribute map.- Returns:
- the attribute map
-
replaceAttributes
public void replaceAttributes(XmlElement xml)
Find and replace the attributes names in "{}" format with the corresponding values for this cache info.Note: the content of the specified XmlElement could be modified, so the caller is supposed to clone the passed in XML if necessary.
- Parameters:
xml
- the XmlElement to replace "{}" attributes at
-
getSyntheticInfo
public DefaultConfigurableCacheFactory.CacheInfo getSyntheticInfo(String sSuffix)
Generate a synthetic CacheInfo for a cache that has a name suffixed with the specified string.- Parameters:
sSuffix
- the cache name suffix- Returns:
- the "cloned" synthetic CacheInfo
-
-