org.jboss.cache.config
Class CacheLoaderConfig.IndividualCacheLoaderConfig

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
AdjListJDBCCacheLoaderConfig, AsyncCacheLoaderConfig, BdbjeCacheLoaderConfig, ClusteredCacheLoaderConfig, FileCacheLoaderConfig, JdbmCacheLoaderConfig, LocalDelegatingCacheLoaderConfig, TcpDelegatingCacheLoaderConfig
Enclosing class:
CacheLoaderConfig

public static class CacheLoaderConfig.IndividualCacheLoaderConfig
extends ConfigurationComponent

Configuration object that holds the confguration of an individual cache loader.

Author:
Manik Surtani (manik@jboss.org), Galder Zamarreno
See Also:
Serialized Form

Nested Class Summary
static class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
          Configuration for a SingletonStoreCacheLoader
 
Field Summary
 
Fields inherited from class org.jboss.cache.config.ConfigurationComponent
log
 
Constructor Summary
CacheLoaderConfig.IndividualCacheLoaderConfig()
           
 
Method Summary
 CacheLoaderConfig.IndividualCacheLoaderConfig clone()
           
 boolean equals(Object obj)
           
protected  boolean equalsExcludingProperties(Object obj)
           
 CacheLoader getCacheLoader()
          Provides the ability to get and set a running cache loader, which, if exists, will be used rather than constructing a new one.
 String getClassName()
           
 Properties getProperties()
           
 CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig getSingletonStoreConfig()
           
 int hashCode()
           
protected  int hashCodeExcludingProperties()
           
 boolean isAsync()
           
 boolean isFetchPersistentState()
           
 boolean isIgnoreModifications()
           
 boolean isPurgeOnStartup()
           
protected  void populateFromBaseConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)
           
 void setAsync(boolean async)
           
 void setCacheLoader(CacheLoader cacheLoader)
          Provides the ability to get and set a running cache loader, which, if exists, will be used rather than constructing a new one.
 void setClassName(String className)
           
 void setFetchPersistentState(boolean fetchPersistentState)
           
 void setIgnoreModifications(boolean ignoreModifications)
           
 void setProperties(Properties properties)
           
 void setProperties(String properties)
           
 void setPurgeOnStartup(boolean purgeOnStartup)
           
 void setSingletonStoreConfig(CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig singletonStoreConfig)
           
 String toString()
           
 
Methods inherited from class org.jboss.cache.config.ConfigurationComponent
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, safeEquals, setCache, testImmutability
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheLoaderConfig.IndividualCacheLoaderConfig

public CacheLoaderConfig.IndividualCacheLoaderConfig()
Method Detail

populateFromBaseConfig

protected void populateFromBaseConfig(CacheLoaderConfig.IndividualCacheLoaderConfig base)

isPurgeOnStartup

public boolean isPurgeOnStartup()

isFetchPersistentState

public boolean isFetchPersistentState()

setFetchPersistentState

public void setFetchPersistentState(boolean fetchPersistentState)

setClassName

public void setClassName(String className)

getClassName

public String getClassName()

setAsync

public void setAsync(boolean async)

isAsync

public boolean isAsync()

setIgnoreModifications

public void setIgnoreModifications(boolean ignoreModifications)

isIgnoreModifications

public boolean isIgnoreModifications()

setProperties

public void setProperties(String properties)
                   throws IOException
Throws:
IOException

setProperties

public void setProperties(Properties properties)

getProperties

public Properties getProperties()

setPurgeOnStartup

public void setPurgeOnStartup(boolean purgeOnStartup)

getSingletonStoreConfig

public CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig getSingletonStoreConfig()

setSingletonStoreConfig

public void setSingletonStoreConfig(CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig singletonStoreConfig)

getCacheLoader

public CacheLoader getCacheLoader()
Provides the ability to get and set a running cache loader, which, if exists, will be used rather than constructing a new one. Primarily to facilitate testing with mock objects.

Returns:
cache loader, if one exists
Since:
2.1.0

setCacheLoader

public void setCacheLoader(CacheLoader cacheLoader)
Provides the ability to get and set a running cache loader, which, if exists, will be used rather than constructing a new one. Primarily to facilitate testing with mock objects.

Parameters:
cacheLoader - cacheLoader to set
Since:
2.1.0

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

equalsExcludingProperties

protected boolean equalsExcludingProperties(Object obj)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

hashCodeExcludingProperties

protected int hashCodeExcludingProperties()

toString

public String toString()
Overrides:
toString in class Object

clone

public CacheLoaderConfig.IndividualCacheLoaderConfig clone()
                                                    throws CloneNotSupportedException
Overrides:
clone in class ConfigurationComponent
Throws:
CloneNotSupportedException


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