public class DeclarativeGenerator extends Object
| Constructor and Description |
|---|
DeclarativeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createDeclarativeXml(String xmlFileSpec,
com.gemstone.gemfire.cache.Cache aCache,
boolean includeKeysValues,
boolean useDTD)
Create a declarative caching xml file of the given name that defines the
given cache.
|
static void |
createDeclarativeXml(String xmlFileSpec,
CacheDefinition cacheDef,
ArrayList rootRegions,
boolean useDTD)
Create a declarative caching xml file of the given name that defines
the given CacheDefinition and root RegionDefinitions, including
any subregions of the root regions.
|
static void |
createDeclarativeXml(String xmlFileSpec,
CacheDefinition cacheDef,
RegionDefinition rootRegion,
boolean useDTD)
Create a declarative caching xml file of the given name that defines
the given CacheDefinition and root RegionDefinitions, including
any subregions of the root regions.
|
public static void createDeclarativeXml(String xmlFileSpec, com.gemstone.gemfire.cache.Cache aCache, boolean includeKeysValues, boolean useDTD)
xmlFileSpec - The full directory path and file spec for the
declarative xml file.aCache - The cache to define in the declarative xml file
(including its regions)includeKeysValues - True if the declarative xml file should define
any keys/values in the regions being mimicked, false otherwise.useDTD - - true if the generated xml should reference gemfire's
dtd, false if it should reference gemfire's xsd Unless you
need a specific use case, calling this with a random boolean
is fine.public static void createDeclarativeXml(String xmlFileSpec, CacheDefinition cacheDef, RegionDefinition rootRegion, boolean useDTD)
xmlFileSpec - The full directory path and file spec for the
declarative xml file.cacheDef - The cache to define in the declarative xml file.rootRegion - A RegionDefinition that represents a root region.
If this region contain subregions, then they will be defined
also, including any of their subregions, etc.useDTD - - true if the generated xml should reference gemfire's
dtd, false if it should reference gemfire's xsd Unless you
need a specific use case, calling this with a random boolean
is fine.public static void createDeclarativeXml(String xmlFileSpec, CacheDefinition cacheDef, ArrayList rootRegions, boolean useDTD)
xmlFileSpec - The full directory path and file spec for the
declarative xml file.cacheDef - The cache to define in the declarative xml file.rootRegions - An ArrayList of RegionDefinitions that represent
root regions of the cache to be defined in the declarative xml
file. If these regions contain subregions, then they will be
defined also, including any of their subregions, etc.useDTD - - true if the generated xml should reference gemfire's
dtd, false if it should reference gemfire's xsd Unless you
need a specific use case, calling this with a random boolean
is fine.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.