public class CacheDefinition extends Definition
ATTR_DELIM, RegDefRand, SPEC_NAME_DELIM, SPEC_TERMINATOR, specMap, specName, tokenArr, tokenIndex, WHITE_SPACE_DELIM| Modifier and Type | Method and Description |
|---|---|
com.gemstone.gemfire.cache.Cache |
createCache()
Create a cache using this instance of CacheDefinition.
|
com.gemstone.gemfire.cache.Cache |
createCache(String xmlFile)
Create a cache using this instance of CacheDefinition.
|
static CacheDefinition |
createCacheDefinition(Long hydraSpecParam,
String specName)
Creates a cache definition with the specified specName.
|
Boolean |
getCopyOnRead() |
Float |
getCriticalHeapPercentage() |
Float |
getEvictionHeapPercentage() |
Integer |
getLockLease() |
Integer |
getLockTimeout() |
Integer |
getSearchTimeout() |
protected void |
initializeWithSpec(String cacheSpecStr)
Initialize this instance with the cache spec given by the String.
|
void |
setCopyOnRead(boolean copyOnReadArg) |
void |
setCriticalHeapPercentage(float pct) |
void |
setEvictionHeapPercentage(float pct) |
void |
setLockLease(int lockLeaseArg) |
void |
setLockTimeout(int lockTimeoutArg) |
void |
setSearchTimeout(int searchTimeoutArg) |
String |
toString()
Return this instance as a string.
|
getDefinition, getNextToken, getTokenBoolean, getTokenClass, getTokenEquals, getTokenFloat, getTokenFromList, getTokenInteger, getTokenList, getTokenLong, getTokenString, initializeSpecMap, tokensToStringprotected void initializeWithSpec(String cacheSpecStr)
initializeWithSpec in class DefinitioncacheSpecStr - A string containing a cache spec.public String toString()
toString in class Definitionpublic com.gemstone.gemfire.cache.Cache createCache(String xmlFile)
xmlFile - The name of an xmlFile to use when the cache is created.
This will cause the creation of any regions and/or entries.public com.gemstone.gemfire.cache.Cache createCache()
public static CacheDefinition createCacheDefinition(Long hydraSpecParam, String specName)
hydraSpecParam - The name of the hydra parameter containing the spec string.specName - The name of the attribute specification, defined in hydraSpecParam.TestException - if there is no spec named specNamepublic Boolean getCopyOnRead()
public Integer getLockTimeout()
public Integer getLockLease()
public Integer getSearchTimeout()
public Float getEvictionHeapPercentage()
public Float getCriticalHeapPercentage()
public void setCopyOnRead(boolean copyOnReadArg)
public void setLockTimeout(int lockTimeoutArg)
public void setLockLease(int lockLeaseArg)
public void setSearchTimeout(int searchTimeoutArg)
public void setEvictionHeapPercentage(float pct)
public void setCriticalHeapPercentage(float pct)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.