public class RegionHelper extends Object
RegionDescription. Methods are thread-safe.| Constructor and Description |
|---|
RegionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static com.gemstone.gemfire.cache.Region |
createRegion(String regionConfig)
Creates the region using the given region configuration in the current
cache.
|
static com.gemstone.gemfire.cache.Region |
createRegion(String regionName,
com.gemstone.gemfire.cache.AttributesFactory factory)
Creates the region with the given name in the current cache.
|
static com.gemstone.gemfire.cache.Region |
createRegion(String regionName,
com.gemstone.gemfire.cache.RegionAttributes attributes)
Creates the region with the given name in the current cache.
|
static com.gemstone.gemfire.cache.Region |
createRegion(String regionName,
String regionConfig)
Creates the region with the given name in the current cache.
|
static com.gemstone.gemfire.cache.AttributesFactory |
getAttributesFactory(String regionConfig)
Returns an attributes factory for the given region configuration from
RegionPrms.names, configured using the corresponding
RegionDescription. |
static com.gemstone.gemfire.cache.AttributesFactory |
getAttributesFactory(String regionName,
String regionConfig)
Returns an attributes factory for the given region name and configuration
from
RegionPrms.names, configured using the corresponding
RegionDescription. |
static com.gemstone.gemfire.cache.Region |
getRegion(String regionName)
Returns the region with the given name in the current cache, or null if
no region with that name exists.
|
static com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes(com.gemstone.gemfire.cache.AttributesFactory factory)
Returns region attributes created using the given attributes factory.
|
static com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes(String regionConfig)
Returns a region attributes clone for the given region configuration
from
RegionPrms.names, using a factory configured using the
corresponding RegionDescription. |
static com.gemstone.gemfire.cache.RegionAttributes |
getRegionAttributes(String regionName,
String regionConfig)
Returns a region attributes clone for the given region name and
configuration from
RegionPrms.names, using a factory configured
using the corresponding RegionDescription. |
static RegionDescription |
getRegionDescription(String regionConfig)
Returns the
RegionDescription with the given configuration name
from RegionPrms.names. |
static String |
regionAttributesToString(com.gemstone.gemfire.cache.RegionAttributes attributes)
Returns the given region attributes as a string.
|
public static com.gemstone.gemfire.cache.Region createRegion(String regionConfig)
RegionDescription
corresponding to the region configuration from RegionPrms.names.
The region name is the corresponding value of RegionPrms.regionName.
Lazily creates the disk store specified by #diskStoreName, using DiskStoreHelper.createDiskStore(String).
Lazily creates the HDFS store specified by #hdfsStoreName, using HDFSStoreHelper.createHDFSStore(String).
Lazily creates the pool specified by RegionPrms.poolName, using
PoolHelper.createPool(String).
HydraRuntimeException - if an attempt is made to reconfigure an
existing region.public static com.gemstone.gemfire.cache.Region createRegion(String regionName, String regionConfig)
RegionDescription corresponding to the
given region configuration from RegionPrms.names.
Lazily creates the disk store specified by #diskStoreName, using DiskStoreHelper.createDiskStore(String).
Lazily creates the HDFS store specified by #hdfsStoreName, using HDFSStoreHelper.createHDFSStore(String).
Lazily creates the pool specified by RegionPrms.poolName, using
PoolHelper.createPool(String).
HydraRuntimeException - if an attempt is made to reconfigure an
existing region.public static com.gemstone.gemfire.cache.Region createRegion(String regionName, com.gemstone.gemfire.cache.AttributesFactory factory)
HydraRuntimeException - if an attempt is made to reconfigure an
existing region.public static com.gemstone.gemfire.cache.Region createRegion(String regionName, com.gemstone.gemfire.cache.RegionAttributes attributes)
HydraRuntimeException - if an attempt is made to reconfigure an
existing region.public static com.gemstone.gemfire.cache.Region getRegion(String regionName)
public static com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes(String regionName, String regionConfig)
RegionPrms.names, using a factory configured
using the corresponding RegionDescription.
Makes the specified region name available to the fixed partition mapping algorithm, if any.
public static com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes(String regionConfig)
RegionPrms.names, using a factory configured using the
corresponding RegionDescription.
Makes the configured region name available to the fixed partition mapping algorithm, if any.
public static com.gemstone.gemfire.cache.RegionAttributes getRegionAttributes(com.gemstone.gemfire.cache.AttributesFactory factory)
public static String regionAttributesToString(com.gemstone.gemfire.cache.RegionAttributes attributes)
public static com.gemstone.gemfire.cache.AttributesFactory getAttributesFactory(String regionName, String regionConfig)
RegionPrms.names, configured using the corresponding
RegionDescription.
Makes the specified region name available to the fixed partition mapping algorithm, if any.
public static com.gemstone.gemfire.cache.AttributesFactory getAttributesFactory(String regionConfig)
RegionPrms.names, configured using the corresponding
RegionDescription.
Makes the configured region name available to the fixed partition mapping algorithm, if any.
public static RegionDescription getRegionDescription(String regionConfig)
RegionDescription with the given configuration name
from RegionPrms.names.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.