25#include <geode/util/LogLevel.hpp>
27#include "GeodeCache.hpp"
28#include "internal/geode_globals.hpp"
34class AuthenticatedView;
38class CacheRegionHelper;
39class CacheTransactionManager;
50enum class RegionShortcut;
88 const std::string&
getName()
const override;
139 std::shared_ptr<Region>
getRegion(
const std::string& path)
const override;
146 std::vector<std::shared_ptr<Region>>
rootRegions()
const override;
162 const std::string& poolName)
const;
193 const std::shared_ptr<Properties>& userSecurityProperties,
194 const std::string& poolName);
223 const std::string& className)
const override;
235 const std::string& className,
bool expectDomainClass)
const override;
237 virtual DataInput createDataInput(
const uint8_t* m_buffer,
size_t len)
const;
260 Cache& operator=(
const Cache& other) =
delete;
265 Cache(
const std::shared_ptr<Properties>& dsProp,
bool ignorePdxUnreadFields,
266 bool readPdxSerialized,
267 const std::shared_ptr<AuthInitialize>& authInitialize);
269 std::unique_ptr<CacheImpl> m_cacheImpl;
273 friend class CacheRegionHelper;
275 friend class CacheXmlCreation;
276 friend class RegionXmlCreation;
Creates an authenticated cache view to allow credential based access to region services.
Definition AuthenticatedView.hpp:46
Caches are obtained from the create method on the CacheFactory#create class.
Definition Cache.hpp:65
virtual std::shared_ptr< CacheTransactionManager > getCacheTransactionManager() const
Get the CacheTransactionManager instance for this Cache.
std::vector< std::shared_ptr< Region > > rootRegions() const override
Returns a set of root regions in the cache.
virtual AuthenticatedView createAuthenticatedView(const std::shared_ptr< Properties > &userSecurityProperties, const std::string &poolName)
Creates an authenticated cache using the given user security properties.
std::shared_ptr< QueryService > getQueryService() override
Gets the QueryService from which a new Query can be obtained.
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.
PdxInstanceFactory createPdxInstanceFactory(const std::string &className, bool expectDomainClass) const override
Returns a factory that can create a PdxInstance.
virtual void close(bool keepalive)
Terminates this object cache and releases all the local resources.
LogLevel getLogLevel()
Returns the current log level.
bool getPdxReadSerialized() const override
Returns whether PdxInstance is preferred for PDX types instead of C++ object.
bool isClosed() const override
Indicates if this cache has been closed.
void setLogLevel(LogLevel newLevel)
Changes the current log level to newLogLevel.
std::shared_ptr< Region > getRegion(const std::string &path) const override
Look up a region with the full path from root.
bool getPdxIgnoreUnreadFields() const override
Returns whether Cache saves unread fields for Pdx types.
virtual void readyForEvents()
Send the "client ready" message to the server from a durable client.
PdxInstanceFactory createPdxInstanceFactory(const std::string &className) const override
Returns a factory that can create a PdxInstance.
virtual RegionFactory createRegionFactory(RegionShortcut regionShortcut)
Returns the RegionFactory to create the region.
const std::string & getName() const override
Returns the name of this cache.
void initializeDeclarativeCache(const std::string &cacheXml) override
Initializes the cache from an xml file.
virtual std::shared_ptr< QueryService > getQueryService(const std::string &poolName) const
Gets the QueryService from which a new Query can be obtained.
Top level class for configuring and using Geode on a client.This should be called once to create Cach...
Definition CacheFactory.hpp:48
Provide operations for reading primitive data values, byte arrays, strings, Serializable objects from...
Definition DataInput.hpp:59
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
GeodeCache represents the singleton cache that must be created in order to connect to Geode server.
Definition GeodeCache.hpp:44
PdxInstanceFactory gives you a way to create PdxInstances.
Definition PdxInstanceFactory.hpp:52
Manages creation and access to connection pools for clients.
Definition PoolManager.hpp:61
Provides for the configuration and creation of instances of Region.
Definition RegionFactory.hpp:43
The SystemProperties class.
Definition SystemProperties.hpp:44
Registry for custom serializable types, both PDXSerializable and DataSerializable.
Definition TypeRegistry.hpp:39