org.springframework.data.gemfire.client
Class ClientCacheFactoryBean

java.lang.Object
  extended by org.springframework.data.gemfire.CacheFactoryBean
      extended by org.springframework.data.gemfire.client.ClientCacheFactoryBean
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, DisposableBean, FactoryBean<com.gemstone.gemfire.cache.Cache>, InitializingBean, PersistenceExceptionTranslator

public class ClientCacheFactoryBean
extends CacheFactoryBean

FactoryBean dedicated to creating client caches (caches for client JVMs). Acts an utility class (as client caches are a subset with a particular configuration of the generic cache).


Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.gemfire.CacheFactoryBean
CacheFactoryBean.DynamicRegionSupport, CacheFactoryBean.JndiDataSource
 
Field Summary
protected  Boolean readyForEvents
           
 
Fields inherited from class org.springframework.data.gemfire.CacheFactoryBean
beanClassLoader, beanFactory, beanName, cache, cacheXml, close, copyOnRead, criticalHeapPercentage, dynamicRegionSupport, evictionHeapPercentage, factoryLocator, gatewayConflictResolver, jndiDataSources, lazyInitialize, lockLease, lockTimeout, log, messageSyncInterval, pdxDiskStoreName, pdxIgnoreUnreadFields, pdxPersistent, pdxReadSerialized, pdxSerializer, properties, searchTimeout, transactionListeners, transactionWriter, useBeanFactoryLocator, VALID_JNDI_DATASOURCE_TYPE_NAMES
 
Constructor Summary
ClientCacheFactoryBean()
           
 
Method Summary
protected  void applyPdxOptions(Object factory)
          Sets the PDX properties for the given object.
protected  com.gemstone.gemfire.cache.GemFireCache createCache(Object factory)
           
protected  Object createFactory(Properties props)
           
protected  com.gemstone.gemfire.cache.GemFireCache fetchCache()
           
 Properties getProperties()
           
 Boolean getReadyForEvents()
           
 void setPool(com.gemstone.gemfire.cache.client.Pool pool)
          Sets the pool used by this client.
 void setPoolName(String poolName)
          Sets the pool name used by this client.
 void setReadyForEvents(Boolean readyForEvents)
          Set the readyForEvents event flag.
 
Methods inherited from class org.springframework.data.gemfire.CacheFactoryBean
afterPropertiesSet, destroy, getBeanClassLoader, getBeanFactory, getBeanFactoryLocator, getBeanName, getCacheXml, getCopyOnRead, getCriticalHeapPercentage, getDynamicRegionSupport, getEvictionHeapPercentage, getGatewayConflictResolver, getJndiDataSources, getLockLease, getLockTimeout, getMessageSyncInterval, getObject, getObjectType, getPdxDiskStoreName, getPdxIgnoreUnreadFields, getPdxPersistent, getPdxReadSerialized, getPdxSerializer, getSearchTimeout, getTransactionListeners, getTransactionWriter, isLazyInitialize, isSingleton, registerTransactionListeners, registerTransactionWriter, setBeanClassLoader, setBeanFactory, setBeanName, setCacheXml, setClose, setCopyOnRead, setCriticalHeapPercentage, setDynamicRegionSupport, setEvictionHeapPercentage, setGatewayConflictResolver, setJndiDataSources, setLazyInitialize, setLockLease, setLockTimeout, setMessageSyncInterval, setPdxDiskStoreName, setPdxIgnoreUnreadFields, setPdxPersistent, setPdxReadSerialized, setPdxSerializer, setProperties, setSearchTimeout, setTransactionListeners, setTransactionWriter, setUseBeanFactoryLocator, translateExceptionIfPossible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readyForEvents

protected Boolean readyForEvents
Constructor Detail

ClientCacheFactoryBean

public ClientCacheFactoryBean()
Method Detail

createCache

protected com.gemstone.gemfire.cache.GemFireCache createCache(Object factory)
Overrides:
createCache in class CacheFactoryBean

createFactory

protected Object createFactory(Properties props)
Overrides:
createFactory in class CacheFactoryBean

fetchCache

protected com.gemstone.gemfire.cache.GemFireCache fetchCache()
Overrides:
fetchCache in class CacheFactoryBean

getProperties

public Properties getProperties()
Overrides:
getProperties in class CacheFactoryBean
Returns:
the properties

setPoolName

public void setPoolName(String poolName)
Sets the pool name used by this client.

Parameters:
poolName -

setReadyForEvents

public void setReadyForEvents(Boolean readyForEvents)
Set the readyForEvents event flag.

Parameters:
readyForEvents -

getReadyForEvents

public Boolean getReadyForEvents()

setPool

public void setPool(com.gemstone.gemfire.cache.client.Pool pool)
Sets the pool used by this client.

Parameters:
pool -

applyPdxOptions

protected void applyPdxOptions(Object factory)
Description copied from class: CacheFactoryBean
Sets the PDX properties for the given object. Note this is implementation specific as it depends on the type of the factory passed in.

Overrides:
applyPdxOptions in class CacheFactoryBean