00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef GRID_CLIENT_TOPOLOGY_HPP_INCLUDE
00011 #define GRID_CLIENT_TOPOLOGY_HPP_INCLUDE
00012
00013 #include <set>
00014
00015 #include <boost/thread.hpp>
00016
00017 #include "gridgain/gridclientnode.hpp"
00018
00019 class GridClientUuid;
00020
00024 class GridClientTopology {
00025 public:
00027 void update(const TNodesSet& pNodes);
00028
00030 void remove(const TNodesSet& pNodes);
00031
00037 TNodesSet nodes() const;
00038
00045 const TGridClientNodePtr node(const GridClientUuid& uuid) const;
00046
00050 void reset();
00051
00052 protected:
00053 mutable boost::shared_mutex mux_;
00054
00056 TNodesSet nodes_;
00057 };
00058
00059 #endif