VMware Tanzu GemFire Native C++ Reference
10.1.5
|
Go to the documentation of this file.
20 #ifndef GEODE_CACHE_H_
21 #define GEODE_CACHE_H_
26 #include "internal/geode_globals.hpp"
36 class AuthenticatedView;
40 class CacheRegionHelper;
41 class CacheTransactionManager;
93 const std::string&
getName()
const override;
144 std::shared_ptr<Region>
getRegion(
const std::string& path)
const override;
154 std::vector<std::shared_ptr<Region>>
rootRegions()
const override;
170 const std::string& poolName)
const;
201 const std::shared_ptr<Properties>& userSecurityProperties,
202 const std::string& poolName);
232 const std::string& className)
const override;
234 virtual DataInput createDataInput(
const uint8_t* m_buffer,
size_t len)
const;
245 Cache& operator=(
const Cache& other) =
delete;
253 Cache(
const std::shared_ptr<Properties>& dsProp,
bool ignorePdxUnreadFields,
254 bool readPdxSerialized,
255 const std::shared_ptr<AuthInitialize>& authInitialize);
257 std::unique_ptr<CacheImpl> m_cacheImpl;
260 static bool isPoolInMultiuserMode(std::shared_ptr<Region> regionPtr);
263 friend class CacheRegionHelper;
265 friend class CacheXmlCreation;
266 friend class RegionXmlCreation;
272 #endif // GEODE_CACHE_H_
Each enum represents a predefined RegionAttributes in a {}.
virtual std::shared_ptr< QueryService > getQueryService(const std::string &poolName) const
Gets the QueryService from which a new Query can be obtained.
Creates an authenticated cache view to allow credential based access to region services.
Definition: AuthenticatedView.hpp:46
Manages creation and access to connection pools for clients.
Definition: PoolManager.hpp:61
std::shared_ptr< QueryService > getQueryService() override
Gets the QueryService from which a new Query can be obtained.
std::vector< std::shared_ptr< Region > > rootRegions() const override
Returns a set of root regions in the cache.
Caches are obtained from the create method on the CacheFactory#create class.
Definition: Cache.hpp:67
Registry for custom serializable types, both PDXSerializable and DataSerializable.
Definition: TypeRegistry.hpp:39
virtual RegionFactory createRegionFactory(RegionShortcut regionShortcut)
public methods
The SystemProperties class.
Definition: SystemProperties.hpp:44
PdxInstanceFactory gives you a way to create PdxInstances.
Definition: PdxInstanceFactory.hpp:52
virtual void close(bool keepalive)
Terminates this object cache and releases all the local resources.
PdxInstanceFactory createPdxInstanceFactory(const std::string &className) const override
Returns a factory that can create a PdxInstance.
void initializeDeclarativeCache(const std::string &cacheXml) override
Initializes the cache from an xml file.
TypeRegistry & getTypeRegistry() const
Returns the type registry that this cache was created with.
void close() override
Terminates this object cache and releases all the local resources.
Provide operations for writing primitive data values, byte arrays, strings, Serializable objects to a...
Definition: DataOutput.hpp:48
entry point for function execution
Definition: FunctionService.hpp:45
virtual AuthenticatedView createAuthenticatedView(const std::shared_ptr< Properties > &userSecurityProperties, const std::string &poolName)
Creates an authenticated cache using the given user security properties.
virtual void readyForEvents()
Send the "client ready" message to the server from a durable client.
std::shared_ptr< Region > getRegion(const std::string &path) const override
Look up a region with the full path from root.
Provide operations for reading primitive data values, byte arrays, strings, Serializable objects from...
Definition: DataInput.hpp:59
Provides for the configuration and creation of instances of Region.
Definition: RegionFactory.hpp:43
bool getPdxReadSerialized() const override
Returns whether PdxInstance is preferred for PDX types instead of C++ object.
virtual std::shared_ptr< CacheTransactionManager > getCacheTransactionManager() const
Get the CacheTransactionManager instance for this Cache.
bool getPdxIgnoreUnreadFields() const override
Returns whether Cache saves unread fields for Pdx types.
GeodeCache represents the singleton cache that must be created in order to connect to Geode server.
Definition: GeodeCache.hpp:48
Top level class for configuring and using Geode on a client.This should be called once to create Cach...
Definition: CacheFactory.hpp:48
bool isClosed() const override
Indicates if this cache has been closed.
const std::string & getName() const override
Returns the name of this cache.
Apache Geode C++ Cache API Documentation