VMware GemFire Native C++ Reference
9.1
|
Defines attributes for configuring a region. More...
Inherits apache::geode::client::Serializable.
Public Member Functions | |
virtual int32_t | classId () const |
Return class id for serialization. More... | |
virtual int8_t | DSFID () const |
return the Data Serialization Fixed ID type. More... | |
virtual Serializable * | fromData (DataInput &in) |
Initialize members from serialized data. More... | |
CacheListenerPtr | getCacheListener () |
Gets the cache listener for the region. More... | |
const char * | getCacheListenerFactory () |
This method returns the symbol name of the factory function from which the loader will be created on a cache server. More... | |
const char * | getCacheListenerLibrary () |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
CacheLoaderPtr | getCacheLoader () |
public static methods More... | |
const char * | getCacheLoaderFactory () |
This method returns the symbol name of the factory function from which the loader will be created on a cache server. More... | |
const char * | getCacheLoaderLibrary () |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
CacheWriterPtr | getCacheWriter () |
Gets the cache writer for the region. More... | |
const char * | getCacheWriterFactory () |
This method returns the symbol name of the factory function from which the loader will be created on a cache server. More... | |
const char * | getCacheWriterLibrary () |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
bool | getCachingEnabled () const |
If true, this region will store data in the current process. More... | |
bool | getClientNotificationEnabled () const |
This method returns the setting of client notification. More... | |
bool | getConcurrencyChecksEnabled () |
Returns true if concurrent update checks are turned on for this region. More... | |
uint8_t | getConcurrencyLevel () const |
Returns the concurrencyLevel of the entry's local cache. More... | |
DiskPolicyType::PolicyType | getDiskPolicy () const |
Returns the disk policy type of the region. More... | |
const char * | getEndpoints () |
This method returns the list of servername:portno separated by comma. More... | |
int | getEntryIdleTimeout () |
Gets the idleTimeout expiration attributes for entries in this region. More... | |
int | getEntryTimeToLive () |
Gets the timeToLive expiration attributes for entries in this region. More... | |
int | getInitialCapacity () const |
Returns the initial capacity of the entry's local cache. More... | |
float | getLoadFactor () const |
Returns the load factor of the entry's local cache. More... | |
uint32_t | getLruEntriesLimit () const |
Returns the maximum number of entries this cache will hold before using LRU eviction. More... | |
const ExpirationAction::Action | getLruEvictionAction () const |
Returns the ExpirationAction used for LRU Eviction, default is LOCAL_DESTROY. More... | |
PartitionResolverPtr | getPartitionResolver () |
Gets the partition resolver for the partition region. More... | |
const char * | getPartitionResolverFactory () |
This method returns the symbol name of the factory function from which the loader will be created on a cache server. More... | |
const char * | getPartitionResolverLibrary () |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
const char * | getPersistenceFactory () |
This method returns the symbol name of the factory function from which the persistence will be created on a cache server. More... | |
const char * | getPersistenceLibrary () |
This method returns the path of the library from which the factory function will be invoked on a cache server. More... | |
PersistenceManagerPtr | getPersistenceManager () |
Gets the persistence for the region. More... | |
PropertiesPtr | getPersistenceProperties () |
This method returns the properties pointer which is set for persistence. More... | |
const char * | getPoolName () const |
Returns the name of the pool attached to the region. More... | |
const char * | getPoolName () |
TODO Returns the name of the Pool that this region will use to communicate with servers, if any. More... | |
int | getRegionIdleTimeout () |
Gets the idleTimeout expiration attributes for the region as a whole. More... | |
int | getRegionTimeToLive () |
Gets the timeToLive expiration attributes for the region as a whole. More... | |
virtual uint32_t | objectSize () const |
return the size in bytes of the instance being serialized. More... | |
bool | operator!= (const RegionAttributes &other) const |
Return true if any of the attributes are not equal to those of other. More... | |
bool | operator== (const RegionAttributes &other) const |
Return true if all the attributes are equal to those of other. More... | |
void | preserveSB () const |
Atomically increment reference count. More... | |
int32_t | refCount () |
void | releaseSB () const |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. More... | |
virtual void | toData (DataOutput &out) const |
Serialize out to stream. More... | |
virtual CacheableStringPtr | toString () const |
Display this object as 'string', which depends on the implementation in the subclasses. More... | |
virtual int8_t | typeId () const |
Return type id for serialization. More... | |
void | validateSerializableAttributes () |
throws IllegalStateException if the attributes are not suited for serialization such as those that have a cache callback (listener, loader, or writer) set directly instead of through the string value setters. More... | |
Static Public Member Functions | |
template<class PRIM > | |
static SerializablePtr | create (const PRIM value) |
Factory method that creates the Serializable object that matches the type of value. More... | |
static Serializable * | createDeserializable () |
Return an empty instance for deserialization. More... | |
static void | registerPdxSerializer (PdxSerializerPtr pdxSerializer) |
Register the PDX serializer which can handle serialization for instances of user domain classes. More... | |
static void | registerPdxType (TypeFactoryMethodPdx creationFunction) |
register an Pdx instance factory method for a given type. More... | |
static void | registerType (TypeFactoryMethod creationFunction) |
register an instance factory method for a given type. More... | |
Defines attributes for configuring a region.
These are CacheListener
, CacheLoader
, CacheWriter
, scope expiration attributes for the region itself; expiration attributes for the region entries; and whether statistics are enabled for the region and its entries.
To create an instance of this interface, use AttributesFactory::createRegionAttributes.
For compatibility rules and default values, see AttributesFactory.
Note that the RegionAttributes
are not distributed with the region.
|
virtual |
Return class id for serialization.
Implements apache::geode::client::Serializable.
|
inlinestaticinherited |
Factory method that creates the Serializable object that matches the type of value.
For customer defined derivations of Serializable, the method apache::geode::client::createValue may be overloaded. For pointer types (e.g. char*) the method apache::geode::client::createValueArr may be overloaded.
|
static |
Return an empty instance for deserialization.
|
virtualinherited |
return the Data Serialization Fixed ID type.
This is used to determine what instance type to create and deserialize into.
Note that this should not be overridden by custom implementations and is reserved only for builtin types.
Reimplemented in apache::geode::client::Struct, and apache::geode::client::CacheableUndefined.
|
virtual |
Initialize members from serialized data.
Implements apache::geode::client::Serializable.
CacheListenerPtr apache::geode::client::RegionAttributes::getCacheListener | ( | ) |
Gets the cache listener for the region.
CacheListener
, NULLPTR if there is no CacheListener defined for this region. const char* apache::geode::client::RegionAttributes::getCacheListenerFactory | ( | ) |
This method returns the symbol name of the factory function from which the loader will be created on a cache server.
const char* apache::geode::client::RegionAttributes::getCacheListenerLibrary | ( | ) |
This method returns the path of the library from which the factory function will be invoked on a cache server.
CacheLoaderPtr apache::geode::client::RegionAttributes::getCacheLoader | ( | ) |
public static methods
Gets the cache loader for the region.
CacheLoader
, NULLPTR if there is no CacheLoader for this region. const char* apache::geode::client::RegionAttributes::getCacheLoaderFactory | ( | ) |
This method returns the symbol name of the factory function from which the loader will be created on a cache server.
const char* apache::geode::client::RegionAttributes::getCacheLoaderLibrary | ( | ) |
This method returns the path of the library from which the factory function will be invoked on a cache server.
CacheWriterPtr apache::geode::client::RegionAttributes::getCacheWriter | ( | ) |
Gets the cache writer for the region.
CacheWriter
, NULLPTR if there is no CacheWriter for this region const char* apache::geode::client::RegionAttributes::getCacheWriterFactory | ( | ) |
This method returns the symbol name of the factory function from which the loader will be created on a cache server.
const char* apache::geode::client::RegionAttributes::getCacheWriterLibrary | ( | ) |
This method returns the path of the library from which the factory function will be invoked on a cache server.
|
inline |
If true, this region will store data in the current process.
bool apache::geode::client::RegionAttributes::getClientNotificationEnabled | ( | ) | const |
This method returns the setting of client notification.
|
inline |
Returns true if concurrent update checks are turned on for this region.
uint8_t apache::geode::client::RegionAttributes::getConcurrencyLevel | ( | ) | const |
Returns the concurrencyLevel of the entry's local cache.
DiskPolicyType::PolicyType apache::geode::client::RegionAttributes::getDiskPolicy | ( | ) | const |
Returns the disk policy type of the region.
DiskPolicyType::PolicyType
, default is DiskPolicyType::NONE. const char* apache::geode::client::RegionAttributes::getEndpoints | ( | ) |
This method returns the list of servername:portno separated by comma.
int apache::geode::client::RegionAttributes::getEntryIdleTimeout | ( | ) |
Gets the idleTimeout
expiration attributes for entries in this region.
int apache::geode::client::RegionAttributes::getEntryTimeToLive | ( | ) |
Gets the timeToLive
expiration attributes for entries in this region.
int apache::geode::client::RegionAttributes::getInitialCapacity | ( | ) | const |
Returns the initial capacity of the entry's local cache.
float apache::geode::client::RegionAttributes::getLoadFactor | ( | ) | const |
Returns the load factor of the entry's local cache.
uint32_t apache::geode::client::RegionAttributes::getLruEntriesLimit | ( | ) | const |
Returns the maximum number of entries this cache will hold before using LRU eviction.
A return value of zero, 0, indicates no limit.
const ExpirationAction::Action apache::geode::client::RegionAttributes::getLruEvictionAction | ( | ) | const |
Returns the ExpirationAction used for LRU Eviction, default is LOCAL_DESTROY.
PartitionResolverPtr apache::geode::client::RegionAttributes::getPartitionResolver | ( | ) |
Gets the partition resolver for the partition region.
PartitionResolver
, NULLPTR if there is no PartitionResolver defined for this region. const char* apache::geode::client::RegionAttributes::getPartitionResolverFactory | ( | ) |
This method returns the symbol name of the factory function from which the loader will be created on a cache server.
const char* apache::geode::client::RegionAttributes::getPartitionResolverLibrary | ( | ) |
This method returns the path of the library from which the factory function will be invoked on a cache server.
const char* apache::geode::client::RegionAttributes::getPersistenceFactory | ( | ) |
This method returns the symbol name of the factory function from which the persistence will be created on a cache server.
const char* apache::geode::client::RegionAttributes::getPersistenceLibrary | ( | ) |
This method returns the path of the library from which the factory function will be invoked on a cache server.
PersistenceManagerPtr apache::geode::client::RegionAttributes::getPersistenceManager | ( | ) |
Gets the persistence for the region.
PersistenceManager
, NULLPTR if there is no PersistenceManager for this region. PropertiesPtr apache::geode::client::RegionAttributes::getPersistenceProperties | ( | ) |
This method returns the properties pointer which is set for persistence.
const char* apache::geode::client::RegionAttributes::getPoolName | ( | ) | const |
Returns the name of the pool attached to the region.
|
inline |
int apache::geode::client::RegionAttributes::getRegionIdleTimeout | ( | ) |
Gets the idleTimeout expiration attributes for the region as a whole.
int apache::geode::client::RegionAttributes::getRegionTimeToLive | ( | ) |
Gets the timeToLive
expiration attributes for the region as a whole.
|
inlinevirtual |
return the size in bytes of the instance being serialized.
This is used to determine whether the cache is using up more physical memory than it has been configured to use. The method can return zero if the user does not require the ability to control cache memory utilization. Note that you must implement this only if you use the HeapLRU feature.
Reimplemented from apache::geode::client::Serializable.
bool apache::geode::client::RegionAttributes::operator!= | ( | const RegionAttributes & | other | ) | const |
Return true if any of the attributes are not equal to those of other.
bool apache::geode::client::RegionAttributes::operator== | ( | const RegionAttributes & | other | ) | const |
Return true if all the attributes are equal to those of other.
|
inherited |
Atomically increment reference count.
|
inlineinherited |
|
staticinherited |
Register the PDX serializer which can handle serialization for instances of user domain classes.
|
staticinherited |
register an Pdx instance factory method for a given type.
IllegalStateException | if the typeName has already been registered, or there is an error in registering the type; check errno for more information in the latter case. |
|
staticinherited |
register an instance factory method for a given type.
During registration the factory will be invoked to extract the typeId to associate with this function.
IllegalStateException | if the typeId has already been registered, or there is an error in registering the type; check errno for more information in the latter case. |
|
inherited |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
|
virtual |
Serialize out to stream.
Implements apache::geode::client::Serializable.
|
virtualinherited |
Display this object as 'string', which depends on the implementation in the subclasses.
The default implementation renders the classname.
The return value may be a temporary, so the caller has to ensure that the SharedPtr count does not go down to zero by storing the result in a variable or otherwise.
Reimplemented in apache::geode::client::PdxInstance, apache::geode::client::CacheableString, apache::geode::client::CacheableDate, apache::geode::client::CacheableEnum, and apache::geode::client::CacheableKeyType< TObj, TYPEID, TYPENAME, SPRINTFSYM, STRSIZE >.
|
virtual |
Return type id for serialization.
Reimplemented from apache::geode::client::Serializable.
void apache::geode::client::RegionAttributes::validateSerializableAttributes | ( | ) |
throws IllegalStateException if the attributes are not suited for serialization such as those that have a cache callback (listener, loader, or writer) set directly instead of through the string value setters.