public abstract class AbstractCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected GemFireCache |
cache |
protected float |
criticalHeapPercentage |
protected static float |
DEFAULT_CRITICAL_HEAP_PERCENTAGE |
protected static float |
DEFAULT_EVICTION_HEAP_PERCENTAGE |
protected static java.lang.String |
DEFAULT_LOG_FILE_NAME |
protected static java.lang.String |
DEFAULT_STATISTIC_ARCHIVE_FILE_NAME |
protected float |
evictionHeapPercentage |
protected java.util.Map<java.lang.String,java.lang.String> |
gemfireProperties |
protected static AbstractCache |
instance
Instance reference which is set in static initialization blocks of any subclasses.
|
protected static org.slf4j.Logger |
LOGGER |
protected boolean |
rebalance |
Constructor and Description |
---|
AbstractCache() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
closeCache() |
protected java.util.Properties |
createDistributedSystemProperties() |
protected abstract void |
createOrRetrieveCache() |
GemFireCache |
getCache() |
protected java.io.File |
getCacheXmlFile() |
java.lang.String |
getCacheXmlFileName() |
float |
getCriticalHeapPercentage() |
protected abstract java.lang.String |
getDefaultCacheXmlFileName() |
float |
getEvictionHeapPercentage() |
java.util.Map<java.lang.String,java.lang.String> |
getGemFireProperties() |
protected java.io.File |
getLogFile() |
java.lang.String |
getLogFileName() |
org.slf4j.Logger |
getLogger() |
boolean |
getRebalance() |
protected java.io.File |
getStatisticArchiveFile() |
java.lang.String |
getStatisticArchiveFileName() |
protected void |
initializeResourceManager() |
boolean |
isStarted() |
void |
lifecycleEvent(LifecycleTypeAdapter eventType) |
protected abstract void |
rebalanceCache() |
void |
setCriticalHeapPercentage(java.lang.String criticalHeapPercentage) |
void |
setEvictionHeapPercentage(java.lang.String evictionHeapPercentage) |
void |
setProperty(java.lang.String name,
java.lang.String value) |
void |
setRebalance(boolean rebalance) |
java.lang.String |
toString() |
protected GemFireCache cache
protected static final java.lang.String DEFAULT_LOG_FILE_NAME
protected static final java.lang.String DEFAULT_STATISTIC_ARCHIVE_FILE_NAME
protected static final float DEFAULT_EVICTION_HEAP_PERCENTAGE
protected static final float DEFAULT_CRITICAL_HEAP_PERCENTAGE
protected static final org.slf4j.Logger LOGGER
protected float evictionHeapPercentage
protected float criticalHeapPercentage
protected boolean rebalance
protected final java.util.Map<java.lang.String,java.lang.String> gemfireProperties
protected static AbstractCache instance
public void lifecycleEvent(LifecycleTypeAdapter eventType)
public boolean isStarted()
public void close()
public GemFireCache getCache()
public java.lang.String getLogFileName()
public java.lang.String getStatisticArchiveFileName()
public java.lang.String getCacheXmlFileName()
protected java.io.File getCacheXmlFile()
public float getEvictionHeapPercentage()
public void setEvictionHeapPercentage(java.lang.String evictionHeapPercentage)
public float getCriticalHeapPercentage()
public void setCriticalHeapPercentage(java.lang.String criticalHeapPercentage)
public void setRebalance(boolean rebalance)
public boolean getRebalance()
public java.util.Map<java.lang.String,java.lang.String> getGemFireProperties()
public void setProperty(java.lang.String name, java.lang.String value)
public org.slf4j.Logger getLogger()
protected java.util.Properties createDistributedSystemProperties()
protected void closeCache()
protected java.io.File getLogFile()
protected java.io.File getStatisticArchiveFile()
protected void initializeResourceManager()
public java.lang.String toString()
toString
in class java.lang.Object
protected abstract void createOrRetrieveCache()
protected abstract void rebalanceCache()
protected abstract java.lang.String getDefaultCacheXmlFileName()