public abstract class AbstractCache extends 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 String |
DEFAULT_LOG_FILE_NAME |
protected static String |
DEFAULT_STATISTIC_ARCHIVE_FILE_NAME |
protected float |
evictionHeapPercentage |
protected Map<String,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() |
protected GemFireCache cache
protected static final String DEFAULT_LOG_FILE_NAME
protected static final 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 static AbstractCache instance
public void lifecycleEvent(LifecycleTypeAdapter eventType)
public boolean isStarted()
public void close()
public GemFireCache getCache()
public String getLogFileName()
public String getStatisticArchiveFileName()
public String getCacheXmlFileName()
protected File getCacheXmlFile()
public float getEvictionHeapPercentage()
public void setEvictionHeapPercentage(String evictionHeapPercentage)
public float getCriticalHeapPercentage()
public void setCriticalHeapPercentage(String criticalHeapPercentage)
public void setRebalance(boolean rebalance)
public boolean getRebalance()
public org.slf4j.Logger getLogger()
protected Properties createDistributedSystemProperties()
protected void closeCache()
protected File getLogFile()
protected File getStatisticArchiveFile()
protected void initializeResourceManager()
protected abstract void createOrRetrieveCache()
protected abstract void rebalanceCache()
protected abstract String getDefaultCacheXmlFileName()