Red Hat Data Grid HotRod C++ Client  7.2.0
CacheTopologyInfo.h
Go to the documentation of this file.
1 #ifndef INCLUDE_INFINISPAN_HOTROD_CACHETOPOLOGYINFO_H_
2 #define INCLUDE_INFINISPAN_HOTROD_CACHETOPOLOGYINFO_H_
3 
4 #include <vector>
5 #include <map>
7 namespace infinispan {
8 namespace hotrod {
9 
10 class CacheTopologyInfo {
11  std::map<transport::InetSocketAddress,std::vector<int> > segmentPerServers;
12  int numSegment;
13  int topologyId;
14 
15 public:
16  CacheTopologyInfo(std::map<transport::InetSocketAddress,std::vector<int> > segmentPerServers_, int numSegment_, int topologyId_)
17  : segmentPerServers(segmentPerServers_), numSegment(numSegment_), topologyId(topologyId_) {}
18  int getNumSegment() {return numSegment; }
19  int getTopologyId() { return topologyId; }
20  std::map<transport::InetSocketAddress, std::vector<int> > getSegmentPerServer() { return segmentPerServers; }
21  virtual ~CacheTopologyInfo() { }
22 };
23 
24 } /* namespace hotrod */
25 } /* namespace infinispan */
26 
27 #endif /* INCLUDE_INFINISPAN_HOTROD_CACHETOPOLOGYINFO_H_ */
Definition: AuthenticationConfiguration.h:10