public Region createRegion(String name, String refid) throws RegionExistsException, TimeoutException { RegionCreation region = new RegionCreation(this, name, refid); this.addRootRegion(region); return region; }
/** * Examines the given <code>ClientCache</code> and from it generates XML data that is written to * the given <code>PrintWriter</code>. The schema/dtd for the current version of GemFire is used. * * @param useSchema Should the generated XML reference a schema (as opposed to a DTD)? As of 8.1 * this value is ignored and always true. */ public static void generate(ClientCache cache, PrintWriter pw, boolean useSchema) { (new CacheXmlGenerator(cache, true /* latest version always true */, VERSION_LATEST, true)) .generate(pw); }
/** * Examines the given <code>Cache</code> and from it generates XML data that is written to the * given <code>PrintWriter</code>. */ public static void generate(Cache cache, PrintWriter pw) { generate(cache, pw, true /* useSchema */); }
public void setCompressor(Compressor compressor) { this.compressor = compressor; setHasCompressor(true); // Cloning must be enabled when a compressor is set if (compressor != null) { setCloningEnable(true); } }
/** * Creates and initializes an instance of {@link Declarable} from the contents of the stack. * * @throws CacheXmlException Something goes wrong while instantiating or initializing the * declarable */ private Declarable createDeclarable() { return createDeclarable(cache, stack); }
@Override public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { return handler.resolveEntity(publicId, systemId); }
@Override public Index createIndex(String indexName, String indexedExpression, String regionPath) throws IndexInvalidException, IndexNameConflictException, IndexExistsException, RegionNotFoundException, UnsupportedOperationException { return createIndex(indexName, indexedExpression, regionPath, ""); }
public CustomExpiry setCustomEntryTimeToLive(CustomExpiry custom) { CustomExpiry old = this.customEntryTimeToLive; this.customEntryTimeToLive = custom; setHasCustomEntryTimeToLive(true); return old; }
public CustomExpiry setCustomEntryIdleTimeout(CustomExpiry custom) { CustomExpiry old = this.customEntryIdleTimeout; this.customEntryIdleTimeout = custom; setHasCustomEntryIdleTimeout(true); return old; }
@Override public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { return resolveEntity(null, publicId, null, systemId); }
/** * * @return Integer value for named attribute or null if attribute not defined. * @since GemFire 8.1 */ public static Integer getInteger(final Attributes attributes, final String name) { return getInteger(attributes, name, null); }
/** * * @return Enum value for named attribute or null if attribute not defined. * @since GemFire 8.1 */ public static <E extends Enum<E>> E getEnum(final Attributes attributes, final String name, final Class<E> clazz) { return getEnum(attributes, name, clazz, null); }
public CacheWriter setCacheWriter(CacheWriter cacheWriter) { CacheWriter old = this.cacheWriter; this.cacheWriter = cacheWriter; setHasCacheWriter(true); return old; }
public ExpirationAttributes setRegionIdleTimeout(ExpirationAttributes idleTimeout) { ExpirationAttributes old = this.regionIdleTimeout; this.regionIdleTimeout = idleTimeout; setHasRegionIdleTimeout(true); return old; }
/** @since GemFire 5.0 */ public void setSubscriptionAttributes(SubscriptionAttributes pa) { this.subscriptionAttributes = pa; setHasSubscriptionAttributes(true); }
/** * Examines the given <code>Cache</code> and from it generates XML data that is written to the * given <code>PrintWriter</code>. */ public static void generate(ClientCache cache, PrintWriter pw) { generate(cache, pw, true /* useSchema */); }
@Override public Index createKeyIndex(String indexName, String indexedExpression, String regionPath) throws IndexInvalidException, IndexNameConflictException, IndexExistsException, RegionNotFoundException, UnsupportedOperationException { return createIndex(indexName, IndexType.PRIMARY_KEY, indexedExpression, regionPath, ""); }
@Override public Index createHashIndex(String indexName, String indexedExpression, String regionPath, String imports) throws IndexInvalidException, IndexNameConflictException, IndexExistsException, RegionNotFoundException, UnsupportedOperationException { return createIndex(indexName, IndexType.HASH, indexedExpression, regionPath, imports); }
@Override public Index createIndex(String indexName, String indexedExpression, String regionPath, String imports) throws IndexInvalidException, IndexNameConflictException, IndexExistsException, RegionNotFoundException, UnsupportedOperationException { return createIndex(indexName, IndexType.FUNCTIONAL, indexedExpression, regionPath, imports); }