To create a new cache instance, use CacheFactory.Create.
To get an existing unclosed cache instance, use CacheFactory.GetInstance.
An instance of DistributedSystem is required to obtain a cache instance from this factory. Because DistributedSystem only allows a single instance of itself per process, you can only have a single open cache, per process.
Static Public Member Functions | |
| static Cache^ | Create (String^ name, DistributedSystem^ system, String^ cacheXml, CacheAttributes^ attributes) |
| static Cache^ | Create (String^ name, DistributedSystem^ system, CacheAttributes^ attributes) |
| static Cache^ | Create (String^ name, DistributedSystem^ system, String^ cacheXml) |
| static Cache^ | Create (String^ name, DistributedSystem^ system) |
| static Cache^ | GetAnyInstance () |
| static Cache^ | GetInstance (DistributedSystem^ system) |
| static Cache^ | GetInstanceCloseOk (DistributedSystem^ system) |
Properties | |
| static String^ | ProductDescription [get] |
| static String^ | Version [get] |
| static Cache ^ GemStone::GemFire::Cache::CacheFactory::Create | ( | String^ | name, | |
| DistributedSystem^ | system, | |||
| String^ | cacheXml, | |||
| CacheAttributes^ | attributes | |||
| ) | [static] |
Creates a new cache using the specified system using parameters from the given XML file and with the given CacheAttributes.
| name | the name to associate with the new cache | |
| system | a DistributedSystem obtained by calling DistributedSystem.Connect | |
| cacheXml | name of the cache configuration XML file | |
| attributes | optional CacheAttributes for this cache; these override the ones provided in cacheXml. |
Cache that uses the specified DistributedSystem for distribution. | IllegalArgumentException | If system is not DistributedSystem.IsConnected or name is null | |
| CacheExistsException | ff an open cache already exists | |
| CacheXmlException | if something went wrong while parsing the XML | |
| IllegalStateException | if the XML file is well-formed but not valid (consistent) |
| static Cache ^ GemStone::GemFire::Cache::CacheFactory::Create | ( | String^ | name, | |
| DistributedSystem^ | system, | |||
| CacheAttributes^ | attributes | |||
| ) | [static] |
Creates a new cache using the specified system using the given CacheAttributes.
| name | the name to associate with the new cache | |
| system | a DistributedSystem obtained by calling DistributedSystem.Connect | |
| attributes | optional CacheAttributes for this cache |
Cache that uses the specified DistributedSystem for distribution. | IllegalArgumentException | If system is not DistributedSystem.IsConnected or name is null | |
| CacheExistsException | ff an open cache already exists |
| static Cache ^ GemStone::GemFire::Cache::CacheFactory::Create | ( | String^ | name, | |
| DistributedSystem^ | system, | |||
| String^ | cacheXml | |||
| ) | [static] |
Creates a new cache using the specified system using parameters from the given XML file.
| name | the name to associate with the new cache | |
| system | a DistributedSystem obtained by calling DistributedSystem.Connect | |
| cacheXml | name of the cache configuration XML file |
Cache that uses the specified DistributedSystem for distribution. | IllegalArgumentException | If system is not DistributedSystem.IsConnected or name is null | |
| CacheExistsException | ff an open cache already exists | |
| CacheXmlException | if something went wrong while parsing the XML | |
| IllegalStateException | if the XML file is well-formed but not valid (consistent) |
| static Cache ^ GemStone::GemFire::Cache::CacheFactory::Create | ( | String^ | name, | |
| DistributedSystem^ | system | |||
| ) | [static] |
Creates a new cache using the specified system.
| name | the name to associate with the new cache | |
| system | a DistributedSystem obtained by calling DistributedSystem.Connect |
Cache that uses the specified DistributedSystem for distribution. | IllegalArgumentException | If system is not connected ( DistributedSystem.IsConnected ) or name is null. | |
| CacheExistsException | If an open cache already exists. |
| static Cache ^ GemStone::GemFire::Cache::CacheFactory::GetAnyInstance | ( | ) | [static] |
Gets an arbitrary open instance of Cache produced by an earlier call to CacheFactory.Create.
| CacheClosedException | if a cache has not been created or the only created one is closed ( Cache.IsClosed ) | |
| EntryNotFoundException | if a cache with specified system not found |
| static Cache ^ GemStone::GemFire::Cache::CacheFactory::GetInstance | ( | DistributedSystem^ | system | ) | [static] |
Gets the instance of Cache produced by an earlier call to CacheFactory.Create.
| system | the DistributedSystem the cache was created with. |
| IllegalArgumentException | if the distributed system argument is null | |
| CacheClosedException | if a cache has not been created or the created one is closed ( Cache.IsClosed ) | |
| EntryNotFoundException | if a cache with specified system not found |
| static Cache ^ GemStone::GemFire::Cache::CacheFactory::GetInstanceCloseOk | ( | DistributedSystem^ | system | ) | [static] |
Gets the instance of Cache produced by an earlier call to CacheFactory.Create, even if it has been closed.
| system | the DistributedSystem the cache was created with. |
Cache associated with the specified system. | IllegalArgumentException | if the distributed system argument is null | |
| CacheClosedException | if a cache has not been created. | |
| EntryNotFoundException | if a cache with specified system not found |
String^ GemStone::GemFire::Cache::CacheFactory::ProductDescription [static, get] |
Returns the product description string including product name and version.
String^ GemStone::GemFire::Cache::CacheFactory::Version [static, get] |
Returns the version of the cache implementation. For the 1.0 release of GemFire, the string returned is 1.0.
String