Public Member Functions | Protected Attributes

GridClientTopology Class Reference

#include <gridclienttopology.hpp>

List of all members.

Public Member Functions

void update (const TNodesSet &pNodes)
void remove (const TNodesSet &pNodes)
TNodesSet nodes () const
const TGridClientNodePtr node (const GridClientUuid &uuid) const
void reset ()

Protected Attributes

boost::shared_mutex mux_
TNodesSet nodes_

Detailed Description

Topology holder class.


Member Function Documentation

const TGridClientNodePtr GridClientTopology::node ( const GridClientUuid &  uuid  )  const

Retrieves a node from topology by id.

Parameters:
uuid Node id.
Returns:
Shared pointer to a node.
TNodesSet GridClientTopology::nodes (  )  const

Returns current list of nodes in the topology.

Returns:
A copy of the topology node cache.
void GridClientTopology::remove ( const TNodesSet &  pNodes  ) 

Removes some nodes from current topology.

void GridClientTopology::reset (  ) 

Empties the topology cache. Next topology event will repopulate the cache with the current grid nodes.

void GridClientTopology::update ( const TNodesSet &  pNodes  ) 

Updates current topology with new nodes information.


Member Data Documentation

TNodesSet GridClientTopology::nodes_ [protected]

Nodes.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends