VMware GemFire Native Client Cache Reference  9.0.6
DistributedSystem.hpp
Go to the documentation of this file.
1 #ifndef __GEMFIRE_DISTRIBUTEDSYSTEM_H__
2 #define __GEMFIRE_DISTRIBUTEDSYSTEM_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 #include "ExceptionTypes.hpp"
18 #include "Properties.hpp"
19 #include "VectorT.hpp"
20 
21 namespace gemfire {
29 class SystemProperties;
30 class DistributedSystemImpl;
31 class CacheRegionHelper;
32 class DiffieHellman;
33 class TcrConnection;
34 
36 
40  public:
41 
52  static DistributedSystemPtr connect(const char* name,
53  const PropertiesPtr& configPtr = NULLPTR);
54 
55 
60  static void disconnect();
61 
66  static SystemProperties* getSystemProperties();
67 
71  virtual const char * getName() const;
72 
77  static bool isConnected();
78 
83  static DistributedSystemPtr getInstance();
84 
88  virtual ~DistributedSystem();
89 
90 protected:
94  DistributedSystem(const char* name);
95 
96  private:
97  char* m_name;
98  static bool m_connected;
99  static DistributedSystemPtr* m_instance_ptr;
100  //static DistributedSystemImpl *m_impl;
101 
102  public:
103  static DistributedSystemImpl *m_impl;
104 friend class CacheRegionHelper;
105 friend class DistributedSystemImpl;
106 friend class TcrConnection;
107 
108 private:
110  const DistributedSystem& operator=( const DistributedSystem& );
111 };
112 
113 
114 } // namespace gemfire
115 
116 #endif //ifndef __GEMFIRE_DISTRIBUTEDSYSTEM_H__
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
DistributedSystem encapsulates this applications "connection" into the GemFire Java servers distribut...
Definition: DistributedSystem.hpp:35
#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
A class for internal use, that encapsulates the properties that can be set from DistributedSystem::co...
Definition: SystemProperties.hpp:40
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:35

GemFire C++ Cache API Documentation