org.infinispan.loaders.file
Class FileCacheStoreConfig

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.loaders.AbstractCacheLoaderConfig
              extended by org.infinispan.loaders.AbstractCacheStoreConfig
                  extended by org.infinispan.loaders.LockSupportCacheStoreConfig
                      extended by org.infinispan.loaders.file.FileCacheStoreConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable, CacheLoaderConfig, CacheStoreConfig

public class FileCacheStoreConfig
extends LockSupportCacheStoreConfig

Configures FileCacheStore. This allows you to tune a number of characteristics of the FileCacheStore.

Since:
4.0
Author:
Manik Surtani, Vladimir Blagojevic, Galder ZamarreƱo
See Also:
Serialized Form

Nested Class Summary
static class FileCacheStoreConfig.FsyncMode
           
static class FileCacheStoreConfig.FsyncModeEditor
          Property editor for fsync mode configuration.
 
Field Summary
 
Fields inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig
DEFAULT_CONCURRENCY_LEVEL, DEFAULT_LOCK_ACQUISITION_TIMEOUT
 
Fields inherited from class org.infinispan.loaders.AbstractCacheStoreConfig
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
 
Fields inherited from class org.infinispan.loaders.AbstractCacheLoaderConfig
cacheLoaderClassName, properties
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
FileCacheStoreConfig()
           
 
Method Summary
 FileCacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
          If true, fetch persistent state when joining a cluster.
 FileCacheStoreConfig fsyncInterval(long fsyncInterval)
           
 FileCacheStoreConfig fsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode)
           
 long getFsyncInterval()
           
 FileCacheStoreConfig.FsyncMode getFsyncMode()
           
 String getLocation()
           
 int getStreamBufferSize()
           
 FileCacheStoreConfig ignoreModifications(Boolean ignoreModifications)
          If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be applied to the cache store.
 FileCacheStoreConfig location(String location)
           
 FileCacheStoreConfig purgeOnStartup(Boolean purgeOnStartup)
          If true, purges this cache store when it starts up.
 FileCacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
          If true, CacheStore#purgeExpired() call will be done synchronously
 void setFsyncInterval(long fsyncInterval)
           
 void setFsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode)
           
 void setLocation(String location)
          Deprecated. The visibility of this will be reduced, use location(String)
 void setStreamBufferSize(int streamBufferSize)
          Deprecated. The visibility of this will be reduced, use streamBufferSize(int) instead
 FileCacheStoreConfig streamBufferSize(int streamBufferSize)
           
 
Methods inherited from class org.infinispan.loaders.LockSupportCacheStoreConfig
getLockAcquistionTimeout, getLockConcurrencyLevel, setLockAcquistionTimeout, setLockConcurrencyLevel, toString
 
Methods inherited from class org.infinispan.loaders.AbstractCacheStoreConfig
accept, asyncStore, clone, equals, equalsExcludingProperties, getAsyncStoreConfig, getPurgerThreads, getSingletonStoreConfig, getTypedProperties, hashCode, hashCodeExcludingProperties, isFetchPersistentState, isIgnoreModifications, isPurgeOnStartup, isPurgeSynchronously, purgerThreads, setAsyncStoreConfig, setFetchPersistentState, setIgnoreModifications, setPurgeOnStartup, setPurgerThreads, setPurgeSynchronously, setSingletonStoreConfig, setTypedProperties, singletonStore
 
Methods inherited from class org.infinispan.loaders.AbstractCacheLoaderConfig
getCacheLoaderClassName, getClassLoader, getProperties, setCacheLoaderClassName, setProperties, setProperties
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.loaders.CacheLoaderConfig
getCacheLoaderClassName, getClassLoader, setCacheLoaderClassName
 

Constructor Detail

FileCacheStoreConfig

public FileCacheStoreConfig()
Method Detail

getLocation

public String getLocation()

setLocation

@Deprecated
public void setLocation(String location)
Deprecated. The visibility of this will be reduced, use location(String)


location

public FileCacheStoreConfig location(String location)

getStreamBufferSize

public int getStreamBufferSize()

setStreamBufferSize

@Deprecated
public void setStreamBufferSize(int streamBufferSize)
Deprecated. The visibility of this will be reduced, use streamBufferSize(int) instead


streamBufferSize

public FileCacheStoreConfig streamBufferSize(int streamBufferSize)

purgeOnStartup

public FileCacheStoreConfig purgeOnStartup(Boolean purgeOnStartup)
Description copied from class: AbstractCacheStoreConfig
If true, purges this cache store when it starts up.

Specified by:
purgeOnStartup in interface CacheStoreConfig
Overrides:
purgeOnStartup in class AbstractCacheStoreConfig

purgeSynchronously

public FileCacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
Description copied from class: AbstractCacheStoreConfig
If true, CacheStore#purgeExpired() call will be done synchronously

Specified by:
purgeSynchronously in interface CacheStoreConfig
Overrides:
purgeSynchronously in class AbstractCacheStoreConfig

fetchPersistentState

public FileCacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
Description copied from class: AbstractCacheStoreConfig
If true, fetch persistent state when joining a cluster. If multiple cache stores are chained, only one of them can have this property enabled. Persistent state transfer with a shared cache store does not make sense, as the same persistent store that provides the data will just end up receiving it. Therefore, if a shared cache store is used, the cache will not allow a persistent state transfer even if a cache store has this property set to true. Finally, setting it to true only makes sense if in a clustered environment, and only 'replication' and 'invalidation' cluster modes are supported.

Specified by:
fetchPersistentState in interface CacheStoreConfig
Overrides:
fetchPersistentState in class AbstractCacheStoreConfig

ignoreModifications

public FileCacheStoreConfig ignoreModifications(Boolean ignoreModifications)
Description copied from class: AbstractCacheStoreConfig
If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be applied to the cache store. This means that the cache store could become out of sync with the cache.

Specified by:
ignoreModifications in interface CacheStoreConfig
Overrides:
ignoreModifications in class AbstractCacheStoreConfig

getFsyncInterval

public long getFsyncInterval()

setFsyncInterval

public void setFsyncInterval(long fsyncInterval)

fsyncInterval

public FileCacheStoreConfig fsyncInterval(long fsyncInterval)

getFsyncMode

public FileCacheStoreConfig.FsyncMode getFsyncMode()

setFsyncMode

public void setFsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode)

fsyncMode

public FileCacheStoreConfig fsyncMode(FileCacheStoreConfig.FsyncMode fsyncMode)

-->

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