VMware GemFire Native Client Cache Reference  9.0.6
CacheAttributes.hpp
Go to the documentation of this file.
1 #ifndef __GEMFIRE_CACHEATTRIBUTES_H__
2 #define __GEMFIRE_CACHEATTRIBUTES_H__
3 /*=========================================================================
4  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
5  * This product is protected by U.S. and international copyright
6  * and intellectual property laws. Pivotal products are covered by
7  * more patents listed at http://www.pivotal.io/patents.
8  *========================================================================
9  */
10 
15 #include "gfcpp_globals.hpp"
16 #include "gf_types.hpp"
17 
18 namespace gemfire {
19 
35 class CacheAttributesFactory;
36 
37 _GF_PTR_DEF_(CacheAttributes, CacheAttributesPtr);
38 
40 
44  public:
45 
49  int getRedundancyLevel();
50 
54  char *getEndpoints();
55 
56  ~CacheAttributes();
57 
58  bool operator == ( const CacheAttributes& other ) const;
59 
60  bool operator != ( const CacheAttributes& other ) const;
61 
62  private:
63 
67  void setRedundancyLevel(int redundancyLevel);
68 
72  void setEndpoints(char *endpoints);
73  //will be created by the factory
74 
75  CacheAttributes(const CacheAttributes& rhs);
77 
78  int32_t compareStringAttribute(char* attributeA, char* attributeB) const;
79  void copyStringAttribute( char*& lhs, const char* rhs);
80 
81  int m_redundancyLevel;
82  char* m_endpoints;
83  bool m_cacheMode;
84 
85  friend class CacheAttributesFactory;
86  friend class CacheImpl;
87 
88  const CacheAttributes& operator=( const CacheAttributes& );
89 
90 };
91 
92 } //namespace gemfire
93 
94 #endif //ifndef __GEMFIRE_CACHEATTRIBUTES_H__
Creates instances of CacheAttributes.
Definition: CacheAttributesFactory.hpp:30
Defines attributes for configuring a cache.
Definition: CacheAttributes.hpp:39
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:31

GemFire C++ Cache API Documentation