org.infinispan.config
Class Configuration.StateRetrievalType

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.config.Configuration.StateRetrievalType
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, Configuration.StateRetrievalConfig, JAXBUnmarshallable
Enclosing class:
Configuration

public static class Configuration.StateRetrievalType
extends AbstractNamedCacheConfigurationBean
implements Configuration.StateRetrievalConfig

Configures how state is retrieved when a new cache joins the cluster. This element is only used with invalidation and replication clustered modes.

See Also:
Configuration reference, Serialized Form

Field Summary
protected  Boolean alwaysProvideInMemoryState
           
protected  Boolean fetchInMemoryState
           
protected  Long initialRetryWaitTime
           
protected  Long logFlushTimeout
           
protected  Integer maxNonProgressingLogWrites
           
protected  Integer numRetries
           
protected  Integer retryWaitTimeIncreaseFactor
           
protected  Long timeout
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
Configuration.StateRetrievalType()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 Configuration.StateRetrievalConfig alwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
          If true, this will allow the cache to provide in-memory state to a neighbor, even if the cache is not configured to fetch state from its neighbors (fetchInMemoryState is false)
 boolean equals(Object o)
           
 Configuration.StateRetrievalConfig fetchInMemoryState(Boolean fetchInMemoryState)
          If true, this will cause the cache to ask neighboring caches for state when it starts up, so the cache starts 'warm', although it will impact startup time.
 int hashCode()
           
 Configuration.StateRetrievalConfig initialRetryWaitTime(Long initialRetryWaitTime)
          Initial wait time when backing off before retrying state transfer retrieval
 Configuration.StateRetrievalConfig logFlushTimeout(Long logFlushTimeout)
          This is the maximum amount of time to run a cluster-wide flush, to allow for syncing of transaction logs.
 Configuration.StateRetrievalConfig maxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)
          This is the maximum number of non-progressing transaction log writes after which a brute-force flush approach is resorted to, to synchronize transaction logs.
 Configuration.StateRetrievalConfig numRetries(Integer numRetries)
          Number of state retrieval retries before giving up and aborting startup.
 Configuration.StateRetrievalConfig retryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)
          Wait time increase factor over successive state retrieval backoffs
 void setAlwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
           
 void setFetchInMemoryState(Boolean fetchInMemoryState)
           
 void setInitialRetryWaitTime(Long initialRetryWaitTime)
           
 void setLogFlushTimeout(Long logFlushTimeout)
           
 void setMaxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)
           
 void setNumRetries(Integer numRetries)
           
 void setRetryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)
           
 void setTimeout(Long timeout)
           
 Configuration.StateRetrievalConfig timeout(Long timeout)
          This is the maximum amount of time - in milliseconds - to wait for state from neighboring caches, before throwing an exception and aborting startup.
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
clone, 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, toString, wait, wait, wait
 

Field Detail

fetchInMemoryState

@Dynamic
protected Boolean fetchInMemoryState

alwaysProvideInMemoryState

protected Boolean alwaysProvideInMemoryState

timeout

@Dynamic
protected Long timeout

initialRetryWaitTime

protected Long initialRetryWaitTime

retryWaitTimeIncreaseFactor

protected Integer retryWaitTimeIncreaseFactor

numRetries

protected Integer numRetries

logFlushTimeout

protected Long logFlushTimeout

maxNonProgressingLogWrites

protected Integer maxNonProgressingLogWrites
Constructor Detail

Configuration.StateRetrievalType

public Configuration.StateRetrievalType()
Method Detail

setFetchInMemoryState

public void setFetchInMemoryState(Boolean fetchInMemoryState)

setAlwaysProvideInMemoryState

public void setAlwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)

setInitialRetryWaitTime

public void setInitialRetryWaitTime(Long initialRetryWaitTime)

setRetryWaitTimeIncreaseFactor

public void setRetryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)

setNumRetries

public void setNumRetries(Integer numRetries)

setTimeout

public void setTimeout(Long timeout)

setLogFlushTimeout

public void setLogFlushTimeout(Long logFlushTimeout)

setMaxNonProgressingLogWrites

public void setMaxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)

fetchInMemoryState

public Configuration.StateRetrievalConfig fetchInMemoryState(Boolean fetchInMemoryState)
Description copied from interface: Configuration.StateRetrievalConfig
If true, this will cause the cache to ask neighboring caches for state when it starts up, so the cache starts 'warm', although it will impact startup time.

Specified by:
fetchInMemoryState in interface Configuration.StateRetrievalConfig

alwaysProvideInMemoryState

public Configuration.StateRetrievalConfig alwaysProvideInMemoryState(Boolean alwaysProvideInMemoryState)
Description copied from interface: Configuration.StateRetrievalConfig
If true, this will allow the cache to provide in-memory state to a neighbor, even if the cache is not configured to fetch state from its neighbors (fetchInMemoryState is false)

Specified by:
alwaysProvideInMemoryState in interface Configuration.StateRetrievalConfig

initialRetryWaitTime

public Configuration.StateRetrievalConfig initialRetryWaitTime(Long initialRetryWaitTime)
Description copied from interface: Configuration.StateRetrievalConfig
Initial wait time when backing off before retrying state transfer retrieval

Specified by:
initialRetryWaitTime in interface Configuration.StateRetrievalConfig

retryWaitTimeIncreaseFactor

public Configuration.StateRetrievalConfig retryWaitTimeIncreaseFactor(Integer retryWaitTimeIncreaseFactor)
Description copied from interface: Configuration.StateRetrievalConfig
Wait time increase factor over successive state retrieval backoffs

Specified by:
retryWaitTimeIncreaseFactor in interface Configuration.StateRetrievalConfig

numRetries

public Configuration.StateRetrievalConfig numRetries(Integer numRetries)
Description copied from interface: Configuration.StateRetrievalConfig
Number of state retrieval retries before giving up and aborting startup.

Specified by:
numRetries in interface Configuration.StateRetrievalConfig

timeout

public Configuration.StateRetrievalConfig timeout(Long timeout)
Description copied from interface: Configuration.StateRetrievalConfig
This is the maximum amount of time - in milliseconds - to wait for state from neighboring caches, before throwing an exception and aborting startup.

Specified by:
timeout in interface Configuration.StateRetrievalConfig

logFlushTimeout

public Configuration.StateRetrievalConfig logFlushTimeout(Long logFlushTimeout)
Description copied from interface: Configuration.StateRetrievalConfig
This is the maximum amount of time to run a cluster-wide flush, to allow for syncing of transaction logs.

Specified by:
logFlushTimeout in interface Configuration.StateRetrievalConfig

maxNonProgressingLogWrites

public Configuration.StateRetrievalConfig maxNonProgressingLogWrites(Integer maxNonProgressingLogWrites)
Description copied from interface: Configuration.StateRetrievalConfig
This is the maximum number of non-progressing transaction log writes after which a brute-force flush approach is resorted to, to synchronize transaction logs.

Specified by:
maxNonProgressingLogWrites in interface Configuration.StateRetrievalConfig

accept

public void accept(ConfigurationBeanVisitor v)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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