Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » cache » jbc2 » builder » [javadoc | source]
org.hibernate.cache.jbc2.builder
public class: SharedCacheInstanceManager [javadoc | source]
java.lang.Object
   org.hibernate.cache.jbc2.builder.SharedCacheInstanceManager

All Implemented Interfaces:
    CacheInstanceManager

Direct Known Subclasses:
    JndiSharedCacheInstanceManager

A CacheInstanceManager implementation where we use a single JBoss Cache instance for each type of region. If operating on a cluster, the cache must be configured for REPL_SYNC if query caching is enabled. If query caching is not used, REPL_SYNC or INVALIDATION_SYNC are valid, with INVALIDATION_SYNC preferred.
Field Summary
public static final  String CACHE_RESOURCE_PROP    Classpath or filesystem resource containing JBoss Cache configuration settings the Cache should use. 
public static final  String DEFAULT_CACHE_RESOURCE    Default name for the JBoss Cache configuration file. 
public static final  String CHANNEL_FACTORY_RESOURCE_PROP    Classpath or filesystem resource containing JGroups protocol stack configurations the org.jgroups.ChannelFactory should use. 
public static final  String DEF_JGROUPS_RESOURCE    Default value for #CHANNEL_FACTORY_RESOURCE_PROP . Specifies the "jgroups-stacks.xml" file in this package. 
Constructor:
 public SharedCacheInstanceManager() 
 public SharedCacheInstanceManager(ChannelFactory channelFactory) 
 public SharedCacheInstanceManager(Cache cache) 
Method from org.hibernate.cache.jbc2.builder.SharedCacheInstanceManager Summary:
configureTransactionManager,   createSharedCache,   getCollectionCacheInstance,   getEntityCacheInstance,   getQueryCacheInstance,   getTimestampsCacheInstance,   start,   stop,   stopSharedCache
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.cache.jbc2.builder.SharedCacheInstanceManager Detail:
 protected  void configureTransactionManager(Cache cache,
    Settings settings,
    Properties properties) 
 protected Cache createSharedCache(Settings settings,
    Properties properties) 
    Create a cache using the given settings and properties.
 public Cache getCollectionCacheInstance() 
    {@inheritDoc}
 public Cache getEntityCacheInstance() 
    {@inheritDoc}
 public Cache getQueryCacheInstance() 
    {@inheritDoc}
 public Cache getTimestampsCacheInstance() 
    {@inheritDoc}
 public  void start(Settings settings,
    Properties properties) throws CacheException 
    {@inheritDoc}
 public  void stop() 
    {@inheritDoc}
 protected  void stopSharedCache(Cache cache) 
    Stops the shared cache.