org.jboss.cache.loader
Class SingletonStoreDefaultConfig

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
      extended by org.jboss.cache.config.PluggableConfigurationComponent
          extended by org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
              extended by org.jboss.cache.loader.SingletonStoreDefaultConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent

public class SingletonStoreDefaultConfig
extends CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig

Default singleton store cache loader configuration implementation, which is provided with the default singleton store cache loader implementation. It provides with the capability of defining whether to push the in memory state to cache loader when becoming the coordinator within a time constraint.

Author:
Galder Zamarreno
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.cache.config.PluggableConfigurationComponent
className, properties
 
Fields inherited from class org.jboss.cache.config.ConfigurationComponent
log
 
Constructor Summary
SingletonStoreDefaultConfig()
          Default constructor that sets default values for singleton store cache loader configuration taking in account that this configuration belongs to the default singleton store cache loader implementation.
SingletonStoreDefaultConfig(CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig base)
          Constructor that sets the assumed values for the default singleton store cache loader implementation and also the properties, as per the properties section defined in the XML configuration.
 
Method Summary
 boolean equals(Object obj)
           
 int getPushStateWhenCoordinatorTimeout()
           
 String getSingletonStoreClass()
           
 int hashCode()
           
 boolean isPushStateWhenCoordinator()
           
 boolean isSingletonStoreEnabled()
           
 void setPushStateWhenCoordinator(boolean pushStateWhenCoordinator)
           
 void setPushStateWhenCoordinatorTimeout(int pushStateWhenCoordinatorTimeout)
           
 void setSingletonStoreClass(String singletonStoreClass)
           
 void setSingletonStoreEnabled(boolean singletonStoreEnabled)
           
 void setSingletonStoreproperties(Properties props)
          Takes the properties defined and populates the individual instance fields of the default singleton store cache loader configuration.
 
Methods inherited from class org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
clone, getSingletonStoreproperties, toString
 
Methods inherited from class org.jboss.cache.config.PluggableConfigurationComponent
getClassName, getProperties, setClassName, setProperties, setProperties
 
Methods inherited from class org.jboss.cache.config.ConfigurationComponent
addChildConfig, addChildConfigs, passCacheToChildConfig, removeChildConfig, removeChildConfigs, replaceChildConfig, replaceChildConfigs, setCache, testImmutability
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingletonStoreDefaultConfig

public SingletonStoreDefaultConfig()
Default constructor that sets default values for singleton store cache loader configuration taking in account that this configuration belongs to the default singleton store cache loader implementation.


SingletonStoreDefaultConfig

public SingletonStoreDefaultConfig(CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig base)
Constructor that sets the assumed values for the default singleton store cache loader implementation and also the properties, as per the properties section defined in the XML configuration.

Parameters:
base - contains properties set in XML configuration
Method Detail

isSingletonStoreEnabled

public boolean isSingletonStoreEnabled()
Overrides:
isSingletonStoreEnabled in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig

setSingletonStoreEnabled

public void setSingletonStoreEnabled(boolean singletonStoreEnabled)
Overrides:
setSingletonStoreEnabled in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig

getSingletonStoreClass

public String getSingletonStoreClass()
Overrides:
getSingletonStoreClass in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig

setSingletonStoreClass

public void setSingletonStoreClass(String singletonStoreClass)
Overrides:
setSingletonStoreClass in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig

setSingletonStoreproperties

public void setSingletonStoreproperties(Properties props)
Takes the properties defined and populates the individual instance fields of the default singleton store cache loader configuration.

Overrides:
setSingletonStoreproperties in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig
Parameters:
props - is an instance of Properties containing these values.

isPushStateWhenCoordinator

public boolean isPushStateWhenCoordinator()

setPushStateWhenCoordinator

public void setPushStateWhenCoordinator(boolean pushStateWhenCoordinator)

getPushStateWhenCoordinatorTimeout

public int getPushStateWhenCoordinatorTimeout()

setPushStateWhenCoordinatorTimeout

public void setPushStateWhenCoordinatorTimeout(int pushStateWhenCoordinatorTimeout)

equals

public boolean equals(Object obj)
Overrides:
equals in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig

hashCode

public int hashCode()
Overrides:
hashCode in class CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig


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