Oracle® Coherence Java API Reference
v3.5

E14977-01

com.tangosol.net
Class DefaultConfigurableCacheFactory.CacheInfo

java.lang.Object
  extended by com.tangosol.net.DefaultConfigurableCacheFactory.CacheInfo
Enclosing class:
DefaultConfigurableCacheFactory

public static class DefaultConfigurableCacheFactory.CacheInfo
extends java.lang.Object

CacheInfo is a placeholder for cache attributes retrieved during parsing the corresponding cache mapping element.


Field Summary
protected  java.util.Map m_mapAttribute
          Map of scheme attributes.
protected  java.lang.String m_sCacheName
          The cache name.
protected  java.lang.String m_sSchemeName
          The corresponding scheme name.
 
Constructor Summary
DefaultConfigurableCacheFactory.CacheInfo(java.lang.String sCacheName, java.lang.String sSchemeName, java.util.Map mapAttribute)
          Construct a CacheInfo object.
 
Method Summary
 java.util.Map getAttributes()
          Obtain the attribute map.
 java.lang.String getCacheName()
          Obtain the cache name.
 java.lang.String getSchemeName()
          Obtain the scheme name.
 DefaultConfigurableCacheFactory.CacheInfo getSyntheticInfo(java.lang.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.
 

Field Detail

m_sCacheName

protected java.lang.String m_sCacheName
The cache name.


m_sSchemeName

protected java.lang.String m_sSchemeName
The corresponding scheme name.


m_mapAttribute

protected java.util.Map m_mapAttribute
Map of scheme attributes.

Constructor Detail

DefaultConfigurableCacheFactory.CacheInfo

public DefaultConfigurableCacheFactory.CacheInfo(java.lang.String sCacheName,
                                                 java.lang.String sSchemeName,
                                                 java.util.Map mapAttribute)
Construct a CacheInfo object.

Parameters:
sCacheName - the cache name
sSchemeName - the corresponding scheme name
mapAttribute - the corresponding map of attributes
Method Detail

getCacheName

public java.lang.String getCacheName()
Obtain the cache name.

Returns:
the cache name

getSchemeName

public java.lang.String getSchemeName()
Obtain the scheme name.

Returns:
the scheme name

getAttributes

public java.util.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(java.lang.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

Oracle® Coherence Java API Reference
v3.5

E14977-01

Copyright © 2000, 2009, Oracle. All rights reserved.