Package org.apache.geode.cache
Class DynamicRegionFactory.Config
java.lang.Object
org.apache.geode.cache.DynamicRegionFactory.Config
- Enclosing class:
- DynamicRegionFactory
Configuration for dynamic region factory. The default attributes are:
- diskDir:
null - poolName:
null - persistBackup:
true - registerInterest:
true
- Since:
- GemFire 4.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal FileThe directory where the factory'spersistBackupfiles are placedfinal booleanCauses the factory to be persisted on disk.final StringThe ${link Pool} to be used by a client factory to communicate with the server-side factory.final booleanCauses regions created by the factory to register interest in all keys in a corresponding server cache region -
Constructor Summary
ConstructorsConstructorDescriptionConfig()Creates a configuration with the default attributes.Creates a configuration with defaults and the given diskDir and poolName.Creates a configuration with the given attributes -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the disk directory that the dynamic region factory data will be written to.booleanReturns true if the factory is persisted to disk; false if not.Returns the name of thePoolassociated with the dynamic region factory.booleanReturns true if the region will register interest in all keys of a corresponding server cache regioninthashCode()
-
Field Details
-
persistBackup
public final boolean persistBackupCauses the factory to be persisted on disk. SeediskDir -
diskDir
The directory where the factory'spersistBackupfiles are placed -
registerInterest
public final boolean registerInterestCauses regions created by the factory to register interest in all keys in a corresponding server cache region -
poolName
The ${link Pool} to be used by a client factory to communicate with the server-side factory.
-
-
Constructor Details
-
Config
public Config()Creates a configuration with the default attributes. -
Config
Creates a configuration with defaults and the given diskDir and poolName.- Parameters:
diskDir- the directory to which the region's data is writtenpoolName- the name of the connection pool to use
-
Config
Creates a configuration with the given attributes- Parameters:
diskDir- the directory to which the region's data is writtenpoolName- the name of the connection pool to usepersistBackup- boolean specifying if a persistent backup should be made of the regionregisterInterest- whether regions created by the factory will register interest in all keys in a corresponding server cache region
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getPersistBackup
public boolean getPersistBackup()Returns true if the factory is persisted to disk; false if not.- Returns:
- whether the factory is persisted to disk
-
getRegisterInterest
public boolean getRegisterInterest()Returns true if the region will register interest in all keys of a corresponding server cache region- Returns:
- whether the region will register interest in all keys of a corresponding server cache region
-
getDiskDir
Returns the disk directory that the dynamic region factory data will be written to. Returns null if no directory has been specified. The diskDir is only used ifpersistBackupis true.- Returns:
- the disk directory that the dynamic region factory data will be written to
-
getPoolName
Returns the name of thePoolassociated with the dynamic region factory. Returns null if there is no connection pool for dynamic regions.- Returns:
- the name of the
Poolassociated with the dynamic region factory
-