|
GemFire 6.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GemFireCache
GemFireCache represents the singleton cache that must be created
in order to use GemFire in a Java virtual machine.
Users must create either a Cache for a peer/server JVM
or a ClientCache for a client JVM.
Instances of this interface are created using one of the following methods:
CacheFactory.create() creates a peer/server instance of Cache.
ClientCacheFactory.create() creates a client instance of ClientCache.
| Method Summary | ||
|---|---|---|
DiskStoreFactory |
createDiskStoreFactory()
create diskstore factory |
|
DiskStore |
findDiskStore(String name)
Returns the DiskStore by name or null if no disk store is found. |
|
boolean |
getCopyOnRead()
Indicates whether the "copy on read" is enabled for this cache. |
|
DistributedSystem |
getDistributedSystem()
Returns the distributed system used by this cache. |
|
LogWriter |
getLogger()
Gets the logging object for GemFire. |
|
String |
getName()
Returns the name of this cache. |
|
|
getRegionAttributes(String id)
Returns the RegionAttributes with the given
id or null if no
RegionAttributes with that id exists. |
|
ResourceManager |
getResourceManager()
Returns the ResourceManager for managing this cache's
resources. |
|
LogWriter |
getSecurityLogger()
Gets the security logging object for GemFire. |
|
|
listRegionAttributes()
Returns an unmodifiable mapping of ids to region attributes. |
|
void |
loadCacheXml(InputStream is)
Loads the cache configuration described in a declarative caching XML file into this cache. |
|
void |
setCopyOnRead(boolean copyOnRead)
Sets the "copy on read" feature for cache read operations. |
|
|
setRegionAttributes(String id,
RegionAttributes<K,V> attrs)
Sets the id of the given
RegionAttributes. |
|
| Methods inherited from interface com.gemstone.gemfire.cache.RegionService |
|---|
close, getCancelCriterion, getQueryService, getRegion, isClosed, rootRegions |
| Method Detail |
|---|
String getName()
CacheClosedException if the cache is closed.
DistributedSystem getDistributedSystem()
CacheClosedException if the cache is closed.
ResourceManager getResourceManager()
ResourceManager for managing this cache's
resources.
ResourceManager for managing this cache's resourcesvoid setCopyOnRead(boolean copyOnRead)
boolean getCopyOnRead()
<K,V> RegionAttributes<K,V> getRegionAttributes(String id)
RegionAttributes with the given
id or null if no
RegionAttributes with that id exists.
setRegionAttributes(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes)
<K,V> void setRegionAttributes(String id,
RegionAttributes<K,V> attrs)
id of the given
RegionAttributes. If a region attributes named
name already exists, the mapping will be overwritten
with attrs. However, changing the mapping will not
effect existing regions.
id - The id of the region attributesattrs - The attributes to associate with id. If
attrs is null, any existing
RegionAttributes associated with
id will be removed.getRegionAttributes(java.lang.String)<K,V> Map<String,RegionAttributes<K,V>> listRegionAttributes()
Strings and the values of the map are
RegionAttributes.
void loadCacheXml(InputStream is)
throws TimeoutException,
CacheWriterException,
GatewayException,
RegionExistsException
Because this method may perform a put on a
Region, it declares that it throws a
TimeoutException, CacheWriterException,
GatewayException,
or RegionExistsException.
CacheXmlException - If the XML read from is does not conform to
the dtd or if an IOException occurs while
reading the XML.
TimeoutException
CacheWriterException
GatewayException
RegionExistsExceptionLogWriter getLogger()
CacheClosedException if the cache is closed.
LogWriter getSecurityLogger()
CacheClosedException if the cache is closed.
DiskStore findDiskStore(String name)
null if no disk store is found.
name - the name of the disk store to find. If null then the
default disk store, if it exists, is returned.DiskStoreFactory createDiskStoreFactory()
|
GemFire 6.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||