org.jboss.web.tomcat.service.session.distributedcache.impl
Class DistributedCacheManagerFactoryImpl

java.lang.Object
  extended by org.jboss.web.tomcat.service.session.distributedcache.impl.DistributedCacheManagerFactoryImpl
All Implemented Interfaces:
org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManagerFactory, org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterDistributedCacheManagerFactory

public class DistributedCacheManagerFactoryImpl
extends Object
implements org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterDistributedCacheManagerFactory

Author:
Brian Stansberry

Field Summary
static String DEFAULT_CACHE_MODE
          TreeCache's cache mode
static String DEFAULT_CLUSTER_NAME
           
static String DEFAULT_ISOLATION_LEVEL
          TreeCache's isolation level
static long DEFAULT_LOCK_TIMEOUT
          TreeCache's lock aquisition timeout
static String DEFAULT_TM_LOOKUP
          TransactionManagerLookup implementation that the TreeCache should use.
 
Constructor Summary
DistributedCacheManagerFactoryImpl()
           
 
Method Summary
 void clearCaches()
          Convenience method for test fixtures to clear any injected cache.
 org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManager getDistributedCacheManager(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager)
           
 org.jboss.cache.Cache<Object,Object> getPlainCache()
           
 org.jboss.cache.pojo.PojoCache getPojoCache()
           
 org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterConfig getTomcatClusterConfig()
           
 void setPlainCache(org.jboss.cache.Cache<Object,Object> plainCache)
          Hook for test fixtures to inject a Cache, which if present will be used to create the DistributedCacheManager in preference to any passed cacheConfigName.
 void setPojoCache(org.jboss.cache.pojo.PojoCache pojoCache)
          Hook for test fixtures to inject a PojoCache, which if present will be used to create the DistributedCacheManager in preference to any passed cacheConfigName.
 void setTomcatClusterConfig(org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterConfig clusterConfig)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CLUSTER_NAME

public static final String DEFAULT_CLUSTER_NAME
See Also:
Constant Field Values

DEFAULT_ISOLATION_LEVEL

public static final String DEFAULT_ISOLATION_LEVEL
TreeCache's isolation level

See Also:
Constant Field Values

DEFAULT_CACHE_MODE

public static final String DEFAULT_CACHE_MODE
TreeCache's cache mode

See Also:
Constant Field Values

DEFAULT_LOCK_TIMEOUT

public static final long DEFAULT_LOCK_TIMEOUT
TreeCache's lock aquisition timeout

See Also:
Constant Field Values

DEFAULT_TM_LOOKUP

public static final String DEFAULT_TM_LOOKUP
TransactionManagerLookup implementation that the TreeCache should use.

Constructor Detail

DistributedCacheManagerFactoryImpl

public DistributedCacheManagerFactoryImpl()
Method Detail

getDistributedCacheManager

public org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManager getDistributedCacheManager(org.jboss.web.tomcat.service.session.distributedcache.spi.LocalDistributableSessionManager localManager)
                                                                                                             throws org.jboss.web.tomcat.service.session.distributedcache.spi.ClusteringNotSupportedException
Specified by:
getDistributedCacheManager in interface org.jboss.web.tomcat.service.session.distributedcache.spi.DistributedCacheManagerFactory
Throws:
org.jboss.web.tomcat.service.session.distributedcache.spi.ClusteringNotSupportedException

getTomcatClusterConfig

public org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterConfig getTomcatClusterConfig()
Specified by:
getTomcatClusterConfig in interface org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterDistributedCacheManagerFactory

setTomcatClusterConfig

public void setTomcatClusterConfig(org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterConfig clusterConfig)
Specified by:
setTomcatClusterConfig in interface org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterDistributedCacheManagerFactory

start

public void start()
           throws Exception
Specified by:
start in interface org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterDistributedCacheManagerFactory
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface org.jboss.web.tomcat.service.session.distributedcache.spi.TomcatClusterDistributedCacheManagerFactory
Throws:
Exception

getPojoCache

public org.jboss.cache.pojo.PojoCache getPojoCache()

setPojoCache

public void setPojoCache(org.jboss.cache.pojo.PojoCache pojoCache)
Hook for test fixtures to inject a PojoCache, which if present will be used to create the DistributedCacheManager in preference to any passed cacheConfigName.


getPlainCache

public org.jboss.cache.Cache<Object,Object> getPlainCache()

setPlainCache

public void setPlainCache(org.jboss.cache.Cache<Object,Object> plainCache)
Hook for test fixtures to inject a Cache, which if present will be used to create the DistributedCacheManager in preference to any passed cacheConfigName.


clearCaches

public void clearCaches()
Convenience method for test fixtures to clear any injected cache.



Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.